|
Description
|
XCloseDisplay() dumps core if libumen is used with UMEM_DEBUG=default.
Here is the example of this issue. It looks that 0xdeadbeef issue is
in nevada libX11. This problem doesn't occur on s10u3b7.
====
% cat t.c
#include <stdio.h>
#include <X11/Xlib.h>
main()
{
Display *dsp;
dsp = XOpenDisplay(NULL);
XCloseDisplay(dsp);
}
% env UMEM_DEBUG=default LD_PRELOAD=libumem.so.1 ./a.out
zsh: segmentation fault (core dumped) env UMEM_DEBUG=default LD_PRELOAD=libumem.so.1 ./a.out
% env UMEM_DEBUG=guards LD_PRELOAD=libumem.so.1 ./a.out
zsh: segmentation fault (core dumped) env UMEM_DEBUG=guards LD_PRELOAD=libumem.so.1 ./a.out
% mdb a.out core
Loading modules: [ libumem.so.1 libc.so.1 ld.so.1 ]
> ::stack
libX11.so.4`ia_close_display+0x2a(8071748, 8098f14)
libX11.so.4`XCloseDisplay+0xa2(8071748)
main+0x1c(1, 8047040, 8047048)
_start+0x7a(1, 80471a8, 0, 80471b0, 80471c8, 80471da)
> <eip/i
libX11.so.4`ia_close_display+0x2a: movl (%esi),%eax
> <esi/X
mdb: failed to read data from target: no mapping for address
0xdeadbeef:
>
|