[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#472823: xserver-xorg-core: segfault if no primary pci device



Package: xserver-xorg-core
Version: 2:1.4.99.901-2
Severity: important

Hi,

On my Ultra Sparc, I've just on Banshee PCI card plugged in the last PCI
port of the machine.

When I launch Xorg 2:1.4.99.901-2, I get this segfault:


(gdb) run
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /usr/bin/Xorg
[Thread debugging using libthread_db enabled]
[New process 12903]

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.4.99.901 (1.5.0 RC 1)
Release Date: 5 September 2007
X Protocol Version 11, Revision 0
Build Operating System: Linux Debian (xorg-server 2:1.4.99.901-2)
Current Operating System: Linux gloria 2.6.22-3-sparc64-smp #1 SMP Mon Nov 12 12:48:41 UTC 2007 sparc64
Build Date: 23 March 2008  02:04:09AM

        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Module Loader present
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: Wed Mar 26 18:33:20 2008
(==) Using config file: "/etc/X11/xorg.conf"
[New Thread -134781264 (LWP 12903)]
[tcsetpgrp failed in terminal_inferior: Operation not permitted]
(EE) Failed to load module "glx" (module does not exist, 0)
(EE) Failed to load module "dri" (module does not exist, 0)
Primary device is not PCI

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -134781264 (LWP 12903)]
0x00081240 in chooseVideoDriver () at ../../../../hw/xfree86/common/xf86AutoConfig.c:441
441         matchDriverFromFiles(matches, info->vendor_id, info->device_id);
(gdb) bt full
#0  0x00081240 in chooseVideoDriver () at ../../../../hw/xfree86/common/xf86AutoConfig.c:441
        info = (struct pci_device *) 0x0
        iter = (struct pci_device_iterator *) 0x1e90c8
        chosen_driver = <value optimized out>
        matches = {0x0 <repeats 20 times>}
#1  0x00081840 in autoConfigDevice (preconf_device=0x1e2ee8) at ../../../../hw/xfree86/common/xf86AutoConfig.c:297
        ptr = (GDevPtr) 0x1e2ee8
#2  0x000720a4 in InitOutput (pScreenInfo=0x1db1e8, argc=1, argv=0xffe474a4) at ../../../../hw/xfree86/common/xf86Init.c:564
        flags = <value optimized out>
        configured_device = (GDevPtr) 0x1e2ee8
        i = <value optimized out>
        j = <value optimized out>
        k = <value optimized out>
        modulelist = (char **) 0x1e4850
        optionlist = (pointer *) 0x1e4870
        layout = <value optimized out>
        screenpix24 = <value optimized out>
        pix24 = <value optimized out>
        pix24From = <value optimized out>
        autoconfig = <value optimized out>
#3  0x00039918 in main (argc=1, argv=0xffe474a4, envp=0xffe474ac) at ../../dix/main.c:358
        i = <value optimized out>
        error = -134707216
        alwaysCheckForInput = {0, 1}




To fix it on my side, I did this patch:
diff --git a/hw/xfree86/common/xf86AutoConfig.c b/hw/xfree86/common/xf86AutoConfig.c
index 268b50c..c64df4e 100644
--- a/hw/xfree86/common/xf86AutoConfig.c
+++ b/hw/xfree86/common/xf86AutoConfig.c
@@ -436,9 +436,10 @@ chooseVideoDriver(void)
     if (!info) {
        ErrorF("Primary device is not PCI\n");
     }
-
 #ifdef __linux__
+    else {
     matchDriverFromFiles(matches, info->vendor_id, info->device_id);
+    }
 #endif /* __linux__ */

     /* TODO Handle multiple drivers claiming to support the same PCI ID */


Cheers,

      Gonéri Le Bouder

-- Package-specific info:
Contents of /var/lib/x11/X.roster:
xserver-xorg

/var/lib/x11/X.md5sum does not exist.

X server symlink status:
lrwxrwxrwx 1 root root 13 Mar 26 16:46 /etc/X11/X -> /usr/bin/Xorg
-rwxr-xr-x 1 root root 1669488 Mar 23 04:01 /usr/bin/Xorg

Contents of /var/lib/x11/xorg.conf.roster:
xserver-xorg

VGA-compatible devices on PCI bus:
0000:00:05.0 VGA compatible controller: 3Dfx Interactive, Inc. Voodoo Banshee (rev 03)

/etc/X11/xorg.conf unchanged from checksum in /var/lib/x11/xorg.conf.md5sum.

Xorg X server configuration file status:
-rw-r--r-- 1 root root 1077 Mar 26 18:16 /etc/X11/xorg.conf

Contents of /etc/X11/xorg.conf:
# xorg.conf (X.Org X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
#   sudo dpkg-reconfigure -phigh xserver-xorg

Section "InputDevice"
	Identifier	"Generic Keyboard"
	Driver		"kbd"
	Option		"XkbRules"	"xorg"
	Option		"XkbModel"	"pc105"
	Option		"XkbLayout"	"fr"
EndSection

Section "InputDevice"
	Identifier	"Configured Mouse"
	Driver		"mouse"
EndSection

Section "Device"
	Identifier	"Configured Video Device"
EndSection

Section "Monitor"
	Identifier	"Configured Monitor"
EndSection

Section "Screen"
	Identifier	"Default Screen"
	Monitor		"Configured Monitor"
EndSection


Xorg X server log files on system:
-rw-r--r-- 1 root root 5486 Mar 26 18:37 /var/log/Xorg.0.log

Contents of most recent Xorg X server log file
/var/log/Xorg.0.log:
(WW) Failed to open protocol names file /etc/X11/xserver/protocol.txt
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.4.99.901 (1.5.0 RC 1)
Release Date: 5 September 2007
X Protocol Version 11, Revision 0
Build Operating System: Linux Debian (xorg-server 2:1.4.99.901-2)
Current Operating System: Linux gloria 2.6.22-3-sparc64-smp #1 SMP Mon Nov 12 12:48:41 UTC 2007 sparc64
Build Date: 23 March 2008  02:04:09AM
 
	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
Module Loader present
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: Wed Mar 26 18:37:01 2008
(==) Using config file: "/etc/X11/xorg.conf"
(==) No Layout section.  Using the first Screen section.
(**) |-->Screen "Default Screen" (0)
(**) |   |-->Monitor "Configured Monitor"
(==) No device specified for screen "Default Screen".
	Using the first device section listed.
(**) |   |-->Device "Configured Video Device"
(==) |-->Input Device "Configured Mouse"
(==) |-->Input Device "Generic Keyboard"
(==) The core pointer device wasn't specified explicitly in the layout.
	Using the first mouse device.
(==) The core keyboard device wasn't specified explicitly in the layout.
	Using the first keyboard device.
(==) Automatically adding devices
(==) Automatically enabling devices
(==) No FontPath specified.  Using compiled-in default.
(WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
	Entry deleted from font path.
(==) FontPath set to:
	/usr/share/fonts/X11/misc,
	/usr/share/fonts/X11/100dpi/:unscaled,
	/usr/share/fonts/X11/75dpi/:unscaled,
	/usr/share/fonts/X11/Type1,
	/usr/share/fonts/X11/100dpi,
	/usr/share/fonts/X11/75dpi,
	/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType
(==) ModulePath set to "/usr/lib/xorg/modules"
(II) No APM support in BIOS or kernel
(II) Loader magic: 0x1b3958
(II) Module ABI versions:
	X.Org ANSI C Emulation: 0.3
	X.Org Video Driver: 4.0
	X.Org XInput driver : 2.0
	X.Org Server Extension : 1.0
	X.Org Font Renderer : 0.5
(II) Loader running on linux
(--) using VT number 2

(--) PCI: (0@0:5:0) 3Dfx Interactive, Inc. Voodoo Banshee rev 3, Mem @ 0x000001ff/-2113929216, 0x000001ff/-2080374784, I/O @ 0x000001fe/33624064
(II) System resource ranges:
	[0] -1	1	0x7fffffff - 0x7fffffff (0x1) MX[B]
	[1] -1	1	0x000f0000 - 0x000fffff (0x10000) MX[B]
	[2] -1	1	0x000c0000 - 0x000effff (0x30000) MX[B]
	[3] -1	1	0x00000000 - 0x0009ffff (0xa0000) MX[B]
	[4] -1	0	0x7fffffff - 0x7fffffff (0x1) MX[B]
	[5] -1	0	0x000f0000 - 0x000fffff (0x10000) MX[B]
	[6] -1	0	0x000c0000 - 0x000effff (0x30000) MX[B]
	[7] -1	0	0x00000000 - 0x0009ffff (0xa0000) MX[B]
	[8] -1	1	0x0000ffff - 0x0000ffff (0x1) IX[B]
	[9] -1	1	0x00000000 - 0x00000000 (0x1) IX[B]
	[10] -1	0	0x0000ffff - 0x0000ffff (0x1) IX[B]
	[11] -1	0	0x00000000 - 0x00000000 (0x1) IX[B]
(II) LoadModule: "extmod"

(II) Loading /usr/lib/xorg/modules/extensions//libextmod.so
(II) Module extmod: vendor="X.Org Foundation"
	compiled for 1.4.99.901, module version = 1.0.0
	Module class: X.Org Server Extension
	ABI class: X.Org Server Extension, version 1.0
(II) Loading extension SHAPE
(II) Loading extension MIT-SUNDRY-NONSTANDARD
(II) Loading extension BIG-REQUESTS
(II) Loading extension SYNC
(II) Loading extension MIT-SCREEN-SAVER
(II) Loading extension XC-MISC
(II) Loading extension XFree86-VidModeExtension
(II) Loading extension XFree86-Misc
(II) Loading extension XFree86-DGA
(II) Loading extension DPMS
(II) Loading extension TOG-CUP
(II) Loading extension Extended-Visual-Information
(II) Loading extension XVideo
(II) Loading extension XVideo-MotionCompensation
(II) Loading extension X-Resource
(II) LoadModule: "dbe"

(II) Loading /usr/lib/xorg/modules/extensions//libdbe.so
(II) Module dbe: vendor="X.Org Foundation"
	compiled for 1.4.99.901, module version = 1.0.0
	Module class: X.Org Server Extension
	ABI class: X.Org Server Extension, version 1.0
(II) Loading extension DOUBLE-BUFFER
(II) LoadModule: "glx"

(WW) Warning, couldn't open module glx
(II) UnloadModule: "glx"
(EE) Failed to load module "glx" (module does not exist, 0)
(II) LoadModule: "freetype"

(II) Loading /usr/lib/xorg/modules/fonts//libfreetype.so
(II) Module freetype: vendor="X.Org Foundation & the After X-TT Project"
	compiled for 1.4.99.901, module version = 2.1.0
	Module class: X.Org Font Renderer
	ABI class: X.Org Font Renderer, version 0.5
(II) Loading font FreeType
(II) LoadModule: "record"

(II) Loading /usr/lib/xorg/modules/extensions//librecord.so
(II) Module record: vendor="X.Org Foundation"
	compiled for 1.4.99.901, module version = 1.13.0
	Module class: X.Org Server Extension
	ABI class: X.Org Server Extension, version 1.0
(II) Loading extension RECORD
(II) LoadModule: "dri"

(WW) Warning, couldn't open module dri
(II) UnloadModule: "dri"
(EE) Failed to load module "dri" (module does not exist, 0)
Primary device is not PCI

Backtrace:

Fatal server error:
Caught signal 11.  Server aborting



-- System Information:
Debian Release: testing/unstable
  APT prefers stable
  APT policy: (500, 'stable'), (1, 'experimental')
Architecture: sparc (sparc64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.22-3-sparc64-smp
Locale: LANG=fr_FR@euro, LC_CTYPE=fr_FR@euro (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)

Versions of packages xserver-xorg-core depends on:
ii  libc6               2.7-6                GNU C Library: Shared libraries
ii  libdbus-1-3         1.1.20-1             simple interprocess messaging syst
ii  libfontenc1         1:1.0.4-2            X11 font encoding library
ii  libgcc1             1:4.3.0~rc2-1        GCC support library
ii  libhal1             0.5.10+git20080301-1 Hardware Abstraction Layer - share
ii  libpciaccess0       0.10-1               Generic PCI access library for X
ii  libpixman-1-0       0.9.6-1              pixel-manipulation library for X a
ii  libssl0.9.8         0.9.8g-7             SSL shared libraries
ii  libxau6             1:1.0.3-2            X11 authorisation library
ii  libxdmcp6           1:1.0.1-2            X11 Display Manager Control Protoc
ii  libxfont1           1:1.3.2-1            X11 font rasterisation library
ii  x11-common          1:7.4~1              X Window System (X.Org) infrastruc
ii  xserver-xorg        1:7.4~1              the X.Org X server

Versions of packages xserver-xorg-core recommends:
ii  xfonts-base                   1:1.0.0-3  standard fonts for X
ii  xkb-data                      0.8-12     X Keyboard Extension (XKB) configu

-- no debconf information



Reply to: