Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Aug 2016 18:14:31 -0800
From:      "CK" <un_x@earthlink.net>
To:        <freebsd-x11@freebsd.org>
Subject:   Current Xorg/OpenChrome Segfaults
Message-ID:  <E1bckCK-0000o4-0H@elasmtp-kukur.atl.sa.earthlink.net>

next in thread | raw e-mail | index | archive | help
This is a compilation of email sent to freebsd-questions, and it
was suggested it may be appropriate to post on this maillist,
the Xorg log follows below:

Subject:    FreeBSD/Xorg/Openchrome Segfault

I don't know who should be dealing with this problem: FreeBSD,
Xorg, or Openchrome ...

Having 9.3 installed, but having a problem with Opera-12.16
crashing on Javascript-based uploading to various datafile
hosting websites, everything except the base system was removed,
and the current version of the ports tarball installed, followed
by the current port of 'pkg'.  That was the only port installed.
Then, using 'pkg install', Xorg was installed.

After starting 'X', a segmentation fault occured.  The previous
xorg.conf was removed for a default start of 'X/Xorg', and the
same segmentation fault occured as shown below - this is a
critical problem for anyone using VIA boards.

The reason for the question to this (questions) list was:

1. It is difficult to believe a non-functional graphics driver
(openchrome) could get into the Xorg packaging system without
proper functioning being tested and verified.

2. It would appear to be an openchrome problem, but I thought
maybe it could be due to the GCC->Clang transition.

To add to this thread in the hope of fixing something so that
X11 works on VIA boards, this is what I have discovered thus
far:

9.3-RELEASE: uses the Xorg VIA driver 0.3.3_1

11.x-current: uses the Xorg VIA driver 0.3.3_6

So, they are essentially the same, and after recompiling the
9.3-RELEASE OpenChrome driver, and installing the 2 libraries
(libchromeXvMCPro.so.1.0.0, libchromeXvMC.so.1.0.0) and 1 driver
(openchrome_drv.so), nothing changed, the same segmentation
fault is occuring.  So it appears that Xorg broke the
functionality, since the driver remained essentially the same
(the libs diff-er, but the version numbers are similar).

After searching/reading some more, Phoronix seems to stay on top
of OpenChrome development, and this is a driver which seems to
have a lot of issues/problems/bugs, and someone on #Xorg said
VIA is not liked by many FreeBSD developers, so I'm unlikely to
get help on this issue; so, that's just great.  I didn't see any
red-flags or warnings in any FreeBSD docs when the boards were
purchased, and they are used as part of Fanless Mini-ITX
systems.

[Other than a cp/mv 'bug' between USB storage and ATA storage
devices (this causes a kernel crash, and 'cat(1)' must be used
to copy/move between such devices), the boards work fine, and
there is no intention to dispose of them, so any work on drivers
is appreciated].

That said, the OpenChrome driver is now up to 0.5+, far beyond
0.3.3, with a new developer actively working on the project, and
many Linux distributions incorporate 0.5+ ...  But I am not a
great enough ports hacker to do this for FreeBSD, and whether it
will resolve Xorg/OpenChrome issues is unknown to me.  But I am
very much 'screwed/fucked' at this time, because I have no
graphical windows interface or graphical javascript browser
which are requirements in my workplace.

http://www.phoronix.com/scan.php?page=news_topic&q=VIA

https://www.mail-archive.com/openchrome-devel@lists.freedesktop.org/msg02109.html

https://cgit.freedesktop.org/openchrome/xf86-video-openchrome/

So, I am still looking for any assistance in getting Xorg
working with any version of OpenChrome that will work.

The whole reason to download the current ports.txz was to try
Xombrero, which has so many dependencies, it was preferable to
try a precompiled 'pkg' installation; however, 9.3 'pkg' is
totally incompatable with the new 'pkg' in effect, thus
requiring a whole new ports upgrade, which resulted in the
Xorg/OpenChrome troubles.

Thanks for the x11 bug report and mailing list advice.  32MB is
the AGP setting in BIOS, which can go up to 64MB, but no more
than 32MB was ever used when set to 64MB when this was last
tested, and at this time, Xorg seems to disable AGP entirely for
the OpenChrome driver:

[337143.467] (**) CHROME(0): Option "EnableAGPDMA" "off"

As was shown in the initial log.  Yes, 10.3 is an option.  But
also is the option of using the 0.5 version of OpenChrome as
opposed to the 0.3.3 version in the current ports tree.

