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

Re: cygwin 1.3.3 announcment -- extra words solicited


egor duda wrote:


> CW> Thread ID 1 not known.
> 
> what does 'info target' show?
> 
> hmm, and does gdb print any error or warning messages while starting?


Okay, after making a little batch file and pointing error_start at that, 
I can get gdb -nw to start up with state information.

First, I get many many many "Program received signal SIGSEGV, 
Segmentation fault." messages.  Eventually, I just hit q<RET> to get 
past those messages.

Then, info target shows:
Symbols from "/usr/bin/make.exe".
Win32 child process:
	Using the running image of child thread 1008.0x220.
	While running this, GDB does not access memory from...
Local exec file:
	`/usr/bin/make.exe', file type pei-i386
	Entry point: 0x401000
	0x00401000 - 0x0042e200 is .text
	0x0042f000 - 0x0042fa00 is .data
	0x00430000 - 0x00434c5c is .bss
	0x00435000 - 0x00435a00 is .idata

Then I typed 'thread 1' -- and gdb coredumped.  Oops.  Okay, so trying 
again, (rebuilding cygwin1.dll....wait wait wait, crash!)

This time, (without 'thread 1' -- just 'bt') a simple backtrace shows

...child thread 544.0x2dc


#0  0x00410732 in exec_command (argv=0x5, envp=0xa01ca70)
     at /usr/src/make/src/job.c:2317
#1  0x61081e8a in read () at 
/usr/src/cygwin/cygwin/winsup/cygwin/uinfo.cc:284
#2  0x0040a5cb in func_shell (o=0xa01cd98 "", argv=0x22d52c,
     funcname=0x40a7dd "shell") at /usr/src/make/src/function.c:1448
#3  0x0040a9f9 in expand_builtin_function (o=0xa01cd98 "", argc=1,
     argv=0x22d52c, entry_p=0x42f0b4) at /usr/src/make/src/function.c:1703
#4  0x0040ace0 in handle_function (op=0x22d610, stringp=0x22d60c)
     at /usr/src/make/src/function.c:1803
#5  0x00404b53 in variable_expand_string (line=0x0,
     string=0xa01c1a8 "${shell cd $(here)/..; pwd}", length=-1)
     at /usr/src/make/src/expand.c:235
#6  0x00404ffe in variable_expand (
     line=0xa01c1a8 "${shell cd $(here)/..; pwd}")
     at /usr/src/make/src/expand.c:415
#7  0x004050d2 in variable_expand_for_file (
     line=0xa01c1a8 "${shell cd $(here)/..; pwd}", file=0x0)
     at /usr/src/make/src/expand.c:457
#8  0x00405338 in allocated_variable_expand_for_file (
     line=0xa01c1a8 "${shell cd $(here)/..; pwd}", file=0x0)
     at /usr/src/make/src/expand.c:535
#9  0x00426617 in try_variable_definition (flocp=0x22d7f4,
     line=0xa01c1a0 "bupdir:=${shell cd $(here)/..; pwd}", origin=o_file,
     target_var=0) at /usr/src/make/src/variable.c:888
#10 0x0041a09d in read_makefile (
     filename=0xa01bbf8 
"/usr/src/cygwin/cygwin/winsup/subauth/../Makefile.common", flags=10) at 
/usr/src/make/src/read.c:723
#11 0x00419fd6 in read_makefile (filename=0xa01b228 "Makefile", flags=0)
     at /usr/src/make/src/read.c:702
#12 0x00418912 in read_all_makefiles (makefiles=0x0)
     at /usr/src/make/src/read.c:234
#13 0x00413d6c in main (argc=4, argv=0x61401da4, envp=0xa010008)
     at /usr/src/make/src/main.c:1503
#14 0x61003e5a in dll_crt0_1 ()
     at /usr/src/cygwin/cygwin/winsup/cygwin/dcrt0.cc:863
#15 0x6100403d in _dll_crt0 ()
     at /usr/src/cygwin/cygwin/winsup/cygwin/dcrt0.cc:929
#16 0x6100407c in dll_crt0 (uptr=0x0)
     at /usr/src/cygwin/cygwin/winsup/cygwin/dcrt0.cc:941

(gdb) p /x $esp
$1 = 0x22d3d4

(gdb) x/40x $esp
0x22d3d4:    0x0022d404   0x00410521   0x0040a3e8   0x0a01c1a8
0x22d3e4:    0x0a01c1a9   0x6107ed62   0x00000006   0x00000006
0x22d3f4:    0x0022d424   0x00418166   0x000000c9   0x00000000
0x22d404:    0x0022d424   0x61081e8a   0x00000005   0x0a01ca70
0x22d414:    0x000000c8   0x610950a0   0x610950a0   0x0a01ca70
0x22d424:    0x0022d4d4   0x0040a5cb   0x00000005   0x0a01ca70
0x22d434:    0x000000c8   0x0040a5a5   0x7273752f   0x6372732f
0x22d444:    0x6779632f   0x2f6e6977   0x77677963   0x772f6e69
0x22d454:    0x75736e69   0x75732f70   0x74756162   0x2e2e2f68
0x22d464:    0x6b614d2f   0x6c696665   0x6f632e65   0x6e6f6d6d

However, I'm lost without my GUI.  'p envp' just says "address of symbol 
'envp' is unknown".  How can I inspect the value of data?  Help...

(Chris, I've sent in a digest-unsub/regular-subscribe message pair, if 
you can approve those quickly we can do this realtime(ish).)

--Chuck


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