Re: $w->cb(undef) causes segfaults. (+patch)
[email protected] (Uri Guttman)
| Newsgroups | perl.loop |
|---|---|
| Message-ID | <[email protected].> |
>>>>> "DN" == Damien Neil <[email protected]> writes: DN> On Thu, May 31, 2001 at 04:06:32AM -0400, Uri Guttman wrote: >> well, it still is incorrect coding. there is no defined meaning for >> deleting the callback before you have stopped the watcher. why did you >> even try that? it makes no sense. >> From the manpage: DN> Watchers are stopped implicitly if their new DN> configuration deprives them of the ability to generate DN> events. events are not callbacks. theoretically you could have an event with an implied action and no callback. the bug is as i said, it should not call the null callback. cancelling the watcher because of no callback makes no sense. you just cancel the watcher. why did you even try that? what was your goal? and it is not a perl bug in any case. it is trivial to get perl to core dump from an XS module. uri -- Uri Guttman --------- [email protected] ---------- http://www.sysarch.com SYStems ARCHitecture and Stem Development ------ http://www.stemsystems.com Learn Advanced Object Oriented Perl from Damian Conway - Boston, July 10-11 Class and Registration info: http://www.sysarch.com/perl/OOP_class.html