Crashes with binaries compiled from source



Hello,

I tried to compile Glom from source, but the generated binaries crash
with SIGSEGV/SIGABRT. I did the following:
 - got glom from CVS
 - ran autogen.sh and installed the missing -dev packages (Ubuntu
breezy)
 - make.

I made a backtrace with gdb:

GNU gdb 6.3-debian
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 "i486-linux-gnu"...Using host libthread_db library 
"/lib/tls/i686/cmov/libthread_db.so.1".

(gdb) run
Starting program: /home/johannes/code/glom/glom/glom/.libs/glom 
[Thread debugging using libthread_db enabled]
[New Thread -1229998400 (LWP 31805)]

Program received signal SIGABRT, Aborted.
[Switching to Thread -1229998400 (LWP 31805)]
0xffffe410 in __kernel_vsyscall ()
(gdb) bt
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb6e149b1 in raise () from /lib/tls/i686/cmov/libc.so.6
#2  0xb6e162c9 in abort () from /lib/tls/i686/cmov/libc.so.6
#3  0xb6e486ea in __fsetlocking () from /lib/tls/i686/cmov/libc.so.6
#4  0xb6e4ef54 in malloc_trim () from /lib/tls/i686/cmov/libc.so.6
#5  0xb6e4f2ca in free () from /lib/tls/i686/cmov/libc.so.6
#6  0xb6daac71 in operator delete () from /usr/lib/libstdc++.so.6
#7  0xb6d34a5e in __gnu_cxx::__pool<true>::_M_reclaim_block () from /usr/lib/libstdc++.so.6
#8  0xb6d82e68 in std::string::_Rep::_M_destroy () from /usr/lib/libstdc++.so.6
#9  0xb6d856b1 in std::string::assign () from /usr/lib/libstdc++.so.6
#10 0xb738d0c0 in Glib::OptionGroup::CppOptionEntry::convert_c_to_cpp () from /usr/lib/libglibmm-2.4.so.1
#11 0xb738d6d2 in Glib::OptionGroup::on_post_parse () from /usr/lib/libglibmm-2.4.so.1
#12 0xb738c691 in Glib::OptionEntry::get_description () from /usr/lib/libglibmm-2.4.so.1
#13 0xb72a24cf in g_option_context_parse () from /usr/lib/libglib-2.0.so.0
#14 0xb738be3a in Glib::OptionContext::parse () from /usr/lib/libglibmm-2.4.so.1
#15 0x080ed3d2 in main (argc=1, argv=0xbfd510e4) at main.cc:76
(gdb) quit

So it crashes while parsing the command line. I didn't give any
commandline parameters. Next, I tried commenting out 2 lines in main.cc,
related to OptionContext:

line 74:
//    context.parse(argc, argv);

and line 94:
was:    Gtk::Main mainInstance(argc, argv, context);
new:    Gtk::Main mainInstance(argc, argv);

After this OptionContext::parse isn't called anymore. But then it
crashed elsewhere. Another backtrace:


(gdb) run
Starting program: /home/johannes/code/glom/glom/glom/.libs/glom 
[Thread debugging using libthread_db enabled]
[New Thread -1230018880 (LWP 1124)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1230018880 (LWP 1124)]
0xb7d45e9f in Gtk::Widget::hide () from /usr/lib/libgtkmm-2.4.so.1
(gdb) bt
#0  0xb7d45e9f in Gtk::Widget::hide () from /usr/lib/libgtkmm-2.4.so.1
#1  0x0810df45 in Frame_Glom (this=0x8421068, cobject=0x0, refGlade= 0xbf949a40) at frame_glom.cc:68
#2  0x080f7405 in Gnome::Glade::Xml::get_widget_derived<Frame_Glom> (this=0x8421068, name= 0x0, widget= 
0x84207ac) at xml.h:264
#3  0x080ee1c0 in App_Glom (this=0x8420710, cobject=0x83de408, refGlade= 0xbf949b40) at refptr.h:165
#4  0x080ed703 in main (argc=1, argv=0xbf949ca4) at xml.h:264
(gdb) q

And this crash seems completely unrelated to OptionContext.

I later tried the 0.9.1 and 0.9.0 source too, and got the same errors.
So, it could be a wrong library version which causes this. But
configure thinks I have everything.

Any ideas? I will try if it works with jhbuild next but I think I have
to free some hard disk space first. :-)








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