perl5.8.8 SEGfault and corrupt stack
Sun Jul 29 03:19:00 GMT 2007
Reini Urban wrote:
> Linda Walsh schrieb:
>> I'm having problems with perl5.8.8. I tried running it under gdb, but
>> it won't load:
>> > gdb perl.exe
>> GNU gdb 6.3.50_2004-12-28-cvs (cygwin-special)
>> (gdb) run
>> Starting program: /usr/bin/perl.exe
>> Program received signal SIGSEGV, Segmentation fault.
>> 0x610b48b6 in pthread_key_create () from /usr/bin/cygwin1.dll
> Cannot reproduce. Is this a fresh re-install without site_perl or with
> your broken setup as stated in perl5-porters?
My "broken setup" was caused by trying to upgrade to 5.8.8 from 5.8.7.
I ran into incompatibilities and decided to re-install & update the modules from
scratch. I 1st removed "site_perl" then installed 5.8.8. I then used
the CPAN to upgrade itself then the new "update" command to bring my
module list back to current. After some manual installs to get around
cygwin-specific ".dll" replacement issues, I'm only left with "Image::Magick"
that won't update. Fails with many errors, starting with bad compiler options.
Calling my "setup" broken after I detailed on p5p steps to fix it
seems unnecessarily confrontational, but this is the cygwin list....1/2 :-)
> $ gdb perl.exe
> (gdb) run -e'print 1'
> GNU gdb 220.127.116.1160706-cvs (cygwin-special)
> This GDB was configured as "i686-pc-cygwin"...Minimal symbols from perl.exe...
> (no debugging symbols found)
> Starting program: /usr/bin/perl.exe -e'print 1'
> Loaded symbols for /cygdrive/c/WINDOWS/system32/ntdll.dll
> Loaded symbols for /cygdrive/c/WINDOWS/system32/kernel32.dll
> Loaded symbols for /bin/cygwin1.dll
> Loaded symbols for /cygdrive/c/WINDOWS/system32/advapi32.dll
> Loaded symbols for /cygdrive/c/WINDOWS/system32/rpcrt4.dll
> Loaded symbols for /bin/cygperl5_8.dll
> Loaded symbols for /bin/cygcrypt-0.dll
At least I know what it is "supposed" to look like. What I see instead is:
> gdb perl
GNU gdb 6.3.50_2004-12-28-cvs (cygwin-special)
This GDB was configured as "i686-pc-cygwin"...Minimal symbols from perl.exe...
(no debugging symbols found)
(gdb) run -e'print 1'
Starting program: /usr/bin/perl.exe -e'print 1'
Program received signal SIGSEGV, Segmentation fault.
0x610b48b6 in pthread_key_create () from /usr/bin/cygwin1.dll
>> I also tried profiling a perl file:
>> law/perl> perl -d:DProf show.pl -s
>> 8 [main] perl 3192 _cygtls::handle_exceptions: Error while
>> dumping state (probably corrupted stack)
>> Segmentation fault (core dumped)
As you noted in your next note, this 2nd problem seems(?) to be duplicable
outside of cygwin.
>> Any ideas on causes...fixes?...
> I would try a rebaseall
Good suggestion. Hadn't thought of that. Unfortunately
rebaseall fails as well:
ReBaseImage (/usr/bin/cygiconv-2.dll) failed with last error = 6
Any other ideas? I tried checking the rebaseall & rebase manpages, but
couldn't find anything referencing "error = 6" (no manpages for either).
When does rebase/rebaseall fail with an error=6?
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
More information about the Cygwin