I'm trying to debug a multithreaded program. gdb crashes shortly after the program starts. The last statement that executes in the program that I'm debugging calls gettimeofday. After just a few more steps, gdb crashes while the program is in _sigfe (I think):
$ gdb xcas GNU gdb 6.8.0.20080328-cvs (cygwin-special) Copyright (C) 2008 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 "i686-pc-cygwin"... Defining v as print command for giac types (gdb) break Graph.cc:1119 Breakpoint 1 at 0x4e9d23: file Graph.cc, line 1119. (2 locations) (gdb) run Starting program: /cygdrive/c/xcasbuild/giac-0.8.1/src/xcas.exe [New thread 2764.0xf2c] [New thread 2764.0xabc] [New thread 2764.0x38c] Breakpoint 1, xcas::Graph2d3d::Graph2d3d (this=0x1010ada8, x=0, y=25, w=545, h=325, l=0x649331 "label", xmin=-5, xmax=5, ymin=-5, ymax=5, zmin=-5, zmax=5, ortho=1, hp_=0x0) at Graph.cc:1119 1119 gettimeofday(&animation_last,&tz); (gdb) set step-mode on (gdb) step 0x005e5220 in gettimeofday () (gdb) step Single stepping until exit from function gettimeofday, which has no line number information. 0x61094364 in _sigfe_gettimeofday () from /usr/bin/cygwin1.dll (gdb) next Single stepping until exit from function _sigfe_gettimeofday, which has no line number information. 0x61093559 in _sigfe () from /usr/bin/cygwin1.dll (gdb) next Single stepping until exit from function _sigfe, which has no line number information. 0x610bd7e0 in gettimeofday () from /usr/bin/cygwin1.dll (gdb) next Single stepping until exit from function gettimeofday, which has no line number information. Segmentation fault (core dumped) The "gdb.exe.stackdump" file is short and does not appear to be very illuminating. I've poked around, and I found some discussion about previous versions of gdb crashing in _sigfe, (going back 4 or 5 years). I'm a Cygwin newbie, and I can't say that I followed the discussion. I have the latest Cygwin stuff installed. I'm running on XP SP3. Is there anything else I can look at? Should I be sending a bug report to the gdb team instead of airing this here? Thanks, Mike -- 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/