On Sat, Aug 06, 2005 at 07:19:22AM +0800, Li Daobing wrote: > Segmentation fault
Seems this (immediate segfault after program startup, GUI is not coming up) is caused by gcc-4.0, recompiling with gcc-3.3 makes it work fine again. This is the backtrace with debugging symbols for chemtool: #0 0xb7c89eda in strcmp () from /lib/tls/i686/cmov/libc.so.6 No symbol table info available. #1 0xb7f30b80 in gtk_label_set_text () from /usr/lib/libgtk-1.2.so.0 No symbol table info available. #2 0xb7ec50bd in gtk_accel_label_new () from /usr/lib/libgtk-1.2.so.0 No symbol table info available. #3 0xb7f4351d in gtk_menu_item_new_with_label () from /usr/lib/libgtk-1.2.so.0 No symbol table info available. #4 0x0805bc0d in main (argc=1, argv=0xbffff414) at main.c:5062 i = 0 j = 5 bondnums = {"0\000ó", "1\000X", "2\000·", "3\000", "4\000ä", "5\000\001", "6\000", "7\000", "8\000", "9\000", "10", "11", "12", "13", "14"} msgtmp = "4\000.6680\000¿ö%ÿ·\213*÷¹À\004\b1 Fri Ap ", '\0' <repeats 11 times>, "\224\a\000\000N+÷üÙ·,S·\f\000\000\000täÁ·ØäÁ·\216ÿw\001OÀ\004\b8\b\000ž\000\000\000\000¬¡þ·\230óÿ¿É'ÿ·0\233\004" fontsizelabel = {0x31003531 <Address 0x31003531 out of bounds>, 0x37310036 <Address 0x37310036 out of bounds>, 0x383100 <Address 0x383100 out of bounds>, 0x32003931 <Address 0x32003931 out of bounds>, 0x31320030 <Address 0x31320030 out of bounds>, 0x809de00 "times-medium-r-normal--10-*", 0x8082d84 "24"} aboutw = (GtkWidget *) 0x8104d48 helpw = (GtkWidget *) 0x810a980 helptext = (GtkWidget *) 0x810dfb8 vbox = (GtkWidget *) 0x818c980 hbox = (GtkWidget *) 0x8199878 button = Variable "button" is not available. And this with glibc and gtk: #0 *__GI_strcmp (p1=0x8195708 "", p2=0x31003531 <Address 0x31003531 out of bounds>) at ../sysdeps/generic/strcmp.c:39 #1 0xb7f3cb80 in gtk_label_set_text (label=0x819b3f0, str=0x31003531 <Address 0x31003531 out of bounds>) at gtklabel.c:264 #2 0xb7ed10bd in gtk_accel_label_new (string=0x31003531 <Address 0x31003531 out of bounds>) at gtkaccellabel.c:182 #3 0xb7f4f51d in gtk_menu_item_new_with_label (label=0x0) at gtkmenuitem.c:194 #4 0x0805bc0d in main (argc=1, argv=0xbffff3f4) at main.c:5062 the full bt stops at #1: #0 *__GI_strcmp (p1=0x8195708 "", p2=0x31003531 <Address 0x31003531 out of bounds>) at ../sysdeps/generic/strcmp.c:39 s1 = (const unsigned char *) 0x8195709 "" s2 = (const unsigned char *) 0x31003531 <Address 0x31003531 out of bounds> #1 0xb7f3cb80 in gtk_label_set_text (label=0x819b3f0, str=0x31003531 <Address 0x31003531 out of bounds>) at gtklabel.c:264 str_wc = Variable "str_wc" is not available. Fishy. Michael -- Michael Banck Debian Developer [EMAIL PROTECTED] http://www.advogato.org/person/mbanck/diary.html -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]