>Opera 12.16 is very old now (it's not been in active development
>for many years) and tends to be quite troublesome IME, which is
>a pity as it is nice and light compared to many other browsers,
>so once you get X working agaih you may find it worthwhile to
>try another browser (perhaps chromium or firefox). As for
>getting X11 working - that core dump is probably worth a bug
>report and asking about on the freebsd-x11 mailing list. One
>thing that strikes me is that 32MB seems rather small for video
>RAM these days perhaps that needs to be forced up somehow.
>Finally if you have a machine available try 10.3.
>--
>Steve O'Hara-Smith <steve at sohara.org>

[294971.522] X.Org X Server 1.17.4
             Release Date: 2015-10-28
[294971.523] X Protocol Version 11, Revision 0
[294971.523] Build Operating System: FreeBSD 9.3-RELEASE-p45 i386
[294971.523] Current Operating System: FreeBSD 9.3-RELEASE:
             Tue Jul 28 04:28:10 AKDT 2015
             /usr/obj/u0/src/sys/MYKERN i386
[294971.524] Build Date: 17 August 2016  02:00:33AM
[294971.524]
[294971.524] Current version of pixman: 0.34.0
[294971.524] Before reporting problems, check http://wiki.x.org
             to make sure that you have the latest version.
[294971.524] Markers: (--) probed, (**) from config file, (==) default setting,
             (++) from command line, (!!) notice, (II) informational,
             (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[294971.525] (==) Log file: "/var/log/Xorg.0.log",
                  Time: Wed Aug 24 12:39:35 2016
[294971.528] (II) Loader magic: 0x8226b40
[294971.528] (II) Module ABI versions:
[294971.528] X.Org ANSI C Emulation: 0.4
[294971.528] X.Org Video Driver: 19.0
[294971.528] X.Org XInput driver : 21.0
[294971.528] X.Org Server Extension : 9.0
[294971.529] (--) PCI:*(0:1:0:0) 1106:3122:1106:3122 rev 3,
                  Mem @ 0xd8000000/67108864, 0xdc000000/16777216,
                  BIOS @ 0x????????/65536
[294971.529] (==) Using default built-in configuration (30 lines)
[294971.529] (==) --- Start of built-in configuration ---
[294971.529] Section "Device"
[294971.529] Identifier"Builtin Default openchrome Device 0"
[294971.529] Driver"openchrome"
[294971.529] EndSection
[294971.529] Section "Screen"
[294971.529] Identifier"Builtin Default openchrome Screen 0"
[294971.530] Device"Builtin Default openchrome Device 0"
[294971.530] EndSection
[294971.530] Section "Device"
[294971.530] Identifier"Builtin Default fbdev Device 0"
[294971.530] Driver"fbdev"
[294971.530] EndSection
[294971.530] Section "Screen"
[294971.530] Identifier"Builtin Default fbdev Screen 0"
[294971.530] Device"Builtin Default fbdev Device 0"
[294971.530] EndSection
[294971.530] Section "Device"
[294971.530] Identifier"Builtin Default vesa Device 0"
[294971.530] Driver"vesa"
[294971.530] EndSection
[294971.530] Section "Screen"
[294971.530] Identifier"Builtin Default vesa Screen 0"
[294971.530] Device"Builtin Default vesa Device 0"
[294971.530] EndSection
[294971.530] Section "ServerLayout"
[294971.530] Identifier"Builtin Default Layout"
[294971.530] Screen"Builtin Default openchrome Screen 0"
[294971.530] Screen"Builtin Default fbdev Screen 0"
[294971.530] Screen"Builtin Default vesa Screen 0"
[294971.530] EndSection
[294971.530] (==) --- End of built-in configuration ---
[294971.531] (==) ServerLayout "Builtin Default Layout"
[294971.531] (**) |-->Screen "Builtin Default openchrome Screen 0" (0)
[294971.531] (**) |   |-->Monitor "<default monitor>"
[294971.532] (**) |   |-->Device "Builtin Default openchrome Device 0"
[294971.532] (==) No monitor specified for screen
                  "Builtin Default openchrome Screen 0".
                  Using a default monitor configuration.
[294971.532] (**) |-->Screen "Builtin Default fbdev Screen 0" (1)
[294971.532] (**) |   |-->Monitor "<default monitor>"
[294971.533] (**) |   |-->Device "Builtin Default fbdev Device 0"
[294971.533] (==) No monitor specified for screen
                  "Builtin Default fbdev Screen 0".
                  Using a default monitor configuration.
[294971.533] (**) |-->Screen "Builtin Default vesa Screen 0" (2)
[294971.533] (**) |   |-->Monitor "<default monitor>"
[294971.534] (**) |   |-->Device "Builtin Default vesa Device 0"
[294971.534] (==) No monitor specified for screen
                  "Builtin Default vesa Screen 0".
                  Using a default monitor configuration.
[294971.534] (==) Automatically adding devices
[294971.534] (==) Automatically enabling devices
[294971.534] (==) Not automatically adding GPU devices
[294971.535] (==) FontPath set to:
/usr/local/share/fonts/misc/,
/usr/local/share/fonts/TTF/,
/usr/local/share/fonts/OTF/,
/usr/local/share/fonts/Type1/,
/usr/local/share/fonts/100dpi/,
/usr/local/share/fonts/75dpi/
[294971.535] (==) ModulePath set to "/usr/local/lib/xorg/modules"
[294971.535] (II) The server relies on devd to provide the list
                  of input devices.  If no devices become available,
                  reconfigure devd or disable AutoAddDevices.
[294971.535] (II) LoadModule: "glx"
[294971.537] (II) Loading /usr/local/lib/xorg/modules/extensions/libglx.so
[294971.549] (II) Module glx: vendor="X.Org Foundation"
[294971.549] compiled for 1.17.4, module version = 1.0.0
[294971.549] ABI class: X.Org Server Extension, version 9.0
[294971.549] (==) AIGLX enabled
[294971.549] (II) LoadModule: "openchrome"
[294971.550] (II) Loading
                  /usr/local/lib/xorg/modules/drivers/openchrome_drv.so
[294971.552] (II) Module openchrome: vendor="http://openchrome.org/"
[294971.552] compiled for 1.17.4, module version = 0.3.3
[294971.552] Module class: X.Org Video Driver
[294971.552] ABI class: X.Org Video Driver, version 19.0
[294971.552] (II) LoadModule: "fbdev"
[294971.555] (WW) Warning, couldn't open module fbdev
[294971.555] (II) UnloadModule: "fbdev"
[294971.555] (II) Unloading fbdev
[294971.555] (EE) Failed to load module "fbdev" (module does not exist, 0)
[294971.555] (II) LoadModule: "vesa"
[294971.556] (II) Loading /usr/local/lib/xorg/modules/drivers/vesa_drv.so
[294971.576] (II) Module vesa: vendor="X.Org Foundation"
[294971.577] compiled for 1.17.4, module version = 2.3.4
[294971.577] Module class: X.Org Video Driver
[294971.577] ABI class: X.Org Video Driver, version 19.0
[294971.577] (II) OPENCHROME: Driver for VIA Chrome chipsets:
             CLE266, KM400/KN400, K8M800/K8N800, PM800/PM880/CN400,
             VM800/P4M800Pro/VN800/CN700, CX700/VX700, K8M890/K8N890,
             P4M890, P4M900/VN896/CN896, VX800/VX820, VX855/VX875, VX900
[294971.577] (II) VESA: driver for VESA chipsets: vesa
[294971.578] (--) Using syscons driver with X support (version 2.0)
[294971.578] (--) using VT number 9
[294971.584] (!!) VIA Technologies does not support this driver in any way.
[294971.584] (!!) For support, please refer to http://www.openchrome.org/.
[294971.584] (!!) (development build, compiled on Wed Aug 17 02:37:17 2016)
[294971.584] (WW) Falling back to old probe method for vesa
[294971.584] (WW) VGA arbiter: cannot open kernel arbiter,
                  no multi-card support
[294971.584] (II) CHROME(0): VIAPreInit
[294971.584] (II) CHROME(0): VIAGetRec
[294971.585] (--) CHROME(0): Chipset: CLE266
[294971.585] (--) CHROME(0): Chipset revision: 0
[294971.586] (II) [drm] KMS supported
[294971.586] (II) CHROME(0): [drm] via interface version: 2.11.1
[294971.586] (II) CHROME(0): DRI 1 api supported
[294971.586] (II) Loading sub module "vgahw"
[294971.586] (II) LoadModule: "vgahw"
[294971.588] (II) Loading /usr/local/lib/xorg/modules/libvgahw.so
[294971.588] (II) Module vgahw: vendor="X.Org Foundation"
[294971.588] compiled for 1.17.4, module version = 0.1.0
[294971.588] ABI class: X.Org Video Driver, version 19.0
[294971.589] (--) CHROME(0): Probed amount of VideoRAM = 32768 kB
[294971.589] (II) CHROME(0): VIAMapMMIO
[294971.589] (--) CHROME(0): mapping MMIO @ 0xdc000000 with size 0xd000
[294971.589] (--) CHROME(0): mapping BitBlt MMIO @ 0xdc200000
                             with size 0x200000
[294971.589] (II) CHROME(0): vgaHWGetIOBase: hwp->IOBase is 0x03d0
[294971.590] (II) CHROME(0): VIAMapFB
[294971.590] (--) CHROME(0): mapping framebuffer @ 0xd8000000
                             with size 0x2000000
[294971.638] (--) CHROME(0): Frame buffer start: 0x29000000, free start:
                             0x0 end: 0x2000000
[294971.638] (II) CHROME(0): Creating default Display subsection
                             in Screen section
                             "Builtin Default openchrome Screen 0"
                             for depth/fbbpp 24/32
[294971.638] (==) CHROME(0): Depth 24, (--) framebuffer bpp 32
[294971.638] (==) CHROME(0): RGB weight 888
[294971.638] (==) CHROME(0): Default visual is TrueColor
[294971.638] (II) CHROME(0): VIASetupDefaultOptions
                             Setting up default chipset options.
[294971.639] (==) CHROME(0): Shadow framebuffer is disabled.
[294971.639] (==) CHROME(0): Hardware acceleration is disabled.
[294971.639] (==) CHROME(0): Using hardware two-color cursors and
                             software full-color cursors.
[294971.639] (==) CHROME(0): GPU virtual command queue will be enabled.
[294971.639] (==) CHROME(0): DRI IRQ will be enabled if DRI is enabled.
[294971.639] (==) CHROME(0): AGP DMA will be enabled if DRI is enabled.
[294971.639] (==) CHROME(0): AGP DMA will be used for 2D acceleration.
[294971.639] (==) CHROME(0): PCI DMA will be used for XV image transfer
                             if DRI is enabled.
[294971.639] (==) CHROME(0): Will not enable VBE modes.
[294971.639] (==) CHROME(0): VBE VGA register save & restore will not be used
                             if VBE modes are enabled.
[294971.639] (==) CHROME(0): Xv Bandwidth check is enabled.
[294971.639] (==) CHROME(0): Will not impose a limit on video RAM
                             reserved for DRI.
[294971.639] (==) CHROME(0): Will try to allocate 32768 kB of AGP memory.
[294971.639] (==) CHROME(0): TV dotCrawl is disabled.
[294971.639] (==) CHROME(0): TV deflicker is set to 0.
[294971.639] (==) CHROME(0): No default TV type is set.
[294971.639] (==) CHROME(0): No default TV output signal type is set.
[294971.639] (==) CHROME(0): No default TV output port is set.
[294971.639] (==) CHROME(0): Will not print VGA registers.
[294971.639] (==) CHROME(0): Will not scan I2C buses.
[294971.639] (II) CHROME(0): ...Finished parsing config file options.
[294971.640] (WW) CHROME(0): Manufacturer plainly copied main PCI IDs
                  to subsystem/card IDs.
[294971.640] (--) CHROME(0): Detected VIA VT3122 (CLE266)-EPIA M/MII/
                  .... Card-Ids (1106|3122)
[294971.640] (II) CHROME(0): KMSCrtcInit
[294971.640] (II) CHROME(0): VIAFreeRec
[294971.640] (II) CHROME(0): VIAUnmapMem
[294971.655] (II) CHROME(0): VIAFreeScreen
[294971.655] (EE) Segmentation fault: 11 at address 0x37c
[294971.656] (EE) Fatal server error:
[294971.656] (EE) Caught signal 11 (Segmentation fault: 11). Server aborting
[294971.656] (EE)
[294971.656] (EE) Please consult the The X.Org Foundation support at
                  http://wiki.x.org for help.
[294971.656] (EE) Please also check the log file at "/var/log/Xorg.0.log"
                  for additional information.
[294971.656] (EE)
[294971.674] (EE) Server terminated with error (1). Closing log file.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1bckCK-0000o4-0H>