emacs-pretest-bug
[Top][All Lists]
Advanced

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

Re: Segfault and font corruption in menu under Windows


From: Ralf Angeli
Subject: Re: Segfault and font corruption in menu under Windows
Date: Fri, 04 Aug 2006 21:06:11 +0200

* Jason Rumney (2006-08-04) writes:

> Ralf Angeli <address@hidden> writes:
>
>> Hm, a Google search regarding _libkernel32_a_iname revealed nothing
>> really interesting.
>
> "iname" is used to denote an unknown function, in this case it is in
> libkernel32 (I assume this is mingw's name for the system library
> kernel32.dll, or a wrapper for it). Since the system libraries have
> their debug symbols stripped, this is expected.
>
> Look down the stack until you find a function name that is not
> iname. That will most likely be the line in Emacs where the failure is
> occuring.

Okay here is what I got:

(gdb) watch *(char *)0x860930
Hardware watchpoint 4: *(char *) 8784176
(gdb) c
Continuing.
Hardware watchpoint 4: *(char *) 8784176

Old value = 71 'G'
New value = -18 '\356'
0x7c913105 in _libkernel32_a_iname ()
(gdb) bt
#0  0x7c913105 in _libkernel32_a_iname ()
#1  0x00840000 in ?? ()
#2  0x7c97e062 in _libkernel32_a_iname ()
#3  0x7c95a5d0 in _libkernel32_a_iname ()
#4  0x7c9368ad in _libkernel32_a_iname ()
#5  0x0112c26e in w32_free_submenu_strings (menu=0x5038d) at w32menu.c:2503
#6  0x0112c245 in w32_free_submenu_strings (menu=0xc0353) at w32menu.c:2508
#7  0x0112c2b5 in w32_free_menu_strings (hwnd=0x40286) at w32menu.c:2526
#8  0x01135e2c in w32_wnd_proc (hwnd=0x40286, msg=275, wParam=3, lParam=0)
    at w32fns.c:3423
#9  0x77d18734 in _libkernel32_a_iname ()
#10 0x77d18816 in _libkernel32_a_iname ()
#11 0x77d1c63f in _libkernel32_a_iname ()
#12 0x77d1e905 in _libkernel32_a_iname ()
#13 0x6d18160b in _libwinspool_a_iname ()
#14 0x77d18734 in _libkernel32_a_iname ()
#15 0x77d18816 in _libkernel32_a_iname ()
#16 0x77d189cd in _libkernel32_a_iname ()
#17 0x77d196c7 in _libkernel32_a_iname ()
#18 0x011348c0 in w32_msg_pump (msg_buf=0x113) at w32fns.c:2592
#19 0x01136a0f in w32_msg_worker (dw=0) at w32fns.c:2717
#20 0x7c80b50b in _libkernel32_a_iname ()
(gdb) frame 5
#5  0x0112c26e in w32_free_submenu_strings (menu=0x5038d) at w32menu.c:2503
2503              local_free (info.dwItemData);
(gdb) p info.dwItemData
$2 = 8784176
(gdb) xtype
Lisp_Int
(gdb) xint
$3 = 1098022
(gdb)

IIUC the next step is to look at why get_menu_item_info puts an
integer into dwItemData.

-- 
Ralf





reply via email to

[Prev in Thread] Current Thread [Next in Thread]