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

Re: Need help with arch-specific bug



Hi,

The bug only affects the binary compiled with gcc-3.3 using -O1 or greater 
level of optimizations. gdb yields the following backtrace on at the time 
fbpanel compiled with gcc-3.3 -O1 -g segfaults:

----------
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 "x86_64-linux"...Using host libthread_db library 
"/lib/libthread_db.so.1".

(gdb) r
Starting program: /usr/bin/fbpanel
[Thread debugging using libthread_db enabled]
[New Thread 46912538764672 (LWP 19381)]
Including /var/lib/fbpanel/menu

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 46912538764672 (LWP 19381)]
tb_display (tb=0x0) at taskbar.c:661
661         if (tb->wins)
(gdb) bt
#0  tb_display (tb=0x0) at taskbar.c:661
#1  0x00002aaaaf80d68d in taskbar_constructor (p=0x6854a0) at taskbar.c:1148
#2  0x00000000004097b5 in plugin_start (this=0x6854a0) at plugin.c:196
#3  0x0000000000407b6a in panel_parse_plugin (p=0x55da70, fp=0x55d830) at 
panel.c:579
#4  0x0000000000407dad in panel_start (p=0x55da70, fp=0x55d830) at panel.c:641
#5  0x0000000000408355 in main (argc=1, argv=0x7ffffffff7d8, env=0xa) at 
panel.c:800
(gdb)
--------------

However, please note, that fbpanel compiled with gcc-3.3 -O0 or gcc-3.4 with 
any level of optimizations (I've tested -O2 and -O0) doesn't segfault. So, 
overall, it seems fbpanel suffers from miscompilation on amd64 with gcc-3.3 
-O1 or higher level of opts. gcc-3.3 is a default compiler on pure64

Attachment: pgpGtCkdMCLZg.pgp
Description: PGP signature


Reply to: