[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: mule2 segmentation fault (Re: mule2 freeze) (non-member post)
>> On 18 Apr 2002 22:00:12 +0900
>> suto@ks-and-ks.ne.jp (Kiyokazu SUTO) said as follows:
>うーん、じゃぁ(static linkして)coreを吐かせてbacktrace見て、どこで落
>ちてるか見るしかないですかねぇ。
># intになったメンバをshortとして見てるとか、そんなんだと思うんだけど。
うーん,backtrace を取ってみて,一番怪しそうな xfns.c:x_window() の実
行部分の変数の値を調べてみたのですが….これで,不審な個所があるでしょ
うか?
$ gdb emacs core
GNU gdb 5.1.1
Copyright 2002 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"...
Core was generated by `./emacs'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libcrypt.so.1...done.
Loaded symbols for /lib/libcrypt.so.1
Reading symbols from /usr/lib/libwnn6.so.1.0...done.
Loaded symbols for /usr/lib/libwnn6.so.1.0
Reading symbols from /usr/X11R6/lib/libXaw.so.7...done.
Loaded symbols for /usr/X11R6/lib/libXaw.so.7
Reading symbols from /usr/X11R6/lib/libXmu.so.6...done.
Loaded symbols for /usr/X11R6/lib/libXmu.so.6
Reading symbols from /usr/X11R6/lib/libXt.so.6...done.
Loaded symbols for /usr/X11R6/lib/libXt.so.6
Reading symbols from /usr/X11R6/lib/libSM.so.6...done.
Loaded symbols for /usr/X11R6/lib/libSM.so.6
Reading symbols from /usr/X11R6/lib/libICE.so.6...done.
Loaded symbols for /usr/X11R6/lib/libICE.so.6
Reading symbols from /usr/X11R6/lib/libXext.so.6...done.
Loaded symbols for /usr/X11R6/lib/libXext.so.6
Reading symbols from /usr/X11R6/lib/libX11.so.6...done.
Loaded symbols for /usr/X11R6/lib/libX11.so.6
Reading symbols from /lib/libncurses.so.5...done.
Loaded symbols for /lib/libncurses.so.5
Reading symbols from /lib/libm.so.6...done.
Loaded symbols for /lib/libm.so.6
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /usr/X11R6/lib/libXpm.so.4...done.
Loaded symbols for /usr/X11R6/lib/libXpm.so.4
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /lib/libnss_files.so.2...done.
Loaded symbols for /lib/libnss_files.so.2
Reading symbols from /lib/libnss_compat.so.2...done.
Loaded symbols for /lib/libnss_compat.so.2
Reading symbols from /lib/libnsl.so.1...done.
Loaded symbols for /lib/libnsl.so.1
Reading symbols from /usr/lib/gconv/EUC-JP.so...done.
Loaded symbols for /usr/lib/gconv/EUC-JP.so
Reading symbols from /usr/lib/gconv/libJIS.so...done.
Loaded symbols for /usr/lib/gconv/libJIS.so
#0 0x402e67b1 in kill () from /lib/libc.so.6
DISPLAY = :0
TERM = dumb
Breakpoint 1 at 0x402e7b57
Breakpoint 2 at 0x807bd8d: file xterm.c, line 4838.
(gdb) bt
#0 0x402e67b1 in kill () from /lib/libc.so.6
#1 0x080a0e0c in fatal_error_signal (sig=11) at emacs.c:236
#2 0x402e66e8 in sigaction () from /lib/libc.so.6
#3 0x4011eca5 in _XtCreateWidget () from /usr/X11R6/lib/libXt.so.6
#4 0x4011ee79 in XtCreateWidget () from /usr/X11R6/lib/libXt.so.6
#5 0x080844a4 in x_window (f=0x8396100, window_prompting=3, minibuffer_only=0) at xfns.c:2657
#6 0x080858d9 in Fx_create_frame (parms=1479672300) at xfns.c:3318
#7 0x081062f3 in Ffuncall (nargs=2, args=0xbfffed64) at eval.c:2368
#8 0x08124ee9 in Fbyte_code (bytestr=941136288, vector=1209572236, maxdepth=7) at bytecode.c:410
#9 0x08106aee in funcall_lambda (fun=1209571704, nargs=1, arg_vector=0xbfffeed8) at eval.c:2548
#10 0x0810645f in Ffuncall (nargs=2, args=0xbfffeed4) at eval.c:2409
#11 0x08124ee9 in Fbyte_code (bytestr=941113692, vector=1209549176, maxdepth=2) at bytecode.c:410
#12 0x08106aee in funcall_lambda (fun=1209549100, nargs=1, arg_vector=0xbffff038) at eval.c:2548
#13 0x0810645f in Ffuncall (nargs=2, args=0xbffff034) at eval.c:2409
#14 0x08124ee9 in Fbyte_code (bytestr=941111100, vector=1209546672, maxdepth=3) at bytecode.c:410
#15 0x08106aee in funcall_lambda (fun=1209546532, nargs=0, arg_vector=0xbffff198) at eval.c:2548
#16 0x0810645f in Ffuncall (nargs=1, args=0xbffff194) at eval.c:2409
#17 0x08124ee9 in Fbyte_code (bytestr=941179692, vector=1209616012, maxdepth=6) at bytecode.c:410
#18 0x08106aee in funcall_lambda (fun=1209615124, nargs=0, arg_vector=0xbffff308) at eval.c:2548
#19 0x0810645f in Ffuncall (nargs=1, args=0xbffff304) at eval.c:2409
#20 0x08124ee9 in Fbyte_code (bytestr=941178060, vector=1209613652, maxdepth=6) at bytecode.c:410
#21 0x08106aee in funcall_lambda (fun=1209613492, nargs=0, arg_vector=0xbffff414) at eval.c:2548
#22 0x08106757 in apply_lambda (fun=1209613492, args=405072900, eval_flag=1) at eval.c:2472
#23 0x081053da in Feval (form=1478985340) at eval.c:1768
#24 0x080a3214 in top_level_2 () at keyboard.c:1051
#25 0x08103f51 in internal_condition_case (bfun=0x80a3200 <top_level_2>, handlers=405073300,
hfun=0x80a2fa4 <cmd_error>) at eval.c:1138
#26 0x080a324f in top_level_1 () at keyboard.c:1059
#27 0x081039bd in internal_catch (tag=405073280, func=0x80a3224 <top_level_1>, arg=405072900) at eval.c:913
#28 0x080a3171 in command_loop () at keyboard.c:1021
#29 0x080a2db9 in recursive_edit_1 () at keyboard.c:803
#30 0x080a2ea9 in Frecursive_edit () at keyboard.c:845
#31 0x080a1d9b in main (argc=1, argv=0xbffffa34, envp=0xbffffa3c) at emacs.c:1158
#32 0x402d617f in __libc_start_main () from /lib/libc.so.6
(gdb) f 5
#5 0x080844a4 in x_window (f=0x8396100, window_prompting=3, minibuffer_only=0) at xfns.c:2657
2657 frame_widget = XtCreateWidget (f->namebuf,
(gdb) l
2652 XtSetArg (al[ac], XtNmappedWhenManaged, 0); ac++;
2653 XtSetArg (al[ac], XtNshowGrip, 0); ac++;
2654 XtSetArg (al[ac], XtNallowResize, 1); ac++;
2655 XtSetArg (al[ac], XtNresizeToPreferred, 1); ac++;
2656 XtSetArg (al[ac], XtNemacsFrame, f); ac++;
2657 frame_widget = XtCreateWidget (f->namebuf,
2658 emacsFrameClass,
2659 pane_widget, al, ac);
2660
2661 f->output_data.x->edit_widget = frame_widget;
(gdb) p f->namebuf
$1 = 0x82a3818 "emacs"
(gdb) p *pane_widget
$2 = {
core = {
self = 0x839e300,
widget_class = 0x400f13c0,
parent = 0x8360000,
xrm_name = 351,
being_destroyed = 0 '\000',
destroy_callbacks = 0x8397b60,
constraints = 0x0,
x = 0,
y = 0,
width = 0,
height = 0,
border_width = 0,
managed = 0 '\000',
sensitive = 1 '\001',
ancestor_sensitive = 1 '\001',
event_table = 0x0,
tm = {
translations = 0x0,
proc_table = 0x0,
current_state = 0x0,
lastEventTime = 0
},
accelerators = 0x0,
border_pixel = 0,
border_pixmap = 2,
popup_list = 0x0,
num_popups = 0,
name = 0x836524f "pane",
screen = 0x831bc80,
colormap = 32,
window = 0,
depth = 24,
background_pixel = 16777215,
background_pixmap = 2,
visible = 1 '\001',
mapped_when_managed = 1 '\001'
}
}
(gdb) p *al@ac
$3 = {{
name = 0x81bd3a5 "mappedWhenManaged",
value = 0
}, {
name = 0x813dc3f "showGrip",
value = 0
}, {
name = 0x813dc48 "allowResize",
value = 1
}, {
name = 0x813dc54 "resizeToPreferred",
value = 1
}, {
name = 0x813dc66 "emacsFrame",
value = 137978112
}}
(gdb) p ac
$4 = 5
(gdb) q
--
土屋 雅稔 ( TSUCHIYA Masatoshi )