bugWarzone 2100 Project - Bugs: bug #12212, SIGSEGV: Invalid memory reference:...

 
 
Show feedback again

You are not allowed to post comments on this tracker with your current authentification level.

bug #12212: SIGSEGV: Invalid memory reference: Address not mapped to object TRUNK r5842

Submitted by:  None
Submitted on:  Fri 22 Aug 2008 12:02:30 AM UTC  
 
Category: NoneSeverity: Blocker
Priority: 5 - NormalStatus: None
Assigned to: NoneOriginator Email: -unavailable-
Open/Closed: OpenRelease: svn/trunk
Operating System: GNU/LinuxPlanned Release: None

(Jump to the original submission Jump to the original submission)

Fri 29 Aug 2008 04:45:25 PM UTC, comment #6:

This still happens on Linux with physfs 1.0.0 - 1.0.1.
make install
mv the old ~/.warzone200-2.1 and start clean.
Select a fastplay game or preview a map.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb79f96e0 (LWP 1695)]
ZIP_read (handle=0x96b59d8, buf=0x9d16361, objSize=1, objCount=65536)
at zip.c:250
250 zip.c: No such file or directory.
in zip.c
(gdb) bt full
#0 ZIP_read (handle=0x96b59d8, buf=0x9d16361, objSize=1, objCount=65536)
at zip.c:250
finfo = (ZIPfileinfo *) 0x9658c78
entry = (ZIPentry *) 0xb79b30a8
retval = <value optimized out>
maxread = 65536
avail = <value optimized out>
#1 0xb803baf3 in PHYSFS_read (handle=0x91082a0, buffer=0x9d16361, objSize=1,
objCount=65536) at physfs.c:1803
h = (FileHandle *) 0x96b59d8
#2 0x081f4fad in ?? ()
...
...

(file #4752, file #4753)

Silvence <skellr>
Sat 23 Aug 2008 03:40:20 AM UTC, comment #5:

I have libphysfs-1.0-0 = 1.0.0-5 (hardy) and
libphysfs-dev = 1.0.0-5 (hardy) installed
Mythbuntu/ubuntu 8.04.1 x64

I just did the following ( with the music files and music file clear) this could be related but not sure.

warzone2100 --debug=error --debug=sound --debug=memory --debugfile=/tmp/wz2100.txt --sound

I started tutorial and dropped out to the menu

--- Starting log ---
sound |000000000000: [PrintOpenALVersion] OpenAL Vendor: OpenAL Community
sound |000000000000: [PrintOpenALVersion] OpenAL Version: 1.1
sound |000000000000: [PrintOpenALVersion] OpenAL Renderer: Software
sound |000000000000: [PrintOpenALVersion] OpenAL Extensions: ALC_EXT_capture AL_EXT_capture AL_EXT_vorbis AL_EXT_MP3 AL_LOKI_quadriphonic AL_LOKI_play_position AL_LOKI_WAVE_format AL_LOKI_IMA_ADPCM_format AL_LOKI_buffer_data_callback ALC^X
sound |000000000000: [cdAudio_Open] called(music)
sound |000000000002: [cdAudio_PlayTrack] called(0)
sound |000000000002: [cdAudio_OpenTrack] called(music/menu.ogg)
sound |000000000002: [cdAudio_Stop] called, cdStream=(nil)
sound |000000000002: [scrPlayIngameCDAudio] Script wanted music to start
sound |000000000002: [cdAudio_PlayTrack] called(1)
sound |000000000002: [scrStopCDAudio] Script wanted music to stop
sound |000000000002: [cdAudio_Stop] called, cdStream=(nil)
sound |000000004033: [__sound_GetError] OpenAL raised an error: "AL_INVALID_NAME: Invalid name parameter passed"; at openal_track.c:1055
sound |000000004033: [cdAudio_Stop] called, cdStream=(nil)
sound |000000000002: [cdAudio_PlayTrack] called(0)
sound |000000000002: [cdAudio_OpenTrack] called(music/menu.ogg)
sound |000000000002: [cdAudio_Stop] called, cdStream=(nil)
sound |000000002030: [cdAudio_Close] called
sound |000000002030: [cdAudio_Stop] called, cdStream=(nil)
sound |000000002030: [sound_ShutdownLibrary] starting shutdown
sound |000000002030: [sound_ShutdownLibrary] make default context NULL
sound |000000002030: [sound_ShutdownLibrary] destroy previous context
sound |000000002030: [sound_ShutdownLibrary] close device
~

Anonymous
Sat 23 Aug 2008 03:05:44 AM UTC, comment #4:

Are you using physfs 1.1.x ?
If so, can you revert to physfs 1.0?

Thanks for pointing out that music.wpl in svn is wrong.

I have yet to test this again without my other patch, but that may also play a role in this, but it is on my TODO list.

Bugs Buggy <buginator>
Project Administrator
Sat 23 Aug 2008 02:56:22 AM UTC, comment #3:

I cleared

~/warzone/data/base/music/music.wpl ( vim + deleted the 2 lines)

~/warzone# make uninstall && make clean
~/warzone# ./autogen.sh
~/warzone# ./configure && make && make install

loaded game
menu.ogg was playing on the menu screen
I clicked on fast play and crash

~/warzone/data/base/music# rm *.ogg

~/warzone# make uninstall && make clean
~/warzone# ./autogen.sh
~/warzone# ./configure && make && make install

loaded game
no playing on the menu screen
I clicked on fast play and no crash

the svn music.wpl looks like

track1.ogg
track2.ogg

but this page has this format ( http://forums.wz2100.net/viewtopic.php?f=1&t=1923&st=0&sk=t&sd=a&start=15 )

[game]
path=.
shuffle=yes
track1.ogg
track2.ogg

[menu]
path=.
shuffle=yes
track1.ogg
track2.ogg

sound |000000000002: [cdAudio_PlayTrack] called(0)
sound |000000000002: [cdAudio_OpenTrack] called(music/menu.ogg)
sound |000000000002: [cdAudio_Stop] called, cdStream=(nil)
sound |000000000002: [cdAudio_OpenTrack] successful(music/menu.ogg)
...
sound |000000000002: [cdAudio_PlayTrack] called(1)
sound |000000000002: [cdAudio_OpenTrack] called(music/track1.ogg)
sound |000000000002: [cdAudio_Stop] called, cdStream=0x168bf70

I have a guesses about this

the game is looking in the wrong place for the music listed in the music.wpl file when path is not listed?

Anonymous
Fri 22 Aug 2008 05:28:50 AM UTC, comment #2:

Just tested fastplay on windows, and didn't get any crashes.
I have a slightly different build though, with a sound error fix.
Perhaps that is the issue. I'll revert my local patches, and see if that is the case.

Bugs Buggy <buginator>
Project Administrator
Fri 22 Aug 2008 04:11:33 AM UTC, comment #1:

wz2100.txt is a full debugfile from start to crash

(file #4718, file #4719)

Anonymous
Fri 22 Aug 2008 12:02:30 AM UTC, original submission:

Mythubutu 8.04.1 x64
Intel Q6600
NV 8400

I rebooted my computer after building r5842
tried both
Command line: "warzone2100 --sound --debug=all"
Command line: "warzone2100 --debug=all"
menu music is playing
picked "fast play"
game starts to load and crash, every time
but with
Command line: "warzone2100 --nosound --debug=all"
fastplay works just fine

Dump caused by signal: SIGSEGV: Invalid memory reference: Address not mapped to object

Log message: never |000000000002: [res_parse] file: SCRIPTVAL fastdemo.vlo
Log message: wz |000000000002: [dataScriptLoadVals] Loading script data fastdemo.vlo
Log message: script |000000000002: [eventNewContext] allocated space for 27 events
Log message: never |000000000002: [res_parse] file: SCRIPTVAL start.vlo
Log message: wz |000000000002: [dataScriptLoadVals] Loading script data start.vlo
Log message: script |000000000002: [eventNewContext] allocated space for 1 events
Log message: never |000000000002: [res_parse] directory: script/data
Log message: never |000000000002: [res_parse] Current resource directory: script/data/
Log message: never |000000000002: [res_parse] file: SCRIPTVAL cam1day.vlo
Log message: wz |000000000002: [dataScriptLoadVals] Loading script data cam1day.vlo
Log message: script |000000000002: [eventNewContext] allocated space for 2 events
Log message: wz |000000000002: [stageThreeInitialise] == stageThreeInitalise ==
Log message: never |000000000002: [gridClear] gridClear 8 8
Log message: never |000000000002: [driveInitVars] driveInitVars: Driving
Log message: wz |000000000002: [resizeRadar] Setting radar zoom to 2.000000
Log message: wz |000000000002: [radarSize] radar=(1140,628) tex=(64,64) size=(128,128)
Log message: sound |000000000002: [scrPlayIngameCDAudio] Script wanted music to start
Log message: sound |000000000002: [cdAudio_PlayTrack] called(1)
Log message: sound |000000000002: [cdAudio_OpenTrack] called(music/track1.ogg)
Log message: sound |000000000002: [cdAudio_Stop] called, cdStream=0x16905d0

Anonymous

 

Attached Files
file #4752:  fastplay_r5887T.gdmp added by skellr (14kB - text/plain)
file #4753:  map_preview_r5887T.gdmp added by skellr (13kB - text/plain)
file #4719:  warzone2100.gdmp added by None (14kB - application/octet-stream)
file #4718:  wz2100.txt added by None (111kB - text/plain)
file #4717:  warzone2100.gdmp added by None (21kB - application/octet-stream)
file #4716:  warzone2100.gdmp added by None (14kB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by skellr (Updated the item)
  • -unavailable- added by None (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 29 Aug 2008 04:45:25 PM UTCskellrAttached File-=>Added fastplay_r5887T.gdmp, #4752
      Attached File-=>Added map_preview_r5887T.gdmp, #4753
    Fri 22 Aug 2008 04:11:33 AM UTCNoneAttached File-=>Added wz2100.txt, #4718
      Attached File-=>Added warzone2100.gdmp, #4719
    Fri 22 Aug 2008 12:12:44 AM UTCNoneAttached File-=>Added warzone2100.gdmp, #4717
    Fri 22 Aug 2008 12:02:30 AM UTCNoneAttached File-=>Added warzone2100.gdmp, #4716
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup