Re: Fetion for linux,使用飞信2010最新协议[6月7日更新v1.6]
发表于 : 2010-06-07 21:09
(gdb) bt
#0 0×00007ffff3d4e1a5 in raise () from /lib/libc.so.6
#1 0×00007ffff3d4f5d0 in abort () from /lib/libc.so.6
#2 0×00007ffff3d89347 in ?? () from /lib/libc.so.6
#3 0×00007ffff3e031a7 in __fortify_fail () from /lib/libc.so.6
#4 0×00007ffff3e01000 in __chk_fail () from /lib/libc.so.6
#5 0×00007ffff3e00369 in ?? () from /lib/libc.so.6
#6 0×00007ffff3d8d005 in _IO_default_xsputn () from /lib/libc.so.6
#7 0×00007ffff3d6158e in vfprintf () from /lib/libc.so.6
#8 0×00007ffff3e0040d in __vsprintf_chk () from /lib/libc.so.6
#9 0×00007ffff3e0034f in __sprintf_chk () from /lib/libc.so.6
#10 0×000000000042f61f in sprintf (widget=, x=81, y=437, keybord_mode=, tip=0×85ca20,
data=) at /usr/include/bits/stdio2.h:34
#11 fx_tree_on_show_tooltip (widget=, x=81, y=437, keybord_mode=, tip=0×85ca20,
data=) at fx_tree.c:1319
#12 0×00007ffff7137154 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#13 0×00007ffff565f50a in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#14 0×00007ffff567488c in ?? () from /usr/lib/libgobject-2.0.so.0
#15 0×00007ffff5675b17 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#16 0×00007ffff5675faf in g_signal_emit_by_name () from /usr/lib/libgobject-2.0.so.0
#17 0×00007ffff720056d in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#18 0×00007ffff7200cff in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#19 0×00007ffff71318d8 in gtk_main_do_event () from /usr/lib/libgtk-x11-2.0.so.0
#20 0×00007ffff6da952c in ?? () from /usr/lib/libgdk-x11-2.0.so.0
#21 0×00007ffff4d9850d in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#22 0×00007ffff4d9bec8 in ?? () from /usr/lib/libglib-2.0.so.0
#23 0×00007ffff4d9c325 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#24 0×00007ffff7131d67 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#25 0×0000000000426b69 in fx_main_initialize (fxmain=0×6415f0) at fx_main.c:99
#26 0×0000000000426c15 in main (argc=1, argv=0×7fffffffdc38) at fx_main.c:949
(gdb)
查到是 fx_tree.c:1319
sprintf(text , ” 昵称: %s\n”
” 手机: %s\n”
” 飞信: %s\n”
” 心情: %s”
, name == NULL ? “” : g_markup_escape_text(name , strlen(name))
, phonetext , sid
, impression == NULL ? “” : g_markup_escape_text(impression , strlen(impression)));
有的 impression 太长,text 溢出了
#0 0×00007ffff3d4e1a5 in raise () from /lib/libc.so.6
#1 0×00007ffff3d4f5d0 in abort () from /lib/libc.so.6
#2 0×00007ffff3d89347 in ?? () from /lib/libc.so.6
#3 0×00007ffff3e031a7 in __fortify_fail () from /lib/libc.so.6
#4 0×00007ffff3e01000 in __chk_fail () from /lib/libc.so.6
#5 0×00007ffff3e00369 in ?? () from /lib/libc.so.6
#6 0×00007ffff3d8d005 in _IO_default_xsputn () from /lib/libc.so.6
#7 0×00007ffff3d6158e in vfprintf () from /lib/libc.so.6
#8 0×00007ffff3e0040d in __vsprintf_chk () from /lib/libc.so.6
#9 0×00007ffff3e0034f in __sprintf_chk () from /lib/libc.so.6
#10 0×000000000042f61f in sprintf (widget=, x=81, y=437, keybord_mode=, tip=0×85ca20,
data=) at /usr/include/bits/stdio2.h:34
#11 fx_tree_on_show_tooltip (widget=, x=81, y=437, keybord_mode=, tip=0×85ca20,
data=) at fx_tree.c:1319
#12 0×00007ffff7137154 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#13 0×00007ffff565f50a in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#14 0×00007ffff567488c in ?? () from /usr/lib/libgobject-2.0.so.0
#15 0×00007ffff5675b17 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#16 0×00007ffff5675faf in g_signal_emit_by_name () from /usr/lib/libgobject-2.0.so.0
#17 0×00007ffff720056d in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#18 0×00007ffff7200cff in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#19 0×00007ffff71318d8 in gtk_main_do_event () from /usr/lib/libgtk-x11-2.0.so.0
#20 0×00007ffff6da952c in ?? () from /usr/lib/libgdk-x11-2.0.so.0
#21 0×00007ffff4d9850d in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#22 0×00007ffff4d9bec8 in ?? () from /usr/lib/libglib-2.0.so.0
#23 0×00007ffff4d9c325 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#24 0×00007ffff7131d67 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#25 0×0000000000426b69 in fx_main_initialize (fxmain=0×6415f0) at fx_main.c:99
#26 0×0000000000426c15 in main (argc=1, argv=0×7fffffffdc38) at fx_main.c:949
(gdb)
查到是 fx_tree.c:1319
sprintf(text , ” 昵称: %s\n”
” 手机: %s\n”
” 飞信: %s\n”
” 心情: %s”
, name == NULL ? “” : g_markup_escape_text(name , strlen(name))
, phonetext , sid
, impression == NULL ? “” : g_markup_escape_text(impression , strlen(impression)));
有的 impression 太长,text 溢出了