[Kazehakase-devel 2431] Re: argc_copy bug

Back to archive index

Kazuhiro NISHIYAMA zn****@mbf*****
2005年 10月 12日 (水) 12:42:34 JST


西山和広です。

>>>>> On Wed, 12 Oct 2005 12:09:47 +0900
>>>>> zn****@mbf*****(Kazuhiro NISHIYAMA)  said:
> メッセージ通り--syncを付けてgdbでb gdk_x_errorとして
> breakpointを設定しても止まらないので原因は良くわからない
> ままです。

exitにbreak pointを設定するとback traceがとれました。


% gdb --args =kazehakase-trunk --sync        
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 "i386-linux"...rUsing host libthread_db library "/lib/tls/libthread_db.so.1".

(gdb) b gdk_x_error
Function "gdk_x_error" not defined.
Make breakpoint pending on future shared library load? (y or [n]) y

Breakpoint 1 (gdk_x_error) pending.
(gdb) b exit
Function "exit" not defined.
Make breakpoint pending on future shared library load? (y or [n]) y

Breakpoint 2 (exit) pending.
(gdb) r
Starting program: /home/kazu/opt/kazehakase-trunk/bin/kazehakase-trunk --sync
[Thread debugging using libthread_db enabled]
[New Thread 1085016864 (LWP 914)]
Breakpoint 3 at 0x4005b136
Pending breakpoint "exit" resolved
[New Thread 1106058160 (LWP 922)]
[New Thread 1136516016 (LWP 943)]
[New Thread 1145088944 (LWP 944)]
[New Thread 1153633200 (LWP 945)]
[New Thread 1162021808 (LWP 946)]
The program 'Gecko' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadAlloc (insufficient resources for operation)'.
  (Details: serial 9523 error_code 11 request_code 53 minor_code 0)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)
[Switching to Thread 1085016864 (LWP 914)]

Breakpoint 3, 0x4005b136 in exit () from /lib/tls/libc.so.6
(gdb) bt
#0  0x4005b136 in exit () from /lib/tls/libc.so.6
#1  0x4067fb41 in _gdk_windowing_exit () from /usr/lib/libgdk-x11-2.0.so.0
#2  0x4090d624 in _XError () from /usr/X11R6/lib/libX11.so.6
#3  0x4090bb83 in _XReply () from /usr/X11R6/lib/libX11.so.6
#4  0x40906db4 in XSync () from /usr/X11R6/lib/libX11.so.6
#5  0x40906e75 in _XSyncFunction () from /usr/X11R6/lib/libX11.so.6
#6  0x408edfe5 in XCreatePixmap () from /usr/X11R6/lib/libX11.so.6
#7  0x406805a5 in gdk_pixmap_new () from /usr/lib/libgdk-x11-2.0.so.0
#8  0x40660c1d in gdk_window_begin_paint_region ()
   from /usr/lib/libgdk-x11-2.0.so.0
#9  0x404782d1 in gtk_main_do_event () from /usr/lib/libgtk-x11-2.0.so.0
#10 0x406635d9 in gdk_window_clear_area_e () from /usr/lib/libgdk-x11-2.0.so.0
#11 0x4066372e in gdk_window_process_all_updates ()
   from /usr/lib/libgdk-x11-2.0.so.0
#12 0x40577ca0 in _gtk_window_unset_focus_and_default ()
   from /usr/lib/libgtk-x11-2.0.so.0
#13 0x407722a6 in g_cclosure_marshal_VOID__VOID ()
   from /usr/lib/libgobject-2.0.so.0
#14 0x407609c9 in g_cclosure_new_swap () from /usr/lib/libgobject-2.0.so.0
#15 0x40760736 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#16 0x40771855 in g_signal_emit_by_name () from /usr/lib/libgobject-2.0.so.0
#17 0x40770e9c in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#18 0x40771126 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#19 0x403eedf5 in gtk_container_check_resize ()
   from /usr/lib/libgtk-x11-2.0.so.0
#20 0x403eec0f in gtk_container_set_reallocate_redraws ()
   from /usr/lib/libgtk-x11-2.0.so.0
#21 0x407ba583 in g_child_watch_add () from /usr/lib/libglib-2.0.so.0
#22 0x407b7582 in g_main_depth () from /usr/lib/libglib-2.0.so.0
#23 0x407b85f8 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#24 0x407b8930 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#25 0x407b8ed3 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#26 0x40477bb3 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#27 0x080be76c in EmbedWindow::ShowAsModal (this=0x8843cc0)
    at /home/kazu/wc/kazehakase-trunk/src/mozilla/EmbedWindow.cpp:198
#28 0x40dc3df5 in NSGetModule ()
   from /usr/lib/mozilla/components/libembedcomponents.so
#29 0x40dc301c in NSGetModule ()
   from /usr/lib/mozilla/components/libembedcomponents.so
#30 0x43be5b36 in NSGetModule () from /usr/lib/mozilla/components/libcookie.so
#31 0x43be6a1a in NSGetModule () from /usr/lib/mozilla/components/libcookie.so
#32 0x40ef9dfa in NSGetModule () from /usr/lib/mozilla/components/libnecko.so
#33 0x40ef7da1 in NSGetModule () from /usr/lib/mozilla/components/libnecko.so
#34 0x40f5e8d6 in NSGetModule () from /usr/lib/mozilla/components/libnecko.so
#35 0x40f55996 in NSGetModule () from /usr/lib/mozilla/components/libnecko.so
#36 0x40f5e9dc in NSGetModule () from /usr/lib/mozilla/components/libnecko.so
#37 0x40ecfd9f in NSGetModule () from /usr/lib/mozilla/components/libnecko.so
#38 0x40ecfd22 in NSGetModule () from /usr/lib/mozilla/components/libnecko.so
#39 0x401cc3d1 in nsInputStreamReadyEvent::EventHandler ()
   from /usr/lib/mozilla/libxpcom.so
#40 0x401e29f7 in PL_HandleEvent () from /usr/lib/mozilla/libxpcom.so
#41 0x401e2924 in PL_ProcessPendingEvents () from /usr/lib/mozilla/libxpcom.so
#42 0x401e45b9 in nsEventQueueImpl::NotifyObservers ()
   from /usr/lib/mozilla/libxpcom.so
#43 0x42033345 in nsBaseWidget::FreeNativeData ()
   from /usr/lib/mozilla/components/libwidget_gtk2.so
#44 0x407dcdbf in g_vasprintf () from /usr/lib/libglib-2.0.so.0
#45 0x407b7582 in g_main_depth () from /usr/lib/libglib-2.0.so.0
#46 0x407b85f8 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#47 0x407b8930 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#48 0x407b8ed3 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#49 0x40477bb3 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#50 0x08083abd in main (argc=1, argv=0xbffff494)
    at /home/kazu/wc/kazehakase-trunk/src/main.c:910
(gdb) 


-- 
|ZnZ(ゼット エヌ ゼット)
|西山和広(Kazuhiro NISHIYAMA)



Kazehakase-devel メーリングリストの案内
Back to archive index