This is the mail archive of the cygwin-developers mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Cygwin64] dash segfault


On 2013-03-09 13:50, Corinna Vinschen wrote:
> On Mar  8 23:13, Peter Rosin wrote:
>> Hi!
>>
>> I doubt there is a shortage of obscure things to track down in the land
>> of 64-bit, but while building a package using the stuff from install/release
>> I noticed a segfault in dash when it ran a libtool script to generate a
>> dll. Retrying got the dll built correctly.
>>
>> Fact is, I do see segfaults once in a while, but retrying has always helped
>> so far, so I haven't pursued it.
>>
>> How do I set up a debugger to get more info than the below stackdump?
> 
> I added a 64 bit Cygwin GDB package to the install area a couple
> of days ago.  I guess a debug version of dash (especially built w/o
> optimization) won't hurt either.

Ok, I recompiled dash locally (.../configure CFLAGS=-g --prefix=/usr)
and used CYGWIN='error_start=C:\...\bin\dumper.exe' and got myself a
core file...

Not much appears to be going on though, suggestions are welcome...

Cheers,
Peter

bash-4.1$ gdb
GNU gdb (GDB) 7.5.50.20130305-cvs
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-cygwin".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
(gdb) target core ./ggi/default-shared/dash.exe.core
[New Thread 0x9ea0]
[New Thread 0xad50]
[New Thread 0xa5ec]
[New Thread 0xb1ac]
#0  0x00000001 in ?? ()
(gdb) bt
#0  0x00000001 in ?? ()
Cannot access memory at address 0x5
(gdb) thread 2
[Switching to thread 2 (Thread 0xad50)]
#0  0x00000000 in ?? ()
(gdb) bt
#0  0x00000000 in ?? ()
(gdb) thread 3
[Switching to thread 3 (Thread 0xa5ec)]
#0  0x00000000 in ?? ()
(gdb) bt
#0  0x00000000 in ?? ()
Cannot access memory at address 0x801cf358
(gdb) thread 4
[Switching to thread 4 (Thread 0xb1ac)]
#0  0x00000000 in ?? ()
(gdb) bt
#0  0x00000000 in ?? ()
(gdb)



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]