Bug 25874 - coredump on "X -showopts"
Summary: coredump on "X -showopts"
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/General (show other bugs)
Version: 7.3 (2007.09)
Hardware: Other All
: medium normal
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: xserver-1.9
  Show dependency treegraph
 
Reported: 2010-01-03 09:11 UTC by Martin Mokrejs
Modified: 2010-06-22 17:23 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Xorg.0.log (generated on coredump) (3.01 KB, text/plain)
2010-01-03 09:13 UTC, Martin Mokrejs
no flags Details
Patch that fixes the crash for me (1.18 KB, patch)
2010-06-11 11:28 UTC, Alan Coopersmith
no flags Details | Splinter Review
X -showopts output after patching (2.18 KB, text/plain)
2010-06-18 11:37 UTC, Martin Mokrejs
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Mokrejs 2010-01-03 09:11:43 UTC
# X -showopts

This is a pre-release version of the X server from The X.Org Foundation.
It is not supported in any way.
Bugs may be filed in the bugzilla at http://bugs.freedesktop.org/.
Select the "xorg" product for bugs you find in this release.
Before reporting bugs in pre-release versions please check the
latest version in the X.Org Foundation git repository.
See http://wiki.x.org/wiki/GitPage for git access instructions.

X.Org X Server 1.7.3.902 (1.7.4 RC 2)
Release Date: 2009-12-26
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.32 i686
Current Operating System: Linux vrapenec 2.6.32 #2 Sun Dec 13 12:22:36 CET 2009 i686
Kernel command line: root=/dev/sda3 console=ttyS0,57600n8 console=tty0 radeon.modeset=0 nomodeset udev
Build Date: 03 January 2010  05:18:56PM

Current version of pixman: 0.17.2
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Sun Jan  3 18:07:46 2010

Backtrace:
0: X (xorg_backtrace+0x3c) [0x8099b7c]
1: X (0x8048000+0x520ef) [0x809a0ef]
2: (vdso) (__kernel_rt_sigreturn+0x0) [0xb77d940c]
3: X (xf86MatchDevice+0x50) [0x8140110]
4: /usr/lib/xorg/modules/drivers/ati_drv.so (0xb77d0000+0x76f) [0xb77d076f]
5: /usr/lib/xorg/modules/drivers/ati_drv.so (0xb77d0000+0xba2) [0xb77d0ba2]
6: X (0x8048000+0xf09a1) [0x81389a1]
7: X (xf86LoadModules+0xe0) [0x80a6b40]
8: X (DoShowOptions+0x31) [0x80af1e1]
9: X (InitOutput+0x1b9) [0x80a8a89]
10: X (0x8048000+0x1a2eb) [0x80622eb]
11: /lib/libc.so.6 (__libc_start_main+0xe6) [0xb72babb6]
12: X (0x8048000+0x1a081) [0x8062081]
Segmentation fault at address (nil)

Fatal server error:
Caught signal 11 (Segmentation fault). Server aborting



(gdb) where
#0  0xb77d9424 in __kernel_vsyscall ()
#1  0xb72ce421 in *__GI_raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#2  0xb72cfb62 in *__GI_abort () at abort.c:92
#3  0x080a6f2b in ddxGiveUp () at xf86Init.c:1214
#4  0x080a6fb8 in AbortDDX () at xf86Init.c:1258
#5  0x0809495d in AbortServer () at log.c:404
#6  0x0809503f in FatalError (f=0x81cf7e0 "Caught signal %d (%s). Server aborting\n") at log.c:529
#7  0x0809a155 in OsSigHandler (signo=11, sip=0xbfcfd6cc, unused=0xbfcfd74c) at osinit.c:156
#8  <signal handler called>
#9  0x08140110 in xf86MatchDevice (drivername=0xb77d0c00 "ati", sectlist=0xbfcfd87c) at xf86Helper.c:1470
#10 0xb77d076f in ati_gdev_subdriver (options=0x0) at ati.c:180
#11 0xb77d0ba2 in ATISetup (Module=0x822f588, Options=0x0, ErrorMajor=0xbfcfd9ac, ErrorMinor=0xbfcfd9a8) at atimodule.c:65
#12 0x081389a1 in doLoadModule (module=<value optimized out>, path=<value optimized out>, subdirlist=0x0, patternlist=0x0,
    options=0x0, modreq=0x0, errmaj=0xbfcfd9ac, errmin=0xbfcfd9a8, flags=<value optimized out>) at loadmod.c:1007
#13 0x080a6b40 in xf86LoadModules (list=0x82380a0, optlist=0x0) at xf86Init.c:1727
#14 0x080af1e1 in DoShowOptions () at xf86ShowOpts.c:87
#15 0x080a8a89 in InitOutput (pScreenInfo=0x8222c60, argc=2, argv=0xbfcfdbd4) at xf86Init.c:602
#16 0x080622eb in main (argc=2, argv=0xbfcfdbd4, envp=0xbfcfdbe0) at main.c:204
(gdb) bt full
#0  0xb77d9424 in __kernel_vsyscall ()
No symbol table info available.
#1  0xb72ce421 in *__GI_raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
        resultvar = <value optimized out>
        pid = -1220571148
        selftid = 0
#2  0xb72cfb62 in *__GI_abort () at abort.c:92
        act = {__sigaction_handler = {sa_handler = 0xb72b0eac, sa_sigaction = 0xb72b0eac}, sa_mask = {__val = {134526664,
              1, 3078590404, 3218068960, 3078593176, 3218068920, 3078502528, 3218068904, 134526664, 3218068892, 3078593084,
              0, 3074455600, 1, 0, 1, 3078592736, 136373600, 4294967295, 1, 3073443270, 135530040, 6, 3073426641, 0,
              3218068960, 3218068892, 3218068904, 3078592736, 0, 134568430, 134568110}}, sa_flags = -1220571148,
          sa_restorer = 0x8224880}
        sigs = {__val = {32, 0 <repeats 31 times>}}
#3  0x080a6f2b in ddxGiveUp () at xf86Init.c:1214
        i = <value optimized out>
#4  0x080a6fb8 in AbortDDX () at xf86Init.c:1258
        i = 0
#5  0x0809495d in AbortServer () at log.c:404
No locals.
#6  0x0809503f in FatalError (f=0x81cf7e0 "Caught signal %d (%s). Server aborting\n") at log.c:529
        beenhere = 1
#7  0x0809a155 in OsSigHandler (signo=11, sip=0xbfcfd6cc, unused=0xbfcfd74c) at osinit.c:156
No locals.
#8  <signal handler called>
No symbol table info available.
#9  0x08140110 in xf86MatchDevice (drivername=0xb77d0c00 "ati", sectlist=0xbfcfd87c) at xf86Helper.c:1470
        pgdp = 0x0
        i = -1076897368
#10 0xb77d076f in ati_gdev_subdriver (options=0x0) at ati.c:180
        nATIGDev = 134856
        nMach64GDev = 136437568
        nR128GDev = 44
        nRadeonGDev = -1221974528
        ATIGDevs = <value optimized out>
        load_mach64 = 136437568
        load_r128 = 136373600
        load_radeon = 2
        i = <value optimized out>
#11 0xb77d0ba2 in ATISetup (Module=0x822f588, Options=0x0, ErrorMajor=0xbfcfd9ac, ErrorMinor=0xbfcfd9a8) at atimodule.c:65
        Inited = 1
#12 0x081389a1 in doLoadModule (module=<value optimized out>, path=<value optimized out>, subdirlist=0x0, patternlist=0x0,
    options=0x0, modreq=0x0, errmaj=0xbfcfd9ac, errmin=0xbfcfd9a8, flags=<value optimized out>) at loadmod.c:1007
        pathlist = <value optimized out>
        found = <value optimized out>
        ret = 0x822f588
        wasLoaded = 0
        cim = <value optimized out>
---Type <return> to continue, or q <return> to quit---
#13 0x080a6b40 in xf86LoadModules (list=0x82380a0, optlist=0x0) at xf86Init.c:1727
        errmaj = 0
        errmin = 136153875
        opt = <value optimized out>
        name = 0x82380c0 "ati"
        failed = 0
#14 0x080af1e1 in DoShowOptions () at xf86ShowOpts.c:87
        i = 0
        vlist = <value optimized out>
#15 0x080a8a89 in InitOutput (pScreenInfo=0x8222c60, argc=2, argv=0xbfcfdbd4) at xf86Init.c:602
        i = <value optimized out>
        j = <value optimized out>
        k = <value optimized out>
        scr_index = 0
        modulelist = <value optimized out>
        optionlist = <value optimized out>
        layout = 0x0
        screenpix24 = <value optimized out>
        pix24 = 3218070208
        pix24From = 134564188
        autoconfig = 0
        configured_device = <value optimized out>
#16 0x080622eb in main (argc=2, argv=0xbfcfdbd4, envp=0xbfcfdbe0) at main.c:204
        i = <value optimized out>
        alwaysCheckForInput = {0, 1}
(gdb)
Comment 1 Martin Mokrejs 2010-01-03 09:13:22 UTC
Created attachment 32416 [details]
Xorg.0.log (generated on coredump)
Comment 2 Martin Mokrejs 2010-01-03 09:15:41 UTC
Xorg.log.0 file from a functional server instance is attached to this Gentoo linux bug http://bugs.gentoo.org/show_bug.cgi?id=299458 (go for the one with mesa-7.5.2).

My hardware is Asus L3C/S laptop with radeon 7500M.
Comment 3 Alan Coopersmith 2010-06-11 11:28:24 UTC
Created attachment 36220 [details] [review]
Patch that fixes the crash for me
Comment 4 Martin Mokrejs 2010-06-18 11:35:29 UTC
The patch works from me as well on 1.7.6 (and I even did bother to retry that it was still crashing before). ;-) Thanks.
Comment 5 Martin Mokrejs 2010-06-18 11:37:35 UTC
Created attachment 36361 [details]
X -showopts output after patching

Just in case you would like to see the output after patching.
Comment 6 Peter Hutterer 2010-06-22 17:23:21 UTC
commit b8615d592700b7be319c04cc0563fdeb5a266534
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
Date:   Sat Jun 12 08:19:16 2010 -0700

    Don't coredump on "X -showopts" (bug 25874)


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.