Back to the Vavoom Forum Archives


Forum

[Fixed] [1.23] Linux AMD64: fatal error "bad class size

Thu, 03 May 2007 21:08:46

scen

Hi, the first run of Vavoom 1.23 on my AMD64 Gentoo Linux box has failed <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( --> I receive the following error (i paste the last part of debug.txt):
Init: Selected SDL OpenGL rasteriser device
Sys_Error: Bad class size, class Entity, C++ 336, VavoomC 344)- VClass::CalcFieldOffsets
- VMethod::OptimiseInstructions
- VMethod::CompileCode
- VMethod::PostLoad
- VMemberBase::StaticLoadPackage
- VMemberBase::StaticLoadPackage
- CL_Init
- Host_Init
Log: Doing C_Shutdown
Log: Doing CL_Shutdown
Log: Doing SV_Shutdown
Log: Doing delete GNet
Log: Doing delete GInput
Log: Doing V_Shutdown
Log: Doing delete GAudio
Log: Doing T_Shutdown
Log: Doing Sys_Shutdown
Log: Doing delete GSoundManager
Log: Doing R_ShutdownTexture
Log: Doing VCommand::Shutdown
Log: Doing VCvar::Shutdown
Log: Doing ShutdownMapInfo
Log: Doing FL_Shutdown
Log: Doing W_Shutdown
Log: Doing GLanguage.FreeData
Log: Doing VObject::StaticExit
Log: Doing VName::StaticExit
Uninitialised: Doing Z_Shutdown
STACK TRACE:

stack 0 0x5461e4 frame 0 0x7fff58fd0c70


ERROR: Bad class size, class Entity, C++ 336, VavoomC 344)
Z_Free after Z_Shutdown
Z_Free after Z_Shutdown
Z_Free after Z_Shutdown
Z_Free after Z_Shutdown
Z_Free after Z_Shutdown
Z_Free after Z_Shutdown
Z_Free after Z_Shutdown
Z_Free after Z_Shutdown
Z_Free after Z_Shutdown
Z_Free after Z_Shutdown
Z_Free after Z_Shutdown
Z_Free after Z_Shutdown
Z_Free after Z_Shutdown
Z_Free after Z_Shutdown
Z_Free after Z_Shutdown
Z_Free after Z_Shutdown
GDB is not so useful this time:
gdb /usr/games/bin/vavoom
GNU gdb 6.6
Copyright (C) 2006 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 "x86_64-pc-linux-gnu"...
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) run -doom -opengl
Starting program: /usr/games/bin/vavoom -doom -opengl
[Thread debugging using libthread_db enabled]
[New Thread 47510480368272 (LWP 11062)]
Adding /usr/share/games/vavoom/basev/common/basepak.pk3
adding /usr/share/games/vavoom/doom.wad
Adding /usr/share/games/vavoom/basev/doom/basepak.pk3
Adding /usr/share/games/vavoom/basev/doom/xflats.pk3
Adding /usr/share/games/vavoom/basev/doom/xgfx.pk3
Adding /usr/share/games/vavoom/basev/doom/xmodels.pk3
Adding /usr/share/games/vavoom/basev/doom/xmusic.pk3
Adding /usr/share/games/vavoom/basev/doom/xwalls.pk3
Adding /usr/share/games/vavoom/basev/doom1/basepak.pk3
Adding /usr/share/games/vavoom/basev/doom1/xgfx.pk3
Adding /usr/share/games/vavoom/basev/doom1/xmusic.pk3
Adding /usr/share/games/vavoom/basev/doom1/xwalls.pk3
Host name: gondor
My IP address: 127.0.0.1
UDP Initialised
TCP/IP address 127.0.0.1
Selected SDL sound device
[New Thread 1082140992 (LWP 11065)]
Configured audio device
Driver: dsp
Freqency: 44100
Channels: 2
Format: 8010
Selected SDL midi device
Selected Linux CD audio device
CD_Init: open of "/dev/cdrom" failed (123)
Using 16 voices
Selected SDL OpenGL rasteriser device
Doing C_Shutdown
Doing CL_Shutdown
Doing SV_Shutdown
Doing delete GNet
Doing delete GInput
Doing V_Shutdown
Doing delete GAudio
[Thread 1082140992 (LWP 11065) exited]
Doing T_Shutdown
Doing Sys_Shutdown
Doing delete GSoundManager
Doing R_ShutdownTexture
Doing VCommand::Shutdown
Doing VCvar::Shutdown
Doing ShutdownMapInfo
Doing FL_Shutdown
Doing W_Shutdown
Doing GLanguage.FreeData
Doing VObject::StaticExit
Doing VName::StaticExit
Doing Z_Shutdown
block 0x8973e4 size      209 at host.cpp:673
block 0x8e8c78 size       16 at array.h:98
block 0x976e0c size       40 at array.h:98
block 0x976d88 size       96 at array.h:98
block 0x976d44 size       32 at array.h:98
block 0x8975ac size      112 at array.h:98
block 0x8eb114 size      128 at array.h:98
block 0x976ce0 size       64 at array.h:98
block 0x976c9c size       32 at array.h:98
block 0x8ea444 size        8 at array.h:98
block 0x8eb428 size      120 at array.h:98
block 0x833018 size       56 at array.h:98
block 0x8971c8 size      200 at array.h:98
block 0x975bfc size       32 at array.h:98
block 0x8e8c44 size       16 at array.h:98
block 0x975ab0 size       32 at array.h:98
block 0x8bf44c size    23696 at vclass.cpp:416
block 0x92b10c size     5548 at vclass.cpp:397
block 0x911d0c size       64 at vclass.cpp:372
block 0x91ca8c size    16560 at fs_zip.cpp:546
block 0x91b9fc size     4152 at vclass.cpp:407
block 0x90ac9c size     3316 at vclass.cpp:397
block 0x8d0208 size       64 at vclass.cpp:372
block 0x8feb7c size    16560 at fs_zip.cpp:546
block 0x831930 size       21 at str.cpp:108
25 blocks allocated

Bad class size, class Entity, C++ 336, VavoomC 344)

Program exited with code 01.
Compiled with gcc-4.1.1 (with glibc 2.5), using CFLAGS="-O2 -march=k8 -pipe". On x86 all works fine, instead. Tell me if you need more details. <!-- s8) --><img src="{SMILIES_PATH}/icon_cool.gif" alt="8)" title="Cool" /><!-- s8) -->
Thu, 03 May 2007 22:39:13

Firebrand

Sounds like you have progs sources from an old version, the crash happens because the engine looks for code in the Entity class which doesn't exists, double check that you have correctly setup your files, hope this helps you out <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->.
Fri, 04 May 2007 12:11:54

scen

Hi Firebrand <!-- s8) --><img src="{SMILIES_PATH}/icon_cool.gif" alt="8)" title="Cool" /><!-- s8) --> Thanks for the reply, but unfortunately i'm sure to run a "clean" 1.23 installation of Vavoom: [list:2vb0b9wq] [*:2vb0b9wq]i've removed entirely the previous installation (1.22.1)[/*:m:2vb0b9wq] [*:2vb0b9wq]i've downloaded again the source tarball[/*:m:2vb0b9wq] [*:2vb0b9wq]i've removed entirely the configuration dir ( rm -fr ~/.vavoom )[/*:m:2vb0b9wq] [*:2vb0b9wq]i've recompiled several times the sources (with allegro, with sdl, with/without opengl...) but the problem persists[/*:m:2vb0b9wq][/list:u:2vb0b9wq] The strange thing is that the SVN sources some week ago ran perfectly, maybe the latest changes before 1.23 release have introduced some little annoyance against AMD64 systems. <!-- s:P --><img src="{SMILIES_PATH}/icon_razz.gif" alt=":P" title="Razz" /><!-- s:P -->
Mon, 07 May 2007 16:50:05

Janis Legzdinsh

Hopefully fixed. Check out current SVN and tell me how it works.
Mon, 07 May 2007 18:55:12

scen

[quote="Janis Legzdinsh":3e7joty5]Hopefully fixed. Check out current SVN and tell me how it works. Yeah, now it runs fine <!-- s8) --><img src="{SMILIES_PATH}/icon_cool.gif" alt="8)" title="Cool" /><!-- s8) --> Great Janis, close the bug if you want! <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: -->
Tue, 08 May 2007 18:03:14

Janis Legzdinsh

It looks like it's more complicated that I thought, but I think I got it right now.
Wed, 23 May 2007 10:30:35

scen

I've posted a specific patch for this issue in this discussion, i hope it helps <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: --> ( Gentoo Ebuild for Vavoom 1.23 is coming..... <!-- s:twisted: --><img src="{SMILIES_PATH}/icon_twisted.gif" alt=":twisted:" title="Twisted Evil" /><!-- s:twisted: --> )

Back to the Vavoom Forum Archives