Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 May 2012 15:40:37 +0530
From:      Gautam <list@execve.net>
To:        freebsd-x11@freebsd.org
Subject:   Re: New Xorg crashes when built with clang
Message-ID:  <CAD9pFYD0CU_Yb1Jz3yJUJjVbRkBVwAqRnexbuyj0F23USdMpRA@mail.gmail.com>
In-Reply-To: <4FB9D9E2.4040206@gmail.com>
References:  <CAD9pFYAhYJdkyDiLJd6D1fdPo161OiWaRfp8Nq2J0R_ZSdAdBg@mail.gmail.com> <4FB9D9E2.4040206@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

On Mon, May 21, 2012 at 11:30 AM, Volodymyr Kostyrko <c.kworr@gmail.com>wrote:

> Gautam wrote:
>
>> I could not find a core file from Xorg, but the Xorg.log file does
>> indicate a SEGV. Any idea on this problem? Do let me know if any further
>> information is required; The problem is fully reproducible.
>>
>
> sysctl kern.sugid_coredump=1, probably.
>
>
> Thanks, I wasnt aware of this feature :).

The backtrace now looks like; any idea on what the problem could be?

# gdb /usr/local/bin/Xorg Xorg.core
GNU gdb 6.1.1 [FreeBSD]
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 "amd64-marcel-freebsd"...(no debugging symbols
found)...
Core was generated by `Xorg'.
Program terminated with signal 6, Aborted.
Reading symbols from /usr/local/lib/libhal.so.1...(no debugging symbols
found)...done.
Loaded symbols for /usr/local/lib/libhal.so.1
Reading symbols from /usr/local/lib/libdbus-1.so.3...(no debugging symbols
found)...done.
Loaded symbols for /usr/local/lib/libdbus-1.so.3
Reading symbols from /lib/libcrypto.so.6...(no debugging symbols
found)...done.
Loaded symbols for /lib/libcrypto.so.6
Reading symbols from /usr/local/lib/libpciaccess.so.0...(no debugging
symbols found)...done.
Loaded symbols for /usr/local/lib/libpciaccess.so.0
Reading symbols from /usr/local/lib/libpixman-1.so.9...(no debugging
symbols found)...done.
Loaded symbols for /usr/local/lib/libpixman-1.so.9
Reading symbols from /usr/local/lib/libXfont.so.1...(no debugging symbols
found)...done.
Loaded symbols for /usr/local/lib/libXfont.so.1
Reading symbols from /usr/local/lib/libfreetype.so.9...(no debugging
symbols found)...done.
Loaded symbols for /usr/local/lib/libfreetype.so.9
Reading symbols from /usr/lib/libbz2.so.4...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libbz2.so.4
Reading symbols from /usr/local/lib/libfontenc.so.1...(no debugging symbols
found)...done.
Loaded symbols for /usr/local/lib/libfontenc.so.1
Reading symbols from /lib/libz.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/libz.so.6
Reading symbols from /usr/local/lib/libXau.so.6...(no debugging symbols
found)...done.
Loaded symbols for /usr/local/lib/libXau.so.6
Reading symbols from /usr/local/lib/libXdmcp.so.6...(no debugging symbols
found)...done.
Loaded symbols for /usr/local/lib/libXdmcp.so.6
Reading symbols from /usr/lib/librpcsvc.so.5...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/librpcsvc.so.5
Reading symbols from /lib/libm.so.5...(no debugging symbols found)...done.
Loaded symbols for /lib/libm.so.5
Reading symbols from /lib/libthr.so.3...(no debugging symbols found)...done.
Loaded symbols for /lib/libthr.so.3
Reading symbols from /lib/libc.so.7...(no debugging symbols found)...done.
Loaded symbols for /lib/libc.so.7
Reading symbols from
/usr/local/lib/xorg/modules/extensions/libextmod.so...(no debugging symbols
found)...done.
Loaded symbols for /usr/local/lib/xorg/modules/extensions/libextmod.so
Reading symbols from
/usr/local/lib/xorg/modules/extensions/librecord.so...(no debugging symbols
found)...done.
Loaded symbols for /usr/local/lib/xorg/modules/extensions/librecord.so
Reading symbols from /usr/local/lib/xorg/modules/extensions/libdbe.so...(no
debugging symbols found)...done.
Loaded symbols for /usr/local/lib/xorg/modules/extensions/libdbe.so
Reading symbols from /usr/local/lib/xorg/modules/extensions/libglx.so...(no
debugging symbols found)...done.
Loaded symbols for /usr/local/lib/xorg/modules/extensions/libglx.so
Reading symbols from /usr/local/lib/xorg/modules/extensions/libdri.so...(no
debugging symbols found)...done.
Loaded symbols for /usr/local/lib/xorg/modules/extensions/libdri.so
Reading symbols from /usr/local/lib/libdrm.so.2...(no debugging symbols
found)...done.
Loaded symbols for /usr/local/lib/libdrm.so.2
Reading symbols from
/usr/local/lib/xorg/modules/extensions/libdri2.so...(no debugging symbols
found)...done.
Loaded symbols for /usr/local/lib/xorg/modules/extensions/libdri2.so
Reading symbols from /usr/local/lib/xorg/modules/drivers/intel_drv.so...(no
debugging symbols found)...done.
Loaded symbols for /usr/local/lib/xorg/modules/drivers/intel_drv.so
Reading symbols from /usr/local/lib/libdrm_intel.so.1...(no debugging
symbols found)...done.
Loaded symbols for /usr/local/lib/libdrm_intel.so.1
Reading symbols from /usr/local/lib/libpthread-stubs.so.0...(no debugging
symbols found)...done.
Loaded symbols for /usr/local/lib/libpthread-stubs.so.0
Reading symbols from /usr/local/lib/xorg/modules/libfb.so...(no debugging
symbols found)...done.
Loaded symbols for /usr/local/lib/xorg/modules/libfb.so
Reading symbols from /usr/local/lib/dri/swrast_dri.so...(no debugging
symbols found)...done.
Loaded symbols for /usr/local/lib/dri/swrast_dri.so
Reading symbols from /usr/local/lib/libexpat.so.6...(no debugging symbols
found)...done.
Loaded symbols for /usr/local/lib/libexpat.so.6
Reading symbols from /usr/lib/libstdc++.so.6...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libstdc++.so.6
Reading symbols from /lib/libgcc_s.so.1...(no debugging symbols
found)...done.
Loaded symbols for /lib/libgcc_s.so.1
Reading symbols from /usr/local/lib/xorg/modules/input/kbd_drv.so...(no
debugging symbols found)...done.
Loaded symbols for /usr/local/lib/xorg/modules/input/kbd_drv.so
Reading symbols from /usr/local/lib/xorg/modules/input/mouse_drv.so...(no
debugging symbols found)...done.
Loaded symbols for /usr/local/lib/xorg/modules/input/mouse_drv.so
Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols
found)...done.
Loaded symbols for /libexec/ld-elf.so.1
#0  0x0000000802bdc43c in thr_kill () from /lib/libc.so.7
[New Thread 803007400 (LWP 100209/Xorg)]
(gdb) info threads
* 1 Thread 803007400 (LWP 100209/Xorg)  0x0000000802bdc43c in thr_kill ()
   from /lib/libc.so.7
(gdb) bt
#0  0x0000000802bdc43c in thr_kill () from /lib/libc.so.7
#1  0x0000000802c7582c in abort () from /lib/libc.so.7
#2  0x000000000046d51e in OsAbort ()
#3  0x0000000000478925 in ddxGiveUp ()
#4  0x000000000046accd in AbortServer ()
#5  0x000000000046a4b2 in FatalError ()
#6  0x000000000046b6be in OsInit ()
#7  0x0000000802971b68 in swapcontext () from /lib/libthr.so.3
#8  0x000000080297170f in sigaction () from /lib/libthr.so.3
#9  0x00007ffffffff043 in ?? ()
#10 0x00000008029715e0 in sigaction () from /lib/libthr.so.3
#11 0x00000008040a1d54 in ProcDRI2Dispatch ()
   from /usr/local/lib/xorg/modules/extensions/libdri2.so
#12 0x0000000000433bdd in Dispatch ()
#13 0x000000000042dbf4 in main ()
(gdb)

Thanks
Gautam



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAD9pFYD0CU_Yb1Jz3yJUJjVbRkBVwAqRnexbuyj0F23USdMpRA>