We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 967

Summary: Illegal Instruction >> PowerPC G3
Product: SDL_image Reporter: jagsph
Component: miscAssignee: Sam Lantinga <slouken>
Status: RESOLVED WORKSFORME QA Contact: Sam Lantinga <slouken>
Severity: critical    
Priority: P2    
Version: unspecified   
Hardware: PowerPC   
OS: Linux   
Attachments: strace on pingus
strace on supertux

Description jagsph 2010-03-05 19:54:38 UTC
I posted this bug against supertux on bugs.debian.org because I wasnt sure if it was in supertux or libsdl. 

I believe its in libsdlimage, I dont knoe if this is a compile flag bug or an SDL bug.



I dont know how to further troubleshoot this issue but I cannot run a single SDL app.  They all get illegal instruction.

The original report is here 

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=572420


0000:00:0b.0 Host bridge [0600]: Apple Computer Inc. UniNorth AGP [106b:0020]
	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: 16, Cache Line Size: 32 bytes
	Capabilities: <access denied>
	Kernel driver in use: agpgart-uninorth

0000:00:10.0 Display controller [0380]: ATI Technologies Inc Rage 128 RL/VR AGP [1002:524c]
	Subsystem: ATI Technologies Inc Rage 128 RL/VR AGP [1002:524c]
	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 94000000 (32-bit, prefetchable) [size=64M]
	Region 1: I/O ports at 0400 [size=256]
	Region 2: Memory at 90000000 (32-bit, non-prefetchable) [size=16K]
	Expansion ROM at 90020000 [size=128K]
	Capabilities: <access denied>
	Kernel driver in use: aty128fb

0001:10:0b.0 Host bridge [0600]: Apple Computer Inc. UniNorth PCI [106b:001f]
	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: 16, Cache Line Size: 32 bytes

0001:10:12.0 FireWire (IEEE 1394) [0c00]: Texas Instruments TSB12LV23 IEEE-1394 Controller [104c:8019] (prog-if 10 [OHCI])
	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: 16 (500ns min, 1000ns max), Cache Line Size: 32 bytes
	Interrupt: pin A routed to IRQ 52
	Region 0: Memory at 80082000 (32-bit, non-prefetchable) [size=2K]
	Region 1: Memory at 80084000 (32-bit, non-prefetchable) [size=16K]
	Capabilities: <access denied>
	Kernel driver in use: firewire_ohci

0001:10:17.0 Class [ff00]: Apple Computer Inc. KeyLargo Mac I/O [106b:0022] (rev 02)
	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: 16, Cache Line Size: 32 bytes
	Region 0: Memory at 80000000 (32-bit, non-prefetchable) [size=512K]
	Kernel driver in use: macio

0001:10:18.0 USB Controller [0c03]: Apple Computer Inc. KeyLargo USB [106b:0019] (prog-if 10 [OHCI])
	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: 16 (750ns min, 21500ns max)
	Interrupt: pin A routed to IRQ 27
	Region 0: Memory at 80081000 (32-bit, non-prefetchable) [size=4K]
	Kernel driver in use: ohci_hcd

0001:10:19.0 USB Controller [0c03]: Apple Computer Inc. KeyLargo USB [106b:0019] (prog-if 10 [OHCI])
	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: 16 (750ns min, 21500ns max)
	Interrupt: pin A routed to IRQ 28
	Region 0: Memory at 80080000 (32-bit, non-prefetchable) [size=4K]
	Kernel driver in use: ohci_hcd

0002:20:0b.0 Host bridge [0600]: Apple Computer Inc. UniNorth Internal PCI [106b:001e]
	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: 16, Cache Line Size: 32 bytes

0002:20:0f.0 Ethernet controller [0200]: Apple Computer Inc. UniNorth GMAC (Sun GEM) [106b:0021]
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap- 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=slow >TAbort- <TAbort- <MAbort- >SERR- <PERR+ INTx-
	Latency: 16 (16000ns min, 16000ns max), Cache Line Size: 32 bytes
	Interrupt: pin A routed to IRQ 41
	Region 0: Memory at f5200000 (32-bit, non-prefetchable) [size=2M]
	Expansion ROM at f5000000 [disabled] [size=1M]
	Kernel driver in use: gem

$ cat /proc/cpuinfo
processor	: 0
cpu		: 740/750
temperature 	: 48-51 C (uncalibrated)
clock		: 400.000000MHz
revision	: 131.0 (pvr 0008 8300)
bogomips	: 49.93
timebase	: 24967850
platform	: PowerMac
model		: PowerMac2,1
machine		: PowerMac2,1
motherboard	: PowerMac2,1 MacRISC Power Macintosh
detected as	: 66 (iMac FireWire)
pmac flags	: 00000014
L2 cache	: 512K unified
pmac-generation	: NewWorld
Memory		: 256 MB



$ dpkg -l | grep sdl
ii  libguichan-sdl-0.8.1-1                0.8.2-1                    small, efficient C++ GUI library (SDL integration)
ii  libsdl-gfx1.2-4                       2.0.20-1                   drawing and graphical effects extension for SDL
ii  libsdl-gfx1.2-dev                     2.0.20-1                   development files for SDL_gfx
ii  libsdl-image1.2                       1.2.10-2                   image loading library for Simple DirectMedia Layer 1.2
ii  libsdl-image1.2-dev                   1.2.10-2                   development files for SDL 1.2 image loading libray
ii  libsdl-mixer1.2                       1.2.8-6+b1                 mixer library for Simple DirectMedia Layer 1.2
ii  libsdl-mixer1.2-dev                   1.2.8-6+b1                 development files for SDL1.2 mixer library
ii  libsdl-net1.2                         1.2.7-2                    network library for Simple DirectMedia Layer
ii  libsdl-net1.2-dev                     1.2.7-2                    Development files for SDL network library
ii  libsdl-pango-dev                      0.1.2-4                    text rendering with Pango in SDL applications (developm
ii  libsdl-pango1                         0.1.2-4                    text rendering with Pango in SDL applications (shared l
ii  libsdl-sound1.2                       1.0.3-3+b1                 Decoder of several sound file formats for SDL
ii  libsdl-ttf2.0-0                       2.0.9-1                    ttf library for Simple DirectMedia Layer with FreeType 
ii  libsdl1.2-dev                         1.2.14-4                   Simple DirectMedia Layer development files
ii  libsdl1.2debian                       1.2.14-4                   Simple DirectMedia Layer
rc  libsdl1.2debian-alsa                  1.2.13-5                   Simple DirectMedia Layer (with X11 and ALSA options)
ii  libsdl1.2debian-oss                   1.2.14-4                   Simple DirectMedia Layer (with X11 and OSS options)
Comment 1 jagsph 2010-03-05 19:56:51 UTC
Created attachment 496 [details]
strace on pingus
Comment 2 jagsph 2010-03-05 19:58:15 UTC
Created attachment 497 [details]
strace on supertux
Comment 3 Sam Lantinga 2010-03-10 06:39:28 UTC
Can you run them in the debugger and see where they are crashing?

Thanks!
Comment 4 Sam Lantinga 2011-12-31 09:33:06 UTC
No response in a few years. :)