[r955] 64-bit segmentation fault on changemap. (game saves)

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
Blzut3
 
 
Posts: 3219
Joined: Wed Nov 24, 2004 12:59 pm
Operating System Version (Optional): Kubuntu
Graphics Processor: ATI/AMD with Vulkan/Metal Support
Contact:

[r955] 64-bit segmentation fault on changemap. (game saves)

Post by Blzut3 »

It appears as if the 64-bit version of ZDoom will run until you exit a level (so changemap and not map).

Code: Select all

J]changemap map01



+map01 - entryway



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

Generating zdoom-crash.log and killing process 9175, please wait... /home/blzut3/trunk/gdb-respfile-8KvUw0:16: Error in sourced command file:
Argument to arithmetic operation not a number or boolean.
Segmentation fault
Last edited by Blzut3 on Sat May 03, 2008 11:40 am, edited 1 time in total.
User avatar
Jim
Posts: 535
Joined: Mon Aug 11, 2003 10:56 am

Re: [r955] 64-bit segmentation fault on changemap.

Post by Jim »

Compile a debug version of ZDoom like so:

Code: Select all

make DEBUG=1 NOASM=1
Then, crash ZDoom again and attach the resulting zdoom-crash.log to a message.
Blzut3
 
 
Posts: 3219
Joined: Wed Nov 24, 2004 12:59 pm
Operating System Version (Optional): Kubuntu
Graphics Processor: ATI/AMD with Vulkan/Metal Support
Contact:

Re: [r955] 64-bit segmentation fault on changemap.

Post by Blzut3 »

Ok.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49252
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: [r955] 64-bit segmentation fault on changemap.

Post by Graf Zahl »

Code: Select all

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fc653849780 (LWP 9175)]
0x00000000505d14df in ?? () 

Unfortunately there is no information here that could help to fix it. Can you narrow it down somehow?
Blzut3
 
 
Posts: 3219
Joined: Wed Nov 24, 2004 12:59 pm
Operating System Version (Optional): Kubuntu
Graphics Processor: ATI/AMD with Vulkan/Metal Support
Contact:

Re: [r955] 64-bit segmentation fault on changemap.

Post by Blzut3 »

As I said it happens on map change but only when an intermission is involved, so there are two possible things that I can think of.
1.) A pointer to the player's old inventory is somehow messed up.
2.) Save games do not work in 64 bit.

Realizing the 2nd idea I went ahead and tested it and indeed. Saving a game will causing a segmentation fault. The crash log produced has the part you quoted.

Edit: I went ahead and tested traveling between levels with "disableautosave 2" and the crash is gone.
Edit 2: I did a quick speed run through Doom Episode 1 and finished Doom 2 MAP30 and it seems like the save games are the only thing that are broken now
User avatar
Jim
Posts: 535
Joined: Mon Aug 11, 2003 10:56 am

Re: [r955] 64-bit segmentation fault on changemap. (game saves)

Post by Jim »

I was going to say that I'm not really sure that this crash has much to do with the fact that you've compiled a 64-bit version, as I haven't even been able to start ZDoom for awhile now. (It crashes after choosing the iwad, but before bringing up video.)

So anyway, I decided to compile a version using NOASM and I was finally able to start ZDoom. I did not get a crash when saving.
User avatar
randi
Site Admin
Posts: 7750
Joined: Wed Jul 09, 2003 10:30 pm
Contact:

Re: [r955] 64-bit segmentation fault on changemap. (game saves)

Post by randi »

Blzut3 wrote:Save games do not work in 64 bit.
It works fine on Windows, so it must be a Linux problem. Please run the executable from gdb, since it seems the crash log isn't working on x86_64 targets.
Blzut3
 
 
Posts: 3219
Joined: Wed Nov 24, 2004 12:59 pm
Operating System Version (Optional): Kubuntu
Graphics Processor: ATI/AMD with Vulkan/Metal Support
Contact:

Re: [r955] 64-bit segmentation fault on changemap. (game saves)

Post by Blzut3 »

randy wrote:Please run the executable from gdb...
Hmm?

Edit: I think I figured out how to use gdb (I got ZDoom started at least). However, when I tried to save the game the console printed an error extremely similar to the one ZDoom put in its debug files and the system froze.
Blzut3
 
 
Posts: 3219
Joined: Wed Nov 24, 2004 12:59 pm
Operating System Version (Optional): Kubuntu
Graphics Processor: ATI/AMD with Vulkan/Metal Support
Contact:

Re: [r955] 64-bit segmentation fault on changemap. (game saves)

Post by Blzut3 »

I think I got something useful out of it!

Code: Select all

Program received signal SIGSEGV, segmentation fault.
[Switching to Thread 0x7f1688ad0780 (LWP 21610)]
0x000000000044cd23 in FArchive::FindObjectIndex (this=0x7fff90b00390, obj=0x1128da0) at src/farchive.cpp:1463
1463            while(index != TypeMap::NO_INDEX && m_ObjectMap[index].object != obj)
Hopefully that is the correct error (I had to copy it by hand and my handwriting isn't that great ('b's look identical to '6's)).
User avatar
randi
Site Admin
Posts: 7750
Joined: Wed Jul 09, 2003 10:30 pm
Contact:

Re: [r955] 64-bit segmentation fault on changemap. (game saves)

Post by randi »

Fixed.
Post Reply

Return to “Closed Bugs [GZDoom]”