develooper Front page | perl.perl5.porters | Postings from September 2005

[Nikolaus@rath.org: Re: [perl #37058] script produces segfault (testcase attached)]

From:
Steven Schubiger
Date:
September 27, 2005 03:15
Subject:
[Nikolaus@rath.org: Re: [perl #37058] script produces segfault (testcase attached)]
Message ID:
20050927055021.GA23014@accognoscere.homeunix.org
----- Forwarded message from Nikolaus Rath <Nikolaus@rath.org> -----

Date: Mon, 26 Sep 2005 15:57:49 +0200
From: Nikolaus Rath <Nikolaus@rath.org>
To: Steven Schubiger <sts@accognoscere.org>
Subject: Re: [perl #37058] script produces segfault (testcase attached)


>>>>>Couldn't neither reproduce the segmentation fault with Perl 5.8.5
>>>>>nor with Perl 5.8.7 on OpenBSD 3.6. The last lines get parsed & 
>>>>>compiled, but are never executed since there's no call of one of 
>>>>>the subs except solely get_tags() itself.
>>>>>
>>>>>If you remove which lines the segmentation fault disappears?
>>>>
>>>>For example, if I remove the definition of run_filter.
>>>
>>>
>>>Could you provide us a gdb backtrace of this code composition?

Backtrace is attached.

Regards,
Nikolaus

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1210167168 (LWP 8349)]
0xb7e72acd in fclose () from /lib/tls/i686/cmov/libc.so.6
(gdb) bt
#0  0xb7e72acd in fclose () from /lib/tls/i686/cmov/libc.so.6
#1  0x0811878d in PerlIOStdio_close ()
#2  0x08116673 in PerlIO__close ()
#3  0x081166aa in Perl_PerlIO_close ()
#4  0x08115196 in PerlIO_cleantable ()
#5  0x08117bb7 in PerlIO_cleanup ()
#6  0x08061cfd in perl_destruct ()
#7  0x0805fb0d in main ()

----- End forwarded message -----





nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About