OpenSolaris

Printable Version Enter a New Search
Bug ID 6478492
Synopsis XCloseDisplay() dumps core if libumem is used with UMEM_DEBUG=default
State 10-Fix Delivered:Verified (Fix available in build)
Category:Subcategory xserver:libx11
Keywords libumem | testcase
Responsible Engineer Alan Coopersmith
Reported Against
Duplicate Of
Introduced In solaris_10
Commit to Fix snv_51
Fixed In snv_51
Release Fixed solaris_nevada(snv_51)
Related Bugs 6444546 , 5107730
Submit Date 5-October-2006
Last Update Date 16-January-2007
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:
>
Work Around
N/A
Comments
N/A