bug-commoncpp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

incompatible with cygwin gdb?


From: Huang, Hao (Exchange)
Subject: incompatible with cygwin gdb?
Date: Tue, 5 Aug 2003 17:48:41 -0400

The following program will core dump before main is entered when the exe is
run inside insight/gdb.  However, running outside of gdb is not a problem.
Is there something that I am missing?

#include <cc++/numbers.h>
#include <iostream>

int main(int argc, const char ** argv[])
{
    std::cerr << ost::Date(2000, 1, 10) << std::endl;
}


------------------------------
~>./try
20000110

~>gdb try
GNU gdb 2003-03-03-cvs (cygwin-special)
Copyright 2003 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) run
Starting program: /w/d/hh/proj/hh/hhu/try

Program received signal SIGSEGV, Segmentation fault.
0x77ea7995 in KERNEL32!IsBadWritePtr () from
/w/c/WINNT/system32/KERNEL32.DLL
(gdb) bt
#0  0x77ea7995 in KERNEL32!IsBadWritePtr () from
/w/c/WINNT/system32/KERNEL32.DLL
#1  0x6108bf2d in cygwin1!cfsetispeed () from /usr/bin/cygwin1.dll
#2  0x6108bfa8 in cygwin1!cfsetispeed () from /usr/bin/cygwin1.dll
#3  0x6108bff0 in cygwin1!cfsetispeed () from /usr/bin/cygwin1.dll
#4  0x6108b7f9 in cygwin1!cfsetispeed () from /usr/bin/cygwin1.dll
#5  0x6108db47 in pthread_cond_wait () from /usr/bin/cygwin1.dll
#6  0x00406343 in ost::Mutex::Mutex() (this=0xa041e10) at mutex.cpp:164
#7  0x004065a7 in ost::AtomicCounter::AtomicCounter() (this=0xa041e0c) at
mutex.cpp:399
#8  0x00404749 in ost::Thread::Thread(bool) (this=0x442060, isMain=true) at
private.h:28
#9  0x00405c85 in __static_initialization_and_destruction_0(int, int)
(__initialize_p=1, __priority=65535) at
thread.cpp:319
#10 0x00405d2a in _GLOBAL__I__ZN3ost6Thread7suspendEv () at thread.cpp:1267
#11 0x61005d95 in cygwin1!__assert () from /usr/bin/cygwin1.dll
#12 0x610078fb in cygwin1!__main () from /usr/bin/cygwin1.dll
#13 0x004010ae in main (argc=1, argv=0xa041be8) at try.cpp:5


***********************************************************************
Bear Stearns is not responsible for any recommendation, solicitation, 
offer or agreement or any information about any transaction, customer 
account or account activity contained in this communication.
***********************************************************************





reply via email to

[Prev in Thread] Current Thread [Next in Thread]