[Pkg-directfb-devel] Bug#506666: libdirectfb-1.0-0: SDL apps crash in DirectFB on PPC

Leslie Viljoen leslieviljoen at gmail.com
Sun Nov 23 15:07:16 UTC 2008


Package: libdirectfb-1.0-0
Version: 1.0.1-11
Severity: critical
Justification: breaks unrelated software


This bug already reported in Launchpad, but no ppc support there.
https://bugs.launchpad.net/ubuntu/+source/directfb/+bug/301278


This problem's first symptom is that you are completely logged out of your X session as soon as you try to run something like Tuxpaint on PPC. I have seen it on Fedora, Debian Lenny and Intrepid. Etch.5 worked fine, probably because directfb was version 0.9.

I have stepped though Tuxpaint until an SDL init:

SDL_Init(1048625)
(Those flags are: SDL_INIT_VIDEO | SDL_INIT_TIMER | SDL_INIT_AUDO | SDL_INIT_NOPARACHUTE)

I then stepped through the SDL code until here:
DirectFB_CreateDevice (devindex=<value optimized out>) at ../../src/video/directfb/SDL_DirectFB_video.c:123

DirectFB_CreateDevice crashes. It sometimes prints the error below, but mostly
it doesn't print anything, it just terminates the session. Since it looks permissions related I have
run everything as root but that doesn't help.

The machine I am running is a G4 Mac Mini (powerpc).
The graphics card:
0000:00:10.0 VGA compatible controller [0300]: ATI Technologies Inc RV280 [Radeon 9200] [1002:5962] (rev 01) (prog-if 00 [VGA controller])
	Subsystem: ATI Technologies Inc RV280 [Radeon 9200] [1002:5962]
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 255 (2000ns min), Cache Line Size: 32 bytes
	Interrupt: pin A routed to IRQ 48
	Region 0: Memory at 98000000 (32-bit, prefetchable) [size=128M]
	Region 1: I/O ports at 0400 [size=256]
	Region 2: Memory at 90000000 (32-bit, non-prefetchable) [size=64K]
	Expansion ROM at f1000000 [disabled] [size=128K]
	Capabilities: [58] AGP version 2.0
		Status: RQ=80 Iso- ArqSz=0 Cal=0 SBA+ ITACoh- GART64- HTrans- 64bit- FW+ AGP3- Rate=x1,x2,x4
		Command: RQ=8 ArqSz=0 Cal=0 SBA+ AGP+ GART64- 64bit- FW- Rate=x4
	Capabilities: [50] Power Management version 2
		Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
		Status: D0 PME-Enable- DSel=0 DScale=0 PME-
	Kernel driver in use: radeonfb


I have already gone through three distributions, rebuilt Tuxpaint and SDL from source
with debug symbols and stepped to discover the problem - so I'm willing to help
fix this.


The rare error message:

---------8x-------------8x-----------8x-----------------8x---------------8x--------------------

     =======================| DirectFB 1.0.1 |=======================
          (c) 2001-2007 The DirectFB Organization (directfb.org)
          (c) 2000-2004 Convergence (integrated media) GmbH
        ------------------------------------------------------------

(*) DirectFB/Core: Single Application Core. (2008-09-12 20:02)
(*) Direct/Memcpy: Using ppcasm_memcpy()
(!) DirectFB/Core: Could not initialize 'system' core!
    --> Access denied!

     =======================| DirectFB 1.0.1 |=======================
          (c) 2001-2007 The DirectFB Organization (directfb.org)
          (c) 2000-2004 Convergence (integrated media) GmbH
        ------------------------------------------------------------

(*) DirectFB/Core: Single Application Core. (2008-09-12 20:02)
(*) Direct/Memcpy: Using libc memcpy()
(!) DirectFB/Core: Could not initialize 'system' core!
    --> Access denied!

Error: I could not initialize video and/or the timer!
The Simple DirectMedia Layer error that occurred was:
DirectFBCreate: Access denied!




-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: powerpc (ppc)

Kernel: Linux 2.6.26-1-powerpc
Locale: LANG=en_ZA.UTF-8, LC_CTYPE=en_ZA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages libdirectfb-1.0-0 depends on:
ii  libc6                         2.7-16     GNU C Library: Shared libraries
ii  libsysfs2                     2.1.0-5    interface library to sysfs
ii  libts-0.0-0                   1.0-4      touch screen library

libdirectfb-1.0-0 recommends no packages.

libdirectfb-1.0-0 suggests no packages.

-- no debconf information





More information about the Pkg-directfb-devel mailing list