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]

Question on gdb and ?? And also Frame did not save PC message


I should probably be asking this is a gdb group somewhere but thought I 
would try here first.  If I should not be here my apologies.

I am attempting to debug a an application that has a hang when the 
program ends.  It seems to perform its objective but than hangs on 
exit.  I have compiled and installed its debug version and I have 
compiled debug version of the Cygwin dll (updated from cvs last night). 
 I ran it in gdb and got the following when I did a backtrace.  I also 
tried this with the latest version of gdb and noticed when I do that - 
it stops after frame 7 on thread 1 and tells me "Backtrace stopped 
Frame did not save PC".  Also if you look at the output I still need a 
debug version of something because I have ?? Still showing.

So two questions - 1) how can I find out what I need to remove the 
question marks and 2) is there an option I would be using that would 
eliminate the "frame did not save PC" message or is this message 
actually indicating something about the application that might point me 
to the error.

Any insight or pointers (even to another mailing list/newsgroup) will 
be greatly appreciated.

bk

BrianK@atl-lt-5783 /usr/local/bin/osgPlugins-2.3.7
$ gdb osgconvd
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"...
(gdb) set args cow.osg brian.osg
(gdb) set cygwin-exceptions on
(gdb) run
Starting program: /usr/local/bin/osgconvd.exe cow.osg brian.osg
Loaded symbols for /cygdrive/c/WINDOWS/system32/ntdll.dll
Loaded symbols for /cygdrive/c/WINDOWS/system32/kernel32.dll
Loaded symbols for /usr/local/bin/cygosgDBd-2.3.7.dll
Loaded symbols for /usr/local/bin/cygOpenThreadsd-2.2.1.dll
Loaded symbols for /usr/bin/cygwin1.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 /usr/local/bin/cygosgd-2.3.7.dll
Loaded symbols for /cygdrive/c/WINDOWS/system32/glu32.dll
Loaded symbols for /cygdrive/c/WINDOWS/system32/msvcrt.dll
Loaded symbols for /cygdrive/c/WINDOWS/system32/opengl32.dll
Loaded symbols for /cygdrive/c/WINDOWS/system32/gdi32.dll
Loaded symbols for /cygdrive/c/WINDOWS/system32/user32.dll
Loaded symbols for /cygdrive/c/WINDOWS/system32/ddraw.dll
Loaded symbols for /cygdrive/c/WINDOWS/system32/dciman32.dll
Loaded symbols for /usr/local/bin/cygosgUtild-2.3.7.dll
Loaded symbols for /usr/local/bin/cygosgViewerd-2.3.7.dll
Loaded symbols for /usr/local/bin/cygosgGAd-2.3.7.dll
Loaded symbols for /usr/local/bin/cygosgTextd-2.3.7.dll

Program received signal SIGSEGV, Segmentation fault.
0x610d5de9 in pthread_mutexattr_init (attr=0x23cb50)
    at /usr/develop/src/src/src/winsup/cygwin/thread.cc:123
123       if ((*object)->magic != magic)
(gdb) thread apply all bt

Thread 2 (thread 3936.0xe64):
#0  0x7c90eb94 in ntdll!LdrAccessResource ()
   from /cygdrive/c/WINDOWS/system32/ntdll.dll
#1  0x7c90e288 in ntdll!ZwReadFile ()
   from /cygdrive/c/WINDOWS/system32/ntdll.dll
#2  0x7c801875 in ReadFile () from 
/cygdrive/c/WINDOWS/system32/kernel32.dll
#3  0x00000730 in ?? ()
#4  0x00000000 in ?? ()

Thread 1 (thread 3936.0xacc):
#0  0x610d5de9 in pthread_mutexattr_init (attr=0x23cb50)
    at /usr/develop/src/src/src/winsup/cygwin/thread.cc:123
#1  0x610b2c98 in _sigfe ()
    at /usr/develop/src/src/src/winsup/cygwin/cygerrno.h:31
#2  0x0023cb90 in ?? ()
#3  0x00000004 in ?? ()
#4  0x00000001 in ?? ()
#5  0x00000028 in ?? ()
#6  0x0023cbb8 in ?? ()
#7  0x00ade1af in OpenThreads::ReentrantMutex::ReentrantMutex 
(this=0xc25ab0)
    at /usr/src/OpenSceneGraph/include/OpenThreads/ReentrantMutex:29
#8  0x00ade1af in OpenThreads::ReentrantMutex::ReentrantMutex 
(this=0xc25ab0)
    at /usr/src/OpenSceneGraph/include/OpenThreads/ReentrantMutex:29
---Type <return> to continue, or q <return> to quit---
#9  0x00a474e7 in __static_initialization_and_destruction_0 (
    __initialize_p=1, __priority=65535)
    at /usr/src/OpenSceneGraph/src/osg/GraphicsContext.cpp:188
#10 0x00a475ee in global constructors keyed to 
_ZN3osg15GraphicsContext27setWind
owingSystemInterfaceEPNS0_24WindowingSystemInterfaceE ()
    at /usr/src/OpenSceneGraph/src/osg/GraphicsContext.cpp:290
#11 0x61020493 in per_module::run_ctors (this=0x0)
    at /usr/develop/src/src/src/winsup/cygwin/dll_init.cc:54
#12 0x00000001 in ?? ()
#13 0x610204e0 in dll::init (this=0x610208bc)
    at /usr/develop/src/src/src/winsup/cygwin/dll_init.cc:80
#14 0x08840008 in ?? ()
#15 0x00000000 in ?? ()
(gdb)





--
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]