[Coin-symphony] Symphony doesn't work inside Gdb

francois dionne brainstorm at videotron.ca
Fri Feb 3 03:08:48 EST 2006


Dear mailing list,

    I have a problem: gdb doesn't like Symphony! I downloaded Symphony on
Jan 26 2006 using "cvs checkout SYMPHONY". I compiled it on the AMD64 using
Cygwin for Windows XP. Inside SYMPHONY/config, I have set:

OPT = -g
COIN_OPT = -g

to allow debugging symbols. Then I executed "make coin" followed by "make",
with only the default user callbacks in Symphony. Now, when I run the
Symphony executable from the shell, I get the solver command prompt just
as I expected. However, when I run it from inside gdb, I get this:

Starting program: 
/home/Compaq_Owner/packages/COIN/SYMPHONY/bin/CYGWIN/OSI_CLP/symphony.exe

Program received signal SIGSEGV, Segmentation fault.
0x610ae938 in pthread_key_create () from /usr/bin/cygwin1.dll

    This is the output of the "backtrace" command:

#0  0x610ae938 in pthread_key_create () from /usr/bin/cygwin1.dll
#1  0x6108dd7f in _sigfe () from /usr/bin/cygwin1.dll
#2  0x59432d52 in ?? ()
#3  0x00d91dc8 in ?? ()
#4  0x00667ea0 in operator+ ()
#5  0x610af6b7 in pthread::once () from /usr/bin/cygwin1.dll
#6  0x6108dd7f in _sigfe () from /usr/bin/cygwin1.dll
#7  0x0022e7b8 in ?? ()
#8  0x0060d9f5 in _Unwind_SjLj_Register ()
    at /usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/iostream:77
#9  0x0060d9f5 in _Unwind_SjLj_Register ()
    at /usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/iostream:77
#10 0x005feaf3 in std::ios_base::Init::Init ()
    at /usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/iostream:77
#11 0x005fe871 in __static_initialization_and_destruction_0 (
    __initialize_p=1, __priority=65535)
    at /usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/iostream:77
#12 0x005fe8a8 in global constructors keyed to 
_ZN26isolated_constraint_action8presolveEP18CoinPresolveMatrixiPK18CoinPresolveAction 
()
    at CoinPresolveIsolated.cpp:302
#13 0x61004772 in do_global_ctors () from /usr/bin/cygwin1.dll
#14 0x00d91d9a in ?? ()
#15 0x0022e868 in ?? ()
#16 0x61004812 in __main () from /usr/bin/cygwin1.dll
Previous frame inner to this frame (corrupt stack?)

Not very informative, as you can see.

    For your information, I downloaded the stable release of Cygwin on Jan 
21 2006 .
I'm using g++ 3.4.4 according to "g++ -dumpversion" . Also, this is the 
output of
"gdb --version" :

GNU gdb 6.3.50_2004-12-28-cvs (cygwin-special)
Copyright 2004 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".

    I hope you can help, because this bug prevents me from debugging my user 
code.
Goodbye and thank you for your attention.




More information about the Symphony mailing list