[linux][fmod+flac] Zdoom crashes unexpectedly

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Post Reply
User avatar
GuntherDW
Posts: 40
Joined: Tue Jul 13, 2004 11:17 pm
Location: Belgium, Antwerp

[linux][fmod+flac] Zdoom crashes unexpectedly

Post by GuntherDW »

(note that i used gzdoom's "experimental" linux GL port, but the exact same crashes appear with zdoom, either 2.1.7 or the latest rev)
(gzdoom was the only program i had built with DEBUG=1 at the time so :),
i'll build the regular zdoom right away)

When i use -nosound this crash doesn't happen, so i'm guessing it's the FMOD lib that's outdated, but i'll post the crash log anyway, to be sure :)

just what happens is when a certain sound file (it seems to be picky about it) zdoom just crashes and goes to the terminal without setting the vid res back to normal an doesn't release the mouse

Code: Select all

*** Fatal Error ***
Address not mapped to object (signal 11)
Address: 0xd8

System: Linux lisa 2.6.22.6 #2 Fri Sep 14 19:47:58 CEST 2007 i686 AMD Athlon(tm) XP 2600+ AuthenticAMD GNU/Linux
GCC version: 4.1.2

ZDoom version 1.0.24 - 2.1.7xx (r530) (Sep 16 2007)

Command line: ./gzdoomd -iwad /home/guntherdw/wads/DOOM2.WAD -file /GuntherDW/doom2/kdizd.pk3

Wad 0: gzdoom.pk3
Wad 1: DOOM2.WAD
Wad 2: kdizd.pk3

Current map: TITLEMAP

viewx = 0
viewy = 0
viewz = 0
viewangle = 0

Executing: gdb --quiet --batch --command=gdb-respfile-7AeNEz --pid=21436
Using host libthread_db library "/lib/libthread_db.so.1".
0xffffe410 in __kernel_vsyscall ()

Program received signal SIGSEGV, Segmentation fault.
0xb7ed9327 in init_stream_internal_ () from /usr/lib/libFLAC.so.8

* Loaded Libraries
From        To          Syms Read   Shared Object Library
0xb7ef6ce0  0xb7efcdc4  Yes         /usr/lib/libFLAC++.so.6
0xb7ebbe00  0xb7ee5014  Yes         /usr/lib/libFLAC.so.8
0xb7ea4470  0xb7eaf954  Yes         /lib/libz.so.1
0xb7e23ae0  0xb7e63c49  Yes         /usr/lib/libfmod.so
0xb7d5b010  0xb7db4f74  Yes         /usr/lib/libSDL-1.2.so.0
0xb7d42270  0xb7d4d134  Yes         /lib/libpthread.so.0
0xb7d20450  0xb7d39834  Yes         /usr/lib/libjpeg.so.62
0xb7a26440  0xb7c5f484  Yes         /usr/lib/libgtk-x11-2.0.so.0
0xb7969b60  0xb79b4a94  Yes         /usr/lib/libgdk-x11-2.0.so.0
0xb7942740  0xb794ee14  Yes         /usr/lib/libatk-1.0.so.0
0xb79284e0  0xb7936914  Yes         /usr/lib/libgdk_pixbuf-2.0.so.0
0xb791ddd0  0xb7921a94  Yes         /usr/lib/libpangocairo-1.0.so.0
0xb78e73f0  0xb7905514  Yes         /usr/lib/libpango-1.0.so.0
0xb78660e0  0xb78d1384  Yes         /usr/lib/libcairo.so.2
0xb782aa90  0xb7855334  Yes         /usr/lib/libgobject-2.0.so.0
0xb7820cc0  0xb7821d44  Yes         /usr/lib/libgmodule-2.0.so.0
0xb781ca70  0xb781d954  Yes         /lib/libdl.so.2
0xb7794da0  0xb77dff84  Yes         /usr/lib/libglib-2.0.so.0
0xb771f570  0xb7759ee1  Yes         //usr//lib/opengl/nvidia/lib/libGL.so.1
0xb7680cb0  0xb76dc1f4  Yes         /usr/lib/libGLU.so.1
0xb75c6890  0xb763f354  Yes         /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/libstdc++.so.6
0xb7567470  0xb75817e4  Yes         /lib/libm.so.6
0xb755a6c0  0xb7561204  Yes         /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/libgcc_s.so.1
0xb743ddd0  0xb7523660  Yes         /lib/libc.so.6
0xb7424250  0xb7426494  Yes         /usr/lib/libogg.so.0
0xb73cef20  0xb7419224  Yes         /usr/lib/libdirectfb-1.0.so.0
0xb73be0d0  0xb73c1a64  Yes         /usr/lib/libfusion-1.0.so.0
0xb73adde0  0xb73b8334  Yes         /usr/lib/libdirect-1.0.so.0
0xb7335210  0xb7385254  Yes         /usr/lib/libvga.so.1
0xb7f30880  0xb7f458ef  Yes         /lib/ld-linux.so.2
0xb7257560  0xb72e1924  Yes         /usr/lib/libX11.so.6
0xb723cfa0  0xb723f3b4  Yes         /usr/lib/libXfixes.so.3
0xb72161b0  0xb722e404  Yes         /usr/lib/libfontconfig.so.1
0xb7205680  0xb720f714  Yes         /usr/lib/libXext.so.6
0xb71f9500  0xb71ff0e4  Yes         /usr/lib/libXrender.so.1
0xb71f58d0  0xb71f6364  Yes         /usr/lib/libXinerama.so.1
0xb71ed340  0xb71f2794  Yes         /usr/lib/libXi.so.6
0xb71e52f0  0xb71e9004  Yes         /usr/lib/libXrandr.so.2
0xb71dc160  0xb71e1564  Yes         /usr/lib/libXcursor.so.1
0xb71afd50  0xb71d3bc4  Yes         /usr/lib/libpangoft2-1.0.so.0
0xb7132cc0  0xb7194004  Yes         /usr/lib/libfreetype.so.6
0xb7127b10  0xb712a514  Yes         /usr/lib/libglitz-glx.so.1
0xb7103750  0xb7121184  Yes         /usr/lib/libpng12.so.0
0xb6859780  0xb6f9dd2c  Yes         //usr//lib/opengl/nvidia/lib/libGLcore.so.1
0xb6765450  0xb67654a8  Yes         //usr//lib/opengl/nvidia/lib/libnvidia-tls.so.1
0xb6762520  0xb6762774  Yes         /usr/lib/libxcb-xlib.so.0
0xb674ff20  0xb675e734  Yes         /usr/lib/libxcb.so.1
0xb6643920  0xb6722064  Yes         /usr/lib/libxml2.so.2
0xb6623a20  0xb6624694  Yes         /usr/lib/libXau.so.6
0xb65fc450  0xb661f6a4  Yes         /usr/lib/libglitz.so.1
0xb65f5f10  0xb65f7ab4  Yes         /usr/lib/libXdmcp.so.6
0xb6444e80  0xb6449914  Yes         /lib/libnss_compat.so.2
0xb6430180  0xb643caf4  Yes         /lib/libnsl.so.1
0xb6424960  0xb642a404  Yes         /lib/libnss_nis.so.2
0xb641a920  0xb64206f4  Yes         /lib/libnss_files.so.2
0xb6455370  0xb6455db4  Yes         /usr/lib/gconv/ISO8859-1.so

* Threads

* FPU Status
  R7: Empty   0xbffcaaaaab0000000000
  R6: Empty   0x4016c000000000000000
  R5: Empty   0x00000000000000000000
  R4: Empty   0x4005c600000000000000
  R3: Empty   0x3ffe8000000000000000
  R2: Empty   0x40018000000000000000
  R1: Empty   0x4001c000000000000000
=>R0: Empty   0xffff0000000000000000

Status Word:         0x0023   IE DE          PE                        
                       TOP: 0
Control Word:        0x037f   IM DM ZM OM UM PM
                       PC: Extended Precision (64-bits)
                       RC: Round to nearest
Tag Word:            0xffff
Instruction Pointer: 0x00:0x00000000
Operand Pointer:     0x00:0x00000000
Opcode:              0x0000

* Registers
eax            0xd8	216
ecx            0xb7efb150	-1209028272
edx            0xb7efb120	-1209028320
ebx            0xb7f01ff4	-1208999948
esp            0xbfa928f0	0xbfa928f0
ebp            0xbfa929b8	0xbfa929b8
esi            0x0	0
edi            0xbfa92d04	-1079431932
eip            0xb7ed9327	0xb7ed9327 <init_stream_internal_+23>
eflags         0x10286	[ PF SF IF RF ]
cs             0x73	115
ss             0x7b	123
ds             0x7b	123
es             0x7b	123
fs             0x0	0
gs             0x33	51

* Bytes near %eip:
0xb7ed9324 <init_stream_internal_+20>:	0x8b582444
0xb7ed9327 <init_stream_internal_+23>:	0x99e8008b

* Backtrace
#0  0xb7ed9327 in init_stream_internal_ () from /usr/lib/libFLAC.so.8
No symbol table info available.
#1  0xb7f03298 in ?? ()
No symbol table info available.
#2  0x1ca3a658 in ?? ()
No symbol table info available.
#3  0xffffffff in ?? ()
No symbol table info available.
#4  0xb7f4afc4 in ?? () from /lib/ld-linux.so.2
No symbol table info available.
#5  0xb7f03000 in ?? ()
No symbol table info available.
#6  0x00000001 in ?? ()
No symbol table info available.
#7  0xb7f3d6e9 in ?? () from /lib/ld-linux.so.2
No symbol table info available.
#8  0xb7f43000 in ?? () from /lib/ld-linux.so.2
No symbol table info available.
#9  0xb7efb642 in FLAC::Decoder::Stream::init () from /usr/lib/libFLAC++.so.6
No symbol table info available.
#10 0x08247692 in FLACSampleLoader (this=0xbfa929f8, sfx=0x85b5e68) at src/sound/sample_flac.cpp:18
No locals.
#11 0x0823f257 in FMODSoundRenderer::DoLoad (this=0x8598f58, slot=0x85b5e70, sfx=0x85b5e68) at src/sound/fmodsound.cpp:1144
	loader = {<> = {<No data fields>}, NumChannels = 0, SampleBits = 0, SampleRate = 0, NumSamples = 0, File = {<FileReader> = {_vptr.FileReader = 0x82cab48, File = 0x0, Length = 7670, StartPos = 0, 
      FilePos = 0, CloseOnDestruct = false}, SourceData = 0x99956e0 "fLaC", DestroySource = true, Encrypted = false}, StartPos = 0, EndPos = 7670, SBuff = 0x0, SBuff2 = 0x9960000, SLen = 0, SLen2 = 160847312, 
  Sfx = 0x85b5e68, Dest8 = false}
	wlump = {<FileReader> = {_vptr.FileReader = 0x82cab48, File = 0x0, Length = 7670, StartPos = 0, FilePos = 7670, CloseOnDestruct = false}, SourceData = 0x99655d0 "fLaC", DestroySource = true, 
  Encrypted = false}
	len = 570425344
	sfxdata = (BYTE *) 0x9987d58 "fLaC"
	size = 7670
	errcount = 0
	samplemode = 8192
#12 0x0823f82d in FMODSoundRenderer::getsfx (this=0x8598f58, sfx=0x85b5e68) at src/sound/fmodsound.cpp:1226
	i = 535
#13 0x0823f89a in FMODSoundRenderer::LoadSound (this=0x8598f58, sfx=0x85b5e68) at src/sound/fmodsound.cpp:954
No locals.
#14 0x08181a01 in S_CacheSound (sfx=0x85b5e68) at src/s_sound.cpp:534
No locals.
#15 0x08181c3b in S_PrecacheLevel () at src/s_sound.cpp:496
	actor = (class AActor *) 0x0
	iterator = {<FThinkerIterator> = {m_ParentType = 0x83a6aa0, m_CurrThinker = 0x839eae4, m_Stat = 32 ' ', m_SearchStats = true, m_SearchingFresh = false}, <No data fields>}
	i = 216
#16 0x0812f83c in P_SetupLevel (lumpname=0x83a2b4c "TITLEMAP", position=0) at src/p_setup.cpp:3786
	times = {181681, 1175870, 772, 1995197, 1996720, 704608, 2241508, 854901, 615, 697, 1291093, 5586, 4001229, 179852, 3290468, 564, 1318515, 18446367801066793996, 0, 0}
	buildthings = (mapthing2_t *) 0x112a
	numbuildthings = 137990144
	i = 8
	buildmap = false
	map = (MapData *) 0x91f8048
	timenames = {0x82be329 "load vertexes", 0x82be337 "load sectors", 0x82be344 "load sides", 0x82be34f "load lines", 0x82be35a "load sides 2", 0x82be367 "load lines 2", 0x82be374 "loop sides", 
  0x82be37f "load subsectors", 0x82be38f "load nodes", 0x82be39a "load segs", 0x82be3a4 "load blockmap", 0x82be3b2 "load reject", 0x82be3be "group lines", 0x82be3ca "flood zones", 0x82be3d6 "load things", 
  0x82be3e2 "translate teleports", 0x82be3f6 "init polys", 0x82be401 "precache"}
#17 0x080a3b81 in G_DoLoadLevel (position=0, autosave=false) at src/g_level.cpp:1973
	oldgs = GS_TITLELEVEL
	i = 8
	lastposition = 0
	firstTime = true
#18 0x080a4f75 in G_InitNew (mapname=0x82b1c64 "TITLEMAP", bTitleLevel=true) at src/g_level.cpp:1635
	oldSpeed = SPEED_Normal
	wantFast = false
	i = 8
	map = (MapData *) 0x90240c0
#19 0x0807f40a in D_DoAdvanceDemo () at src/d_main.cpp:989
	pagename = 0x0
	map = (MapData *) 0x90e2178
	demoname = "DEMO1\000\000"
	democount = 0
	pagecount = 0
#20 0x080866e3 in TryRunTics () at src/d_net.cpp:1824
	i = 1
	lowtic = 17
	realtics = 71
	availabletics = 17
	counts = 16
	numplaying = 1
	doWait = false
#21 0x08080658 in D_DoomLoop () at src/d_main.cpp:766
	lasttic = 0
#22 0x0808195d in D_DoomMain () at src/d_main.cpp:2456
	p = 5
	flags = 0
	file = "Doom.Autoload\000w/.gzdoom/skins", '\0' <repeats 2619 times>, "[\224ó·M¶\035·º\031.·", '\0' <repeats 16 times>, "įô·Ԧ\035·ø9©¿,:©¿ÿ\227ó·", '\0' <repeats 16 times>, "\bUN\b\005", '\0' <repeats 11 times>, "ø9©¿Ä:©¿Sç\021¼\v\000\000\000Ԧ\035·x¦\035·Rç\021¼", '\0' <repeats 12 times>, "\002\000\000\000d\000\000\000\000\000\000\000\210* ·º\031.·\204®\035·[\224ó·üµ\035·\235\031.·X, ·¸:©¿\000\000\000\000ä\230ó·įô·"...
	v = 0x0
	wad = 0x0
	execFiles = (class DArgs *) 0x84a0088
	files = (class DArgs *) 0x9022a98
	files1 = (class DArgs *) 0x84a0100
	files2 = (class DArgs *) 0x84a0120
	val = 0x0
	startupString = {0x82b23c8 "STARTUP1", 0x82b23d1 "STARTUP2", 0x82b23da "STARTUP3", 0x82b23e3 "STARTUP4", 0x82b23ec "STARTUP5"}
	one_hundred = "100"
#23 0x0825a525 in main (argc=6, argv=0xbfa94084) at src/sdl/i_main.cpp:238
	s = {11, 4, 8, 7}
	slash = 0x8397dbb "/"
	error = (CDoomError &) @0xb7553ff4: {
  m_Message = "|½\022\000\000\000\000\000\000\000\000\000 \017I· \026I·\220\022I·ð\aô· \000ô·\020\024I·pöH·0\006V·\000\000\000\000\177\003\000\000\"\000\000\000@", '\0' <repeats 19 times>, "\003\000\000\000±9\025\231㼥\026ͤtg\036Q\001>ª\212PN\005\214\004a\027\006Põ\025qk\204,\211\031j¯\227j\2116ùHÛT\204\211\024\006Ñÿ7\234ÿ\213µ\004qáYI\212\221Ï\203\2147\tq¤ÇR©>)\215\001ÃO\037¾qÛÃ\034N´9ùN¤ø±\200\213L(Ãí\031ÝK¿\207å@²É\033Kîéç®\202CAk[SÚžó\001\000\000\000\003"...}
Kill the program being debugged? (y or n) [answered Y; input not from terminal]
User avatar
k0da
Posts: 54
Joined: Thu Jan 25, 2007 8:39 pm

Post by k0da »

Which version of libflac are you using? I've experienced problems with FMOD Ex (both Win32 and OS X) locking-up with certain FLAC files, such as the ZDoom secret sound. I reported this to the FMOD Ex developers and they updated from libflac 1.1.2 to 1.1.4 in the dev version and the problem went away. I'm not sure why the internal libflac based on 1.1.2 in ZDoom works fine.
User avatar
GuntherDW
Posts: 40
Joined: Tue Jul 13, 2004 11:17 pm
Location: Belgium, Antwerp

Post by GuntherDW »

i'm using
flac-1.2.0
fmod 3.75
User avatar
k0da
Posts: 54
Joined: Thu Jan 25, 2007 8:39 pm

Post by k0da »

You could try libflac 1.2.1. Otherwise drop back to 1.1.2. The ZDoom wiki Linux page only mentions 1.1.2 as being ZDoom compatible.
User avatar
GuntherDW
Posts: 40
Joined: Tue Jul 13, 2004 11:17 pm
Location: Belgium, Antwerp

Post by GuntherDW »

both still make zdoom crash, altough when using 1.2.1 i was sure it came from FLAC because the error messge splattered FLAC:: all over :)
User avatar
randi
Site Admin
Posts: 7749
Joined: Wed Jul 09, 2003 10:30 pm
Contact:

Post by randi »

Can you install a FLAC with debug symbols to see exactly where it's crashing?

Alternatively, you could also modify the makefile to use the included one instead of the system library.

P.S. This is nothing to do with FMOD.
David Corrales

Post by David Corrales »

Hi everyone, I'm having the same issue. Whenever I enter a secret room I get a crash. I tried with the -nosound flag and it's working good, so that's the cause.

My system is running Ubuntu Gutsy 7.10, libflac 1.1.4.
User avatar
GuntherDW
Posts: 40
Joined: Tue Jul 13, 2004 11:17 pm
Location: Belgium, Antwerp

Post by GuntherDW »

this is when i use flac 1.2.1 with --enable-debug
here you go randy :)

Code: Select all

*** Fatal Error ***
Address not mapped to object (signal 11)
Address: 0x3805

System: Linux lisa 2.6.22.6 #2 Fri Sep 14 19:47:58 CEST 2007 i686 AMD Athlon(tm) XP 2600+ AuthenticAMD GNU/Linux
GCC version: 4.1.2

ZDoom version 2.1.8 (r545) (Sep 16 2007)

Command line: ./zdoom -iwad /home/guntherdw/wads/DOOM2.WAD -file /GuntherDW/doom2/ucrap.wad -map map03

Wad 0: zdoom.pk3
Wad 1: DOOM2.WAD
Wad 2: ucrap.wad

Current map: map03

viewx = -81892737
viewy = -33554432
viewz = 2943431
viewangle = 0

Executing: gdb --quiet --batch --command=gdb-respfile-LpK5ZJ --pid=26806
(no debugging symbols found)
Using host libthread_db library "/lib/libthread_db.so.1".
0xffffe410 in __kernel_vsyscall ()

Program received signal SIGSEGV, Segmentation fault.
0xb7f48b1b in FLAC::Decoder::Stream::init (this=0xbfe5161c) at stream_decoder.cpp:170
170				FLAC__ASSERT(is_valid());
Current language:  auto; currently c++

* Loaded Libraries
From        To          Syms Read   Shared Object Library
0xb7f411c0  0xb7f4b5e4  Yes         /usr/local/lib/libFLAC++.so.6
0xb7efc320  0xb7f28ae4  Yes         /usr/local/lib/libFLAC.so.8
0xb7ee1470  0xb7eec954  Yes         /lib/libz.so.1
0xb7ec3450  0xb7edc834  Yes         /usr/lib/libjpeg.so.62
0xb7e41ae0  0xb7e81c49  Yes         /usr/lib/libfmod.so
0xb7d79010  0xb7dd2f74  Yes         /usr/lib/libSDL-1.2.so.0
0xb7d5f270  0xb7d6a134  Yes         /lib/libpthread.so.0
0xb7a63440  0xb7c9c484  Yes         /usr/lib/libgtk-x11-2.0.so.0
0xb79a6b60  0xb79f1a94  Yes         /usr/lib/libgdk-x11-2.0.so.0
0xb797f740  0xb798be14  Yes         /usr/lib/libatk-1.0.so.0
0xb79654e0  0xb7973914  Yes         /usr/lib/libgdk_pixbuf-2.0.so.0
0xb795add0  0xb795ea94  Yes         /usr/lib/libpangocairo-1.0.so.0
0xb79243f0  0xb7942514  Yes         /usr/lib/libpango-1.0.so.0
0xb78a30e0  0xb790e384  Yes         /usr/lib/libcairo.so.2
0xb7867a90  0xb7892334  Yes         /usr/lib/libgobject-2.0.so.0
0xb785dcc0  0xb785ed44  Yes         /usr/lib/libgmodule-2.0.so.0
0xb7859a70  0xb785a954  Yes         /lib/libdl.so.2
0xb77d1da0  0xb781cf84  Yes         /usr/lib/libglib-2.0.so.0
0xb771c890  0xb7795354  Yes         /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/libstdc++.so.6
0xb76bd470  0xb76d77e4  Yes         /lib/libm.so.6
0xb76b06c0  0xb76b7204  Yes         /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/libgcc_s.so.1
0xb7594dd0  0xb767a660  Yes         /lib/libc.so.6
0xb757b250  0xb757d494  Yes         /usr/lib/libogg.so.0
0xb7524f20  0xb756f224  Yes         /usr/lib/libdirectfb-1.0.so.0
0xb75140d0  0xb7517a64  Yes         /usr/lib/libfusion-1.0.so.0
0xb7503de0  0xb750e334  Yes         /usr/lib/libdirect-1.0.so.0
0xb748c210  0xb74dc254  Yes         /usr/lib/libvga.so.1
0xb7f85880  0xb7f9a8ef  Yes         /lib/ld-linux.so.2
0xb73ae560  0xb7438924  Yes         /usr/lib/libX11.so.6
0xb7392fa0  0xb73953b4  Yes         /usr/lib/libXfixes.so.3
0xb736c1b0  0xb7384404  Yes         /usr/lib/libfontconfig.so.1
0xb735b680  0xb7365714  Yes         /usr/lib/libXext.so.6
0xb7350500  0xb73560e4  Yes         /usr/lib/libXrender.so.1
0xb734c8d0  0xb734d364  Yes         /usr/lib/libXinerama.so.1
0xb7343340  0xb7348794  Yes         /usr/lib/libXi.so.6
0xb733b2f0  0xb733f004  Yes         /usr/lib/libXrandr.so.2
0xb7332160  0xb7337564  Yes         /usr/lib/libXcursor.so.1
0xb7306d50  0xb732abc4  Yes         /usr/lib/libpangoft2-1.0.so.0
0xb7289cc0  0xb72eb004  Yes         /usr/lib/libfreetype.so.6
0xb727db10  0xb7280514  Yes         /usr/lib/libglitz-glx.so.1
0xb7259750  0xb7277184  Yes         /usr/lib/libpng12.so.0
0xb7253520  0xb7253774  Yes         /usr/lib/libxcb-xlib.so.0
0xb7240f20  0xb724f734  Yes         /usr/lib/libxcb.so.1
0xb7134920  0xb7213064  Yes         /usr/lib/libxml2.so.2
0xb7113a20  0xb7114694  Yes         /usr/lib/libXau.so.6
0xb70ed450  0xb71106a4  Yes         /usr/lib/libglitz.so.1
0xb7085570  0xb70bfee1  Yes         //usr//lib/opengl/nvidia/lib/libGL.so.1
0xb7050f10  0xb7052ab4  Yes         /usr/lib/libXdmcp.so.6
0xb67a9780  0xb6eedd2c  Yes         //usr//lib/opengl/nvidia/lib/libGLcore.so.1
0xb66b5450  0xb66b54a8  Yes         //usr//lib/opengl/nvidia/lib/libnvidia-tls.so.1
0xb6505e80  0xb650a914  Yes         /lib/libnss_compat.so.2
0xb64f1180  0xb64fdaf4  Yes         /lib/libnsl.so.1
0xb64e5960  0xb64eb404  Yes         /lib/libnss_nis.so.2
0xb64db920  0xb64e16f4  Yes         /lib/libnss_files.so.2
0xb6516370  0xb6516db4  Yes         /usr/lib/gconv/ISO8859-1.so
0xb5b93ec0  0xb5c13df4  Yes         /usr/lib/libasound.so

* Threads

* FPU Status
  R7: Empty   0x00000000000000000000
  R6: Empty   0x00000000000000000000
  R5: Empty   0x3fffc000000000000000
  R4: Empty   0x00000000000000000000
  R3: Empty   0x4016d541653333333334
  R2: Empty   0x4016d541653333333334
  R1: Empty   0x4016b409206666666666
=>R0: Empty   0xffff0000000000000000

Status Word:         0x4022      DE          PE                      C3
                       TOP: 0
Control Word:        0x037f   IM DM ZM OM UM PM
                       PC: Extended Precision (64-bits)
                       RC: Round to nearest
Tag Word:            0xffff
Instruction Pointer: 0x00:0x00000000
Operand Pointer:     0x00:0x00000000
Opcode:              0x0000

* Registers
eax            0x37fd	14333
ecx            0x2fa35	195125
edx            0x37fd	14333
ebx            0xb7f56ff4	-1208651788
esp            0xbfe515c0	0xbfe515c0
ebp            0xbfe515f8	0xbfe515f8
esi            0xbfe5161c	-1075505636
edi            0x8462200	138813952
eip            0xb7f48b1b	0xb7f48b1b <FLAC::Decoder::Stream::init()+27>
eflags         0x10282	[ SF IF RF ]
cs             0x73	115
ss             0x7b	123
ds             0x7b	123
es             0x7b	123
fs             0x0	0
gs             0x33	51

* Bytes near %eip:
0xb7f48b18 <_ZN4FLAC7Decoder6Stream4initEv+24>:	0xff243489
0xb7f48b1b <_ZN4FLAC7Decoder6Stream4initEv+27>:	0x840850ff

* Backtrace
#0  0xb7f48b1b in FLAC::Decoder::Stream::init (this=0xbfe5161c) at stream_decoder.cpp:170
	__PRETTY_FUNCTION__ = "virtual FLAC__StreamDecoderInitStatus FLAC::Decoder::Stream::init()"
#1  0x081ef556 in ?? ()
No symbol table info available.
#2  0x081e8cc3 in ?? ()
No symbol table info available.
#3  0x081e8fc0 in ?? ()
No symbol table info available.
#4  0x0814c659 in ?? ()
No symbol table info available.
#5  0x0814cac4 in ?? ()
No symbol table info available.
#6  0x0810b073 in ?? ()
No symbol table info available.
#7  0x08117ca8 in ?? ()
No symbol table info available.
#8  0x081125c9 in ?? ()
No symbol table info available.
#9  0x0808f915 in ?? ()
No symbol table info available.
#10 0x080792ee in ?? ()
No symbol table info available.
#11 0x080743a5 in ?? ()
No symbol table info available.
#12 0x080752ec in ?? ()
No symbol table info available.
#13 0x081f1a63 in ?? ()
No symbol table info available.
#14 0xb7594fdc in __libc_start_main () from /lib/libc.so.6
No symbol table info available.
#15 0x0804d741 in ?? ()
No symbol table info available.
Kill the program being debugged? (y or n) [answered Y; input not from terminal]
edit: offtopic: randy, i know you've had that suzumiya no haruhi avatar for some time now, since when did you begin liking the manga/anime? :)
User avatar
GuntherDW
Posts: 40
Joined: Tue Jul 13, 2004 11:17 pm
Location: Belgium, Antwerp

Post by GuntherDW »

i'm currently compiling zdoom with -ggdb and flac with it as well and both with their DEBUG flags on
i guess it can't get any "debuggier" than that, but to break stability with some apps :)

i'll post the report when it's done :)

edit : this looks strange though

Code: Select all

*** Fatal Error ***
Address not mapped to object (signal 11)

Generating zdoom-crash.log and killing process 14606, please wait... 170	stream_decoder.cpp: No such file or directory.
zsh: killed     ./zdoomd -iwad ~/wads/DOOM2.WAD -file /GuntherDW/doom2/kdizd.pk3
where does it get it's stream_decoder file from? or is it my FLAC build it's trying to access?

well, here's the full backtrace :

Code: Select all

*** Fatal Error ***
Address not mapped to object (signal 11)
Address: 0x8

System: Linux lisa 2.6.22.6 #2 Fri Sep 14 19:47:58 CEST 2007 i686 AMD Athlon(tm) XP 2600+ AuthenticAMD GNU/Linux
GCC version: 4.1.2

ZDoom version 2.1.8 (r545) (Oct  1 2007)

Command line: ./zdoomd -iwad /home/guntherdw/wads/DOOM2.WAD -file /GuntherDW/doom2/kdizd.pk3

Wad 0: zdoom.pk3
Wad 1: DOOM2.WAD
Wad 2: kdizd.pk3

Current map: TITLEMAP

viewx = 0
viewy = 0
viewz = 0
viewangle = 0

Executing: gdb --quiet --batch --command=gdb-respfile-FBYWwC --pid=14606
Using host libthread_db library "/lib/libthread_db.so.1".
0xffffe410 in __kernel_vsyscall ()

Program received signal SIGSEGV, Segmentation fault.
0xb7f09e89 in FLAC::Decoder::Stream::init (this=0xbfb51a50) at stream_decoder.cpp:170
	in stream_decoder.cpp

* Loaded Libraries
From        To          Syms Read   Shared Object Library
0xb7f021c0  0xb7f0c9d4  Yes         /usr/lib/libFLAC++.so.6
0xb7ebe2f0  0xb7ee98b4  Yes         /usr/lib/libFLAC.so.8
0xb7ea3470  0xb7eae954  Yes         /lib/libz.so.1
0xb7e85450  0xb7e9e834  Yes         /usr/lib/libjpeg.so.62
0xb7e03ae0  0xb7e43c49  Yes         /usr/lib/libfmod.so
0xb7d3b010  0xb7d94f74  Yes         /usr/lib/libSDL-1.2.so.0
0xb7d21270  0xb7d2c134  Yes         /lib/libpthread.so.0
0xb7a25440  0xb7c5e484  Yes         /usr/lib/libgtk-x11-2.0.so.0
0xb7968b60  0xb79b3a94  Yes         /usr/lib/libgdk-x11-2.0.so.0
0xb7941740  0xb794de14  Yes         /usr/lib/libatk-1.0.so.0
0xb79274e0  0xb7935914  Yes         /usr/lib/libgdk_pixbuf-2.0.so.0
0xb791cdd0  0xb7920a94  Yes         /usr/lib/libpangocairo-1.0.so.0
0xb78e63f0  0xb7904514  Yes         /usr/lib/libpango-1.0.so.0
0xb78650e0  0xb78d0384  Yes         /usr/lib/libcairo.so.2
0xb7829a90  0xb7854334  Yes         /usr/lib/libgobject-2.0.so.0
0xb781fcc0  0xb7820d44  Yes         /usr/lib/libgmodule-2.0.so.0
0xb781ba70  0xb781c954  Yes         /lib/libdl.so.2
0xb7793da0  0xb77def84  Yes         /usr/lib/libglib-2.0.so.0
0xb76de890  0xb7757354  Yes         /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/libstdc++.so.6
0xb767f470  0xb76997e4  Yes         /lib/libm.so.6
0xb76726c0  0xb7679204  Yes         /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/libgcc_s.so.1
0xb7556dd0  0xb763c660  Yes         /lib/libc.so.6
0xb753d250  0xb753f494  Yes         /usr/lib/libogg.so.0
0xb74e6f20  0xb7531224  Yes         /usr/lib/libdirectfb-1.0.so.0
0xb74d60d0  0xb74d9a64  Yes         /usr/lib/libfusion-1.0.so.0
0xb74c5de0  0xb74d0334  Yes         /usr/lib/libdirect-1.0.so.0
0xb744e210  0xb749e254  Yes         /usr/lib/libvga.so.1
0xb7f46880  0xb7f5b8ef  Yes         /lib/ld-linux.so.2
0xb7370560  0xb73fa924  Yes         /usr/lib/libX11.so.6
0xb7354fa0  0xb73573b4  Yes         /usr/lib/libXfixes.so.3
0xb732e1b0  0xb7346404  Yes         /usr/lib/libfontconfig.so.1
0xb731d680  0xb7327714  Yes         /usr/lib/libXext.so.6
0xb7312500  0xb73180e4  Yes         /usr/lib/libXrender.so.1
0xb730e8d0  0xb730f364  Yes         /usr/lib/libXinerama.so.1
0xb7305340  0xb730a794  Yes         /usr/lib/libXi.so.6
0xb72fd2f0  0xb7301004  Yes         /usr/lib/libXrandr.so.2
0xb72f4160  0xb72f9564  Yes         /usr/lib/libXcursor.so.1
0xb72c8d50  0xb72ecbc4  Yes         /usr/lib/libpangoft2-1.0.so.0
0xb724bcc0  0xb72ad004  Yes         /usr/lib/libfreetype.so.6
0xb723fb10  0xb7242514  Yes         /usr/lib/libglitz-glx.so.1
0xb721b750  0xb7239184  Yes         /usr/lib/libpng12.so.0
0xb7215520  0xb7215774  Yes         /usr/lib/libxcb-xlib.so.0
0xb7202f20  0xb7211734  Yes         /usr/lib/libxcb.so.1
0xb70f6920  0xb71d5064  Yes         /usr/lib/libxml2.so.2
0xb70d5a20  0xb70d6694  Yes         /usr/lib/libXau.so.6
0xb70af450  0xb70d26a4  Yes         /usr/lib/libglitz.so.1
0xb7047570  0xb7081ee1  Yes         //usr//lib/opengl/nvidia/lib/libGL.so.1
0xb7012f10  0xb7014ab4  Yes         /usr/lib/libXdmcp.so.6
0xb676b780  0xb6eafd2c  Yes         //usr//lib/opengl/nvidia/lib/libGLcore.so.1
0xb6677450  0xb66774a8  Yes         //usr//lib/opengl/nvidia/lib/libnvidia-tls.so.1
0xb64c7e80  0xb64cc914  Yes         /lib/libnss_compat.so.2
0xb64b3180  0xb64bfaf4  Yes         /lib/libnsl.so.1
0xb64a7960  0xb64ad404  Yes         /lib/libnss_nis.so.2
0xb649d920  0xb64a36f4  Yes         /lib/libnss_files.so.2
0xb64d8370  0xb64d8db4  Yes         /usr/lib/gconv/ISO8859-1.so
0xb5b55ec0  0xb5bd5df4  Yes         /usr/lib/libasound.so

* Threads

* FPU Status
  R7: Empty   0x3ffca2b1688000000000
  R6: Empty   0x4006ff00000000000000
  R5: Empty   0x00000000000000000000
  R4: Empty   0x4006ff00000000000000
  R3: Empty   0xffff0000000000016cf1
  R2: Empty   0xffff000000a7006b006b
  R1: Empty   0xffff0001000000370000
=>R0: Empty   0xffff0000000000000000

Status Word:         0x0022      DE          PE                        
                       TOP: 0
Control Word:        0x037f   IM DM ZM OM UM PM
                       PC: Extended Precision (64-bits)
                       RC: Round to nearest
Tag Word:            0xffff
Instruction Pointer: 0x00:0x00000000
Operand Pointer:     0x00:0x00000000
Opcode:              0x0000

* Registers
eax            0x0	0
ecx            0x0	0
edx            0xbfb51a50	-1078650288
ebx            0xb7f17ff4	-1208909836
esp            0xbfb519f0	0xbfb519f0
ebp            0xbfb51a58	0xbfb51a58
esi            0xbfb51a50	-1078650288
edi            0xbfb51da4	-1078649436
eip            0xb7f09e89	0xb7f09e89 <FLAC::Decoder::Stream::init()+25>
eflags         0x10286	[ PF SF IF RF ]
cs             0x73	115
ss             0x7b	123
ds             0x7b	123
es             0x7b	123
fs             0x0	0
gs             0x33	51

* Bytes near %eip:
0xb7f09e86 <_ZN4FLAC7Decoder6Stream4initEv+22>:	0xff243489
0xb7f09e89 <_ZN4FLAC7Decoder6Stream4initEv+25>:	0x840850ff

* Backtrace
#0  0xb7f09e89 in FLAC::Decoder::Stream::init (this=0xbfb51a50) at stream_decoder.cpp:170
	__PRETTY_FUNCTION__ = "virtual FLAC__StreamDecoderInitStatus FLAC::Decoder::Stream::init()"
#1  0x0822de36 in FLACSampleLoader (this=0xbfb51a98, sfx=0x84f52f0) at src/sound/sample_flac.cpp:18
No locals.
#2  0x082259eb in FMODSoundRenderer::DoLoad (this=0x84bc660, slot=0x84f52f8, sfx=0x84f52f0) at src/sound/fmodsound.cpp:1144
	loader = {<FLAC::Decoder::Stream> = {_vptr.Stream = 0x8290f68, decoder_ = 0x84b9588}, NumChannels = 0, SampleBits = 0, SampleRate = 0, NumSamples = 0, File = {<FileReader> = {
      _vptr.FileReader = 0x8269e08, File = 0x0, Length = 7670, StartPos = 0, FilePos = 0, CloseOnDestruct = false}, SourceData = 0x8965400 "fLaC", DestroySource = true, 
    Encrypted = false}, StartPos = 0, EndPos = 7670, SBuff = 0x0, SBuff2 = 0x0, SLen = 140698128, SLen2 = 143934800, Sfx = 0x84f52f0, Dest8 = false}
	wlump = {<FileReader> = {_vptr.FileReader = 0x8269e08, File = 0x0, Length = 7670, StartPos = 0, FilePos = 7670, CloseOnDestruct = false}, SourceData = 0x894cc60 "fLaC", 
  DestroySource = true, Encrypted = false}
	len = 570425344
	sfxdata = (BYTE *) 0x8957a78 "fLaC"
	size = 7670
	errcount = 0
	samplemode = 8192
#3  0x08225fc1 in FMODSoundRenderer::getsfx (this=0x84bc660, sfx=0x84f52f0) at src/sound/fmodsound.cpp:1226
	i = 537
#4  0x0822602e in FMODSoundRenderer::LoadSound (this=0x84bc660, sfx=0x84f52f0) at src/sound/fmodsound.cpp:954
No locals.
#5  0x081797b5 in S_CacheSound (sfx=0x84f52f0) at src/s_sound.cpp:534
No locals.
#6  0x081799ef in S_PrecacheLevel () at src/s_sound.cpp:496
	actor = (class AActor *) 0x0
	iterator = {<FThinkerIterator> = {m_ParentType = 0x8336e80, m_CurrThinker = 0x832ef04, m_Stat = 32 ' ', m_SearchStats = true, m_SearchingFresh = false}, <No data fields>}
	i = 216
#7  0x08127c39 in P_SetupLevel (lumpname=0x8332f6c "TITLEMAP", position=0) at src/p_setup.cpp:3697
	times = {182091, 1238202, 6142, 1867867, 1417585, 437707, 1910059, 419622, 73, 73, 1173931, 3592, 2719665, 152672, 3191799, 972, 896932, 18445635597667238728, 0, 0}
	buildthings = (mapthing2_t *) 0x1125
	numbuildthings = 137532448
	i = 8
	buildmap = false
	map = (MapData *) 0x86b3310
	timenames = {0x8262449 "load vertexes", 0x8262457 "load sectors", 0x8262464 "load sides", 0x826246f "load lines", 0x826247a "load sides 2", 0x8262487 "load lines 2", 
  0x8262494 "loop sides", 0x826249f "load subsectors", 0x82624af "load nodes", 0x82624ba "load segs", 0x82624c4 "load blockmap", 0x82624d2 "load reject", 0x82624de "group lines", 
  0x82624ea "flood zones", 0x82624f6 "load things", 0x8262502 "translate teleports", 0x8262516 "init polys", 0x8262521 "precache"}
#8  0x0809ff2f in G_DoLoadLevel (position=0, autosave=false) at src/g_level.cpp:1960
	oldgs = GS_TITLELEVEL
	i = 8
	lastposition = 0
	firstTime = true
#9  0x080a12df in G_InitNew (mapname=0x82560e4 "TITLEMAP", bTitleLevel=true) at src/g_level.cpp:1632
	oldSpeed = SPEED_Normal
	wantFast = false
	i = 8
	map = (MapData *) 0x86b3248
#10 0x0807b9ae in D_DoAdvanceDemo () at src/d_main.cpp:941
	pagename = 0x0
	map = (MapData *) 0x86b3248
	demoname = "DEMO1\000\000"
	democount = 0
	pagecount = 0
#11 0x08082b0b in TryRunTics () at src/d_net.cpp:1824
	i = 1
	lowtic = 17
	realtics = 170
	availabletics = 17
	counts = 16
	numplaying = 1
	doWait = false
#12 0x0807ca7e in D_DoomLoop () at src/d_main.cpp:718
	lasttic = 0
#13 0x0807dd83 in D_DoomMain () at src/d_main.cpp:2408
	p = 5
	flags = 0
	file = "Doom.Autoload\000w/.zdoom/skins", '\0' <repeats 2620 times>, "[ôô·M6/·º©?·", '\0' <repeats 16 times>, "Ä\017ö·Ô&/·\230*µ¿Ì*µ¿ÿ÷ô·", '\0' <repeats 16 times>, "¨\024F\b\005", '\0' <repeats 11 times>, "\230*µ¿d+µ¿Sç\021¼\v\000\000\000Ô&/·x&/·Rç\021¼", '\0' <repeats 12 times>, "\002\000\000\000d\000\000\000\000\000\000\0008Õ0·º©?·\204./·[ôô·ü5/·\235©?·\b×0·X+µ¿\000\000\000\000äøô·Ä\017ö·Ô"...
	v = 0x0
	wad = 0x0
	execFiles = (class DArgs *) 0x8484770
	files = (class DArgs *) 0x85d3000
	files1 = (class DArgs *) 0x84847e0
	files2 = (class DArgs *) 0x8484800
	val = 0x0
	startupString = {0x8256848 "STARTUP1", 0x8256851 "STARTUP2", 0x825685a "STARTUP3", 0x8256863 "STARTUP4", 0x825686c "STARTUP5"}
	one_hundred = "100"
#14 0x082303a1 in main (argc=5, argv=0xbfb53124) at src/sdl/i_main.cpp:241
	s = {11, 4, 8, 7}
	slash = 0x8328238 "/"
	error = (CDoomError &) @0xb766cff4: {
  m_Message = "|½\022\000\000\000\000\000\000\000\000\000 \237Z· ¦Z·\220¢Z·ðgõ· `õ·\020¤Z·p\206Z·0\206g·\000\000\000\000\177\003\000\000\"\000\000\000@", '\0' <repeats 19 times>, "\003\000\000\000±9\025\231㼥\026ͤtg\036Q\001>ª\212PN\005\214\004a\027\006Põ\025qk\204,\211\031j¯\227j\2116ùHÛT\204\211\024\006Ñÿ7\234ÿ\213µ\004qáYI\212\221Ï\203\2147\tq¤ÇR©>)\215\001ÃO\037¾qÛÃ\034N´9ùN¤ø±\200\213L(Ãí\031ÝK¿\207å@²É\033Kîéç®\202CAk[SÚžó\001\000\000\000\003"...}
Kill the program being debugged? (y or n) [answered Y; input not from terminal]
User avatar
GuntherDW
Posts: 40
Joined: Tue Jul 13, 2004 11:17 pm
Location: Belgium, Antwerp

Post by GuntherDW »

hmm, when compiling flac myself and thus leaving stream_decoder.cpp on my HDD the crash log doesn't differ much but from memory values and one line

Program received signal SIGSEGV, Segmentation fault.
0xb7f0e484 in FLAC::Decoder::Stream::init (this=0xbfa4e950) at stream_decoder.cpp:170
170 FLAC__ASSERT(is_valid());

altough i don't know how this could be any "handier" than the previous 'bugreport'

hope i have been handy (tell me if i didn't) :)

edit: @randy, you said i could edit the makefile to use the included libflac
could you please push me in the right direction cause i am nowhere near a coder to find it out myself :oops:
edit2: it seems to be fixed when removing -IFLAC in the makefile.linux file and thus forcing it to use the system lib
User avatar
Doomguy0505
Posts: 625
Joined: Tue Mar 29, 2005 4:53 am
Contact:

Re: [linux][fmod+flac] Zdoom crashes unexpectedly

Post by Doomguy0505 »

Here's the fix (I've tested it and it works)

FLAC/Makefile
Spoiler:
In makefile.linux, find this line:

Code: Select all

LDFLAGS += -lFLAC -lFLAC++ -lz -ljpeg -lfmod `sdl-config --libs` `pkg-config gtk+-2.0 --libs`
Replace it with this line

Code: Select all

LDFLAGS += FLAC/*.o -lz -ljpeg -lfmod `sdl-config --libs` `pkg-config gtk+-2.0 --libs`
In FLAC/format.c replace line 61 with this line

Code: Select all

FLAC_API const char *FLAC__VENDOR_STRING = "reference libFLAC 1.1.2 20050205";
User avatar
GuntherDW
Posts: 40
Joined: Tue Jul 13, 2004 11:17 pm
Location: Belgium, Antwerp

Re: [linux][fmod+flac] Zdoom crashes unexpectedly

Post by GuntherDW »

it's ok, i just removed the reference to the built-in FLAC and now it works perfectly w/o any crash :)
i posted it in the gzdoom forums but i forgot to post it here :)

IE: i removed "-IFLAC" in the CFLAGS line in Makefile.linux
User avatar
Doomguy0505
Posts: 625
Joined: Tue Mar 29, 2005 4:53 am
Contact:

Re: [linux][fmod+flac] Zdoom crashes unexpectedly

Post by Doomguy0505 »

That's weird, the system FLAC crashes for me, not the included one
Post Reply

Return to “Closed Bugs [GZDoom]”