This is the mail archive of the cygwin 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]

cygcheck crash (segmentation fault)


Hello,

I tried running cygcheck on an executable, but it crashed. As far as I
know, cygcheck shouldn't crash, not even on invalid executables
(though this one is valid enough, I think).

My cygwin installation is updated. All packages are official ones
downloaded with setup.exe.

I have attached cygcheck.out (cygcheck -s -v -r).
The program that made it crash is not a cygwin program, it's a demo,
available here: http://pouet.net/prod.php?which=30244
Direct link to .zip: http://www.trackmania.org/fr-041_debris.zip

I couldn't attach it, because Gmail thinks it's a virus.

Thanks in advance for your cooperation.

==============================================

$ strace cygcheck c:/d.exe
--- Process 3752, exception C0000005 at 004016A6

$ gdb cygcheck
GNU gdb 6.5.50.20060706-cvs (cygwin-special)
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-cygwin"...(no debugging symbols found)

(gdb) run c:/d.exe
Starting program: /usr/bin/cygcheck.exe c:/d.exe
Loaded symbols for /cygdrive/c/WINDOWS/system32/ntdll.dll
Loaded symbols for /cygdrive/c/WINDOWS/system32/kernel32.dll
Loaded symbols for /cygdrive/c/WINDOWS/system32/msvcrt.dll
Loaded symbols for /cygdrive/c/WINDOWS/system32/advapi32.dll
Loaded symbols for /cygdrive/c/WINDOWS/system32/rpcrt4.dll
Loaded symbols for /cygdrive/c/WINDOWS/system32/secur32.dll
Loaded symbols for /cygdrive/c/WINDOWS/system32/user32.dll
Loaded symbols for /cygdrive/c/WINDOWS/system32/gdi32.dll

Program received signal SIGSEGV, Segmentation fault.
0x004016a6 in fhandler_pipe::get_guard ()
(gdb) bt
#0  0x004016a6 in fhandler_pipe::get_guard ()
#1  0x00000000 in ?? ()
(gdb) disass $pc-32 $pc+32
Dump of assembler code from 0x401686 to 0x4016c6:
0x00401686 <_ZNK13fhandler_pipe9get_guardEv+4200070>:   nop
0x00401687 <_ZNK13fhandler_pipe9get_guardEv+4200071>:   inc    %ecx
0x00401688 <_ZNK13fhandler_pipe9get_guardEv+4200072>:   add
%cl,0xfff0448d(%ecx)
0x0040168e <_ZNK13fhandler_pipe9get_guardEv+4200078>:   decl   (%edi)
0x00401690 <_ZNK13fhandler_pipe9get_guardEv+4200080>:   test   %al,(%ebx)
0x00401692 <_ZNK13fhandler_pipe9get_guardEv+4200082>:   add    (%eax),%al
0x00401694 <_ZNK13fhandler_pipe9get_guardEv+4200084>:   add
%al,0x10840fd2(%ebp)
0x0040169a <_ZNK13fhandler_pipe9get_guardEv+4200090>:   add    (%eax),%al
0x0040169c <_ZNK13fhandler_pipe9get_guardEv+4200092>:   add    %bh,0x3a(%eax)
0x004016a2 <_ZNK13fhandler_pipe9get_guardEv+4200098>:   mov    %ebx,%edx
0x004016a4 <_ZNK13fhandler_pipe9get_guardEv+4200100>:   mov    %al,%ah
0x004016a6 <_ZNK13fhandler_pipe9get_guardEv+4200102>:   mov    (%edx),%al
0x004016a8 <_ZNK13fhandler_pipe9get_guardEv+4200104>:   cmp    %ah,%al
0x004016aa <_ZNK13fhandler_pipe9get_guardEv+4200106>:   je
0x4016b3 <_ZNK13fhandler_pipe9get_guardEv+4200115>
0x004016ac <_ZNK13fhandler_pipe9get_guardEv+4200108>:   inc    %edx
0x004016ad <_ZNK13fhandler_pipe9get_guardEv+4200109>:   test   %al,%al
0x004016af <_ZNK13fhandler_pipe9get_guardEv+4200111>:   jne
0x4016a6 <_ZNK13fhandler_pipe9get_guardEv+4200102>
0x004016b1 <_ZNK13fhandler_pipe9get_guardEv+4200113>:   xor    %edx,%edx
0x004016b3 <_ZNK13fhandler_pipe9get_guardEv+4200115>:   mov    %edx,%eax
0x004016b5 <_ZNK13fhandler_pipe9get_guardEv+4200117>:   test   %eax,%eax
0x004016b7 <_ZNK13fhandler_pipe9get_guardEv+4200119>:   je
0x4016f0 <_ZNK13fhandler_pipe9get_guardEv+4200176>
0x004016b9 <_ZNK13fhandler_pipe9get_guardEv+4200121>:   mov    %ebx,(%esp)
0x004016bc <_ZNK13fhandler_pipe9get_guardEv+4200124>:   xor    %eax,%eax
0x004016be <_ZNK13fhandler_pipe9get_guardEv+4200126>:   xor    %edi,%edi
0x004016c0 <_ZNK13fhandler_pipe9get_guardEv+4200128>:   mov    %eax,0x4(%esp)
0x004016c4 <_ZNK13fhandler_pipe9get_guardEv+4200132>:   call
0x405c20 <_ZNK13fhandler_pipe9get_guardEv+4217888>
End of assembler dump.
(gdb) info registers
eax            0x3a3a   14906
ecx            0x0      0
edx            0x18bafff4       414908404
ebx            0x18bafff4       414908404
esp            0x22d8c0 0x22d8c0
ebp            0x22e8a8 0x22e8a8
esi            0x41651b 4285723
edi            0x419088 4296840
eip            0x4016a6 0x4016a6
eflags         0x10206  66054
cs             0x1b     27
ss             0x23     35
ds             0x23     35
es             0x23     35
fs             0x3b     59
gs             0x0      0
(gdb)

Attachment: cygcheck.out.txt
Description: Text document

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

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