This is the mail archive of the cygwin@cygwin.com 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: cygwin + gdb problems


Hi,
  Thanks for all the input. I've tried rebooting, and changing the path
so that there are no spaces. However, it still gives me the same error. 

If I continue, then it runs "Hello World" and exits normally:

This GDB was configured as "i686-pc-cygwin"...
(gdb) break main
Breakpoint 1 at 0x4010bc: file test.c, line 4.
(gdb) run
Starting program: /home/Jennie_Nguyen/a.exe 

Program received signal SIGSEGV, Segmentation fault.
0x77e75a3d in _libkernel32_a_iname ()
(gdb) where
#0  0x77e75a3d in _libkernel32_a_iname ()
#1  0x004028c0 in cygwin_premain2 ()
#2  0x61083a7d in _libkernel32_a_iname ()
#3  0x61083ae6 in _libkernel32_a_iname ()
#4  0x61083b30 in _libkernel32_a_iname ()
#5  0x61082989 in _libkernel32_a_iname ()
#6  0x610852c5 in _libkernel32_a_iname ()
#7  0x61085409 in _libkernel32_a_iname ()
#8  0x00401320 in __register_frame_info_bases ()
#9  0x00401368 in __register_frame_info ()
#10 0x0040105f in __do_frame_init ()
#11 0x61005ed5 in _libkernel32_a_iname ()
#12 0x61007a1b in _libkernel32_a_iname ()
#13 0x004010bc in main () at test.c:3
#14 0x61007549 in _libkernel32_a_iname ()
#15 0x6100780d in _libkernel32_a_iname ()
#16 0x004026b2 in cygwin_crt0 ()
#17 0x0040103c in mainCRTStartup ()
#18 0x77e814c7 in _libkernel32_a_iname ()
(gdb) c
Continuing.

Breakpoint 1, main () at test.c:4
(gdb) c
Continuing.
 Hello world

Program exited normally.
(gdb)

I've also tried to run strace, but there was a bunch of output, and I
don't understand what they mean. Here a few from strace that I thought
might be problems:

  266    9716 [main] a 1120 getwinenv: can't set native for PATH= since
no environ yet

  272   42741 [main] a 1120 _cygwin_istext_for_stdio:  _cifs: fd not
open
  223   42964 [main] a 1120 _cygwin_istext_for_stdio: 

Sorry for the inconvenience. Thanks!

Jennie


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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]