Bug 30462 - [bisected] X server crashed when start
Summary: [bisected] X server crashed when start
Status: VERIFIED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/General (show other bugs)
Version: git
Hardware: Other Linux (All)
: medium critical
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-29 07:57 UTC by Shuang He
Modified: 2010-10-08 19:14 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Shuang He 2010-09-29 07:57:30 UTC
System Environment:
--------------------------
Libdrm:         (master)2.4.22
Mesa:           (master)08839c4055e89a10e90df2f3a3a2bdc4e6ce0273
Xserver:                (master)xorg-server-1.9.0-113-g1a9022d3289ff74043112808cc8aa315fd9c40e8
Xf86_video_intel:               (master)2.12.902


Bug detailed description:
-------------------------
X server crashed when started, my platform is piketon and pineview
following is backtrace:
Program received signal SIGSEGV, Segmentation fault.
0x4aa225bd in _dl_close () from /lib/ld-linux.so.2
Missing separate debuginfos, use: debuginfo-install dbus-libs-1.2.16-8.fc12.i686 expat-2.0.1-7.i686 freetype-2.3.9-6.fc12.i686 glibc-2.11-2.i686 hal-libs-0.5.13-9.fc12.i686 libXdmcp-1.0.3-1.fc12.i686 libcap-ng-0.6.2-3.fc12.i686 libfontenc-1.0.5-2.fc12.i686 libgcc-4.4.2-7.fc12.i686 libgcrypt-1.4.4-8.fc12.i686 libgpg-error-1.6-4.i686 libstdc++-4.4.2-7.fc12.i686 libtalloc-2.0.0-0.fc12.i686 zlib-1.2.3-23.fc12.i686
(gdb) bt
#0  0x4aa225bd in _dl_close () from /lib/ld-linux.so.2
#1  0x4aba7cd4 in dlclose_doit () from /lib/libdl.so.2
#2  0x4aa1c506 in _dl_catch_error () from /lib/ld-linux.so.2
#3  0x4aba803c in _dlerror_run () from /lib/libdl.so.2
#4  0x4aba7d0a in dlclose () from /lib/libdl.so.2
#5  0x0815e35a in LoaderUnload (name=0x838f6f8 "synaptics", handle=0x0) at loader.c:187
#6  0x0815c184 in UnloadModuleOrDriver (mod=0x838fa00) at loadmod.c:1083
#7  0x0815d968 in doLoadModule (module=0x838f7b8 "synaptics", path=0x8203a28 "\310; \b", subdirlist=0x0, patternlist=0x0, options=0x0, modreq=0x0, errmaj=0xbfffed8c,
    errmin=0xbfffed88) at loadmod.c:1005
#8  0x080b6510 in xf86LoadOneModule (name=0x838f818 "synaptics", opt=0x0) at xf86Helper.c:1787
#9  0x080ad14e in xf86NewInputDevice (idev=0x838f538, pdev=0xbfffef18, enable=1 '\001') at xf86Xinput.c:763
#10 0x080ad634 in NewInputDeviceRequest (options=0x838fd68, attrs=0xbfffeed8, pdev=0xbfffef18) at xf86Xinput.c:919
#11 0x0817242b in device_added (hal_ctx=0x838cd80, udi=0x838e2e0 "/org/freedesktop/Hal/devices/platform_i8042_i8042_AUX_port_logicaldev_input") at hal.c:382
#12 0x08172a68 in connect_and_register (connection=<value optimized out>, info=0x81f7344) at hal.c:502
#13 0x08172b90 in connect_hook (connection=0x838c8c8, data=0x81f7344) at hal.c:623
#14 0x081771d0 in connect_to_bus () at dbus-core.c:171
#15 reconnect_timer () at dbus-core.c:190
#16 0x080a64b7 in DoTimer (timer=0x838b9f0, now=<value optimized out>, prev=0x81f431c) at WaitFor.c:420
#17 0x080a6afd in WaitForSomething (pClientsReady=0x838bee8) at WaitFor.c:277
#18 0x0806e0fe in Dispatch () at dispatch.c:367
#19 0x080622ca in main (argc=1, argv=0xbffff4b4, envp=0xbffff4bc) at main.c:287
(gdb)


bisection shows this regression is due to:
commit ab7f057ce9df4e905b12cebc1e587b9a7f200418
Author:     Adam Jackson <ajax@redhat.com>
AuthorDate: Fri Sep 17 11:19:17 2010 -0400
Commit:     Adam Jackson <ajax@redhat.com>
CommitDate: Wed Sep 22 10:57:12 2010 -0400

    loader: Remove a silly layer of reference counting

    libdl will refcount objects for us just fine, thanks.
Comment 1 Adam Jackson 2010-10-05 10:34:27 UTC
commit 9a893fe52f1bfd415e9ffd9d2f5aff5c4da7a756
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Sun Oct 3 16:56:03 2010 +0100

    xfree86: Do not call dlclose(NULL) [regression after ab7f057]
    
    During unwind following an error when attempting to a load a module, we
    attempt to call dlclose on a potentially NULL handle. This is a
    side-effect of removing the abstraction layer in ab7f057.
    
    Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
    Cc: Adam Jackson <ajax@redhat.com>
    Reviewed-by: Adam Jackson <ajax@redhat.com>
    Signed-off-by: Keith Packard <keithp@keithp.com>
Comment 2 fangxun 2010-10-08 19:14:31 UTC
verified with fixed commit.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.