Skip site navigation (1)Skip section navigation (2)
Date:      Sun,  3 Jun 2007 17:13:16 +0200 (CEST)
From:      clemens fischer <ino-news@spotteswoode.dnsalias.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        clemens fischer <ino-news@spotteswoode.dnsalias.org>
Subject:   misc/113292: xorg-7.2:  dga(1) kills xorg-server
Message-ID:  <20070603151316.80E15279B8@spotteswoode.dnsalias.org>
Resent-Message-ID: <200706031550.l53Fo29X095889@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         113292
>Category:       misc
>Synopsis:       xorg-7.2:  dga(1) kills xorg-server
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jun 03 15:50:02 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     clemens fischer
>Release:        FreeBSD 6.2-STABLE i386
>Organization:
>Environment:
System: FreeBSD spotteswoode.dnsalias.org 6.2-STABLE
FreeBSD 6.2-STABLE #19: Sat May 26 19:53:56 CEST 2007
root@spotteswoode.dnsalias.org:/usr/obj/usr/src/sys/spott i386

i'm using the ratpoison(1) wm.

the x11 configuration isn't very spectacular:

  Section "ServerFlags"
    Option  "DefaultServerLayout"     "check_one"
  EndSection

  Section "ServerLayout"
    Identifier     "check_one"
    Screen  0 "s3_on_liteon" 0 0
    InputDevice    "Mouse2"
    InputDevice    "Keyboard0"
  EndSection

  Section "Module"
    Load  "dbe"
    Load  "dri"
    Load  "extmod"
    Load  "glx"
    Load  "GLcore"
    Load  "record"
    Load  "xtrap"
    Load  "type1"
    Load  "freetype"
  EndSection

  Section "Extensions"
    Option "Composite" "enable"
    Option "RENDER" "enable"
  EndSection

  Section "DRI"
          Mode         0666
  EndSection

  Section "InputDevice"
    Identifier  "Keyboard0"
    Driver      "keyboard"
    Option      "CoreKeyboard"
    Option      "XkbModel" "pc104"
    Option      "XkbLayout" "de"
    Option      "XkbVariant" "nodeadkeys"
    Option      "XkbOptions" "ctrl:swapcaps"
    Option      "Xleds" "1 2 3"
    Option      "AutoRepeat" "500 30"
    Option      "LeftAlt" "Meta"
  EndSection

  Section "InputDevice"
    Identifier  "Mouse2"
    Option      "CorePointer"
    Option      "Protocol" "auto"
    Driver      "mouse"
    Option      "Device" "/dev/psm0"
    Option      "ZAxisMapping" "4 5"
  EndSection

  Section "InputDevice"
    Identifier  "Mouse0"
    Driver      "mouse"
    Option      "SendCoreEvents"
    Option      "Emulate3Buttons"
    Option      "Emulate3Timeout" "150"
    Option      "Protocol" "Microsoft"
    Option      "Device" "/dev/mouse"
  EndSection

  Section "Monitor"
    Identifier   "liteon"
    HorizSync    31.47 - 60.02
    VertRefresh  56.0 - 56.0
    VertRefresh  60.0 - 60.0
    VertRefresh  66.0 - 66.0
    VertRefresh  70.0 - 70.0
    VertRefresh  72.0 - 72.0
    VertRefresh  75.0 - 75.0
  EndSection

  Section "Monitor"
    Identifier   "Monitor0"
    VendorName   "Monitor Vendor"
    ModelName    "Monitor Model"
  EndSection

  Section "Device"
    Identifier  "Card1"
    Driver      "s3"
    ChipSet     "Trio32/64"
    Card        "s3 Trio32/64"
  EndSection

  Section "Screen"
    Identifier  "s3_on_liteon"
    #Device   "S3-Trio-64V2-DX-GX"
    Device     "Card1"
    Monitor    "liteon"
    DefaultDepth     16
    SubSection "Display"
      Depth     8
      Modes    "1024x768" "800x600" "640x480"
    EndSubSection
    SubSection "Display"
      Depth     16
      Modes    "1024x768" "800x600" "640x480"
    EndSubSection
    SubSection "Display"
      Depth     24
      Modes    "1024x768" "800x600" "640x480"
    EndSubSection
  EndSection

>Description:

out of idle curiosity i tried dga(1) from the bash command line and
found it a somewhat simple colour-showcase.  whenever i hit `q' to get
out of it, the Xorg(1) server crashes.

the output from the log is:

  ...
  AUDIT: Sun Jun  3 16:32:41 2007: 11294 X: client 5 disconnected
  AUDIT: Sun Jun  3 16:33:14 2007: 11294 X: client 6 disconnected
  AUDIT: Sun Jun  3 16:34:11 2007: 11294 X: client 5 connected from local host (uid 0)
    Auth name: MIT-MAGIC-COOKIE-1 ID: 67

  Fatal server error:
  Caught signal 11.  Server aborting

the lines on the console end with:

  xinit:  connection to X server lost.
  X connection to :0.0 broken (explicit kill or server shutdown).
  urxvt: X connection to ':0.0' broken, unable to recover, exiting.

  (==) s3(0): Write-combining range (0xa0000,0x10000) was already clear

i could re-attach to the screen session, and i have what little is in
the gdb(1) backtrace from the Xorg corefile.  the ptty had:

  0  # dga
  1 addr:0x28345000, width 1024, bank size 2097152, depth 16 planes
  KeyPress [38]: a
  KeyRelease[38]: a
  ...
  KeyPress [24]: q
  EXITTING
  X connection to :0.0 broken (explicit kill or server shutdown).

the debugger said:

  0  # gdb /l/bin/Xorg /var/corefiles/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 "i386-marcel-freebsd"...(no debugging symbols found)...
  Core was generated by `Xorg'.
  Program terminated with signal 6, Aborted.
  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/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/libfontenc.so.1...(no debugging symbols found)...done.
  Loaded symbols for /usr/local/lib/libfontenc.so.1
  Reading symbols from /lib/libz.so.3...(no debugging symbols found)...done.
  Loaded symbols for /lib/libz.so.3
  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 /lib/libm.so.4...(no debugging symbols found)...done.
  Loaded symbols for /lib/libm.so.4
  Reading symbols from /lib/libc.so.6...(no debugging symbols found)...done.
  Loaded symbols for /lib/libc.so.6
  Reading symbols from /usr/local/lib/xorg/modules//libpcidata.so...(no debugging symbols found)...done.
  Loaded symbols for /usr/local/lib/xorg/modules//libpcidata.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//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//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//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//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//libxtrap.so...(no debugging symbols found)...done.
  Loaded symbols for /usr/local/lib/xorg/modules/extensions//libxtrap.so
  Reading symbols from /usr/local/lib/xorg/modules/fonts//libtype1.so...(no debugging symbols found)...done.
  Loaded symbols for /usr/local/lib/xorg/modules/fonts//libtype1.so
  Reading symbols from /usr/local/lib/xorg/modules/fonts//libfreetype.so...(no debugging symbols found)...done.
  Loaded symbols for /usr/local/lib/xorg/modules/fonts//libfreetype.so
  Reading symbols from /usr/local/lib/xorg/modules/drivers//s3_drv.so...(no debugging symbols found)...done.
  Loaded symbols for /usr/local/lib/xorg/modules/drivers//s3_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 /usr/local/lib/xorg/modules/input//keyboard_drv.so...(no debugging symbols found)...done.
  Loaded symbols for /usr/local/lib/xorg/modules/input//keyboard_drv.so
  Reading symbols from /usr/local/lib/xorg/modules//libvgahw.so...(no debugging symbols found)...done.
  Loaded symbols for /usr/local/lib/xorg/modules//libvgahw.so
  Reading symbols from /usr/local/lib/xorg/modules//libint10.so...(no debugging symbols found)...done.
  Loaded symbols for /usr/local/lib/xorg/modules//libint10.so
  Reading symbols from /usr/local/lib/xorg/modules//libvbe.so...(no debugging symbols found)...done.
  Loaded symbols for /usr/local/lib/xorg/modules//libvbe.so
  Reading symbols from /usr/local/lib/xorg/modules//libramdac.so...(no debugging symbols found)...done.
  Loaded symbols for /usr/local/lib/xorg/modules//libramdac.so
  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/xorg/modules//libxaa.so...(no debugging symbols found)...done.
  Loaded symbols for /usr/local/lib/xorg/modules//libxaa.so
  Reading symbols from /usr/local/lib/xorg/modules/extensions//libGLcore.so...(no debugging symbols found)...done.
  Loaded symbols for /usr/local/lib/xorg/modules/extensions//libGLcore.so
  Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols found)...done.
  Loaded symbols for /libexec/ld-elf.so.1
  #0  0x283844d7 in kill () from /lib/libc.so.6
  (gdb) bt full
  #0  0x283844d7 in kill () from /lib/libc.so.6
  No symbol table info available.
  #1  0x28384476 in raise () from /lib/libc.so.6
  No symbol table info available.
  #2  0x28383213 in abort () from /lib/libc.so.6
  No symbol table info available.
  #3  0x0809760e in ddxGiveUp ()
  No symbol table info available.
  #4  0x08184747 in AbortServer ()
  No symbol table info available.
  #5  0x081849f2 in FatalError ()
  No symbol table info available.
  #6  0x080b54c8 in xf86SigHandler ()
  No symbol table info available.
  #7  0xbfbfff94 in ?? ()
  No symbol table info available.
  #8  0x0000000b in ?? ()
  No symbol table info available.
  #9  0x0000000c in ?? ()
  No symbol table info available.
  #10 0xbfbfd5e0 in ?? ()
  No symbol table info available.
  #11 0x00000028 in ?? ()
  No symbol table info available.
  #12 0x080b5470 in xf86InterceptSigIll ()
  No symbol table info available.
  #13 0x080b28d0 in xf86SetDGAMode ()
  No symbol table info available.
  #14 0x2858e662 in XAASetDGAMode () from /usr/local/lib/xorg/modules//libxaa.so
  No symbol table info available.
  #15 0x080bbff2 in xf86AllocateLinearOffscreenArea ()
  No symbol table info available.
  #16 0x080b2ee2 in DGASetMode ()
  No symbol table info available.
  #17 0x284259ae in ProcXF86DGADispatch () from /usr/local/lib/xorg/modules/extensions//libextmod.so
  No symbol table info available.
  #18 0x28426043 in ProcXDGADispatch () from /usr/local/lib/xorg/modules/extensions//libextmod.so
  No symbol table info available.
  #19 0x08123370 in XaceHook ()
  No symbol table info available.
  #20 0x08082136 in Dispatch ()
  No symbol table info available.
  #21 0x0806c35d in main ()
  No symbol table info available.
  (gdb) ^D

>How-To-Repeat:

i can repeat the show with, eg.:

  0  # dga
  1 addr:0x28345000, width 1024, bank size 2097152, depth 16 planes
  KeyPress [56]: b
  Framebuffer write speed:  39872K/s
  Framebuffer read speed:   6158K/s
  KeyRelease[56]: b
  KeyPress [66]:
  KeyRelease[66]:
  KeyPress [66]:
  KeyPress [24]: q
  EXITTING
  X connection to :0.0 broken (explicit kill or server shutdown).

>Fix:

	none known to me.

regards, clemens
>Release-Note:
>Audit-Trail:
>Unformatted:



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