New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Attempt to free unreferenced scalar error #1156
Comments
From mina@diane.idirect.comThis is a bug report for perl from open@idirect.com, Hello Here is a simple server I wrote, here's how to replicate the bug. (well, Run the server, it defaults to listening on to port 9000 launch 4-6 telnet sessions to the server:port so the server will fork press CTRL+C to terminate the server (without closing the telnet It goes into the exit procedure but the last line it displays is always It doesn't seem to have any side effect on the program, however, I thought Would like to hear back from you soon :) Thank you for your time. #!/usr/bin/perl # $|++; use IO::Socket; $SIG{INT} = sub { init(); sub init() { sub mainloop() { sub handleclient() { sub REAPER() { Site configuration information for perl 5.00503: Configured by root at Mon Aug 30 23:08:56 EDT 1999. Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration: Locally applied patches: @INC for perl 5.00503: Environment for perl 5.00503: |
From [Unknown Contact. See original ticket]Mina Naguib <mina@diane.idirect.com> wrote
This may or may not be the cause of your problem, but note that Signals are not safe in current versions of Perl. You should do as little as possible in a signal handler, either just Of course, in a SIGCHLD handler, you have to do a wait(), but you should There are plans to make signal handling reliable in the next major Mike Guy |
From [Unknown Contact. See original ticket]M . J . T . Guy <mjtg@cus.cam.ac.uk> writes:
I don't think 'die-ing' is safe either - perl is coing to copy the string, -- |
From [Unknown Contact. See original ticket]Nick Ing-Simmons writes:
Sigh... Should I repeat it again and again and again and again? malloc() has only a tiny relationship to problems of sighandlers. Most of the damage happens in pp_entersub(). Ilya |
From The RT System itselfsignal handlers are a known problem and documented as unstable. |
Migrated from rt.perl.org#2122 (status was 'resolved')
Searchable as RT2122$
The text was updated successfully, but these errors were encountered: