bugWarzone 2100 Project - Bugs: bug #12120, Segfault on map send

 
 
Show feedback again

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

bug #12120: Segfault on map send

Submitted by:  Dennis Schridde <devurandom>
Submitted on:  Tue 29 Jul 2008 02:57:42 PM UTC  
 
Category: Engine: NetplaySeverity: Normal
Priority: 5 - NormalStatus: None
Assigned to: NoneOpen/Closed: Open
Release: svn/trunkOperating System: GNU/Linux
Planned Release: None

Mon 04 Aug 2008 09:43:26 AM UTC, comment #4:

No, will do later.

Dennis Schridde <devurandom>
Project Administrator
Mon 04 Aug 2008 04:31:16 AM UTC, comment #3:

Have you tried again?

Seems to be working fine, every time I tried.

Bugs Buggy <buginator>
Project Administrator
Wed 30 Jul 2008 06:10:23 AM UTC, comment #2:

I wonder where that null filehandle comes from then... :(

Dennis Schridde <devurandom>
Project Administrator
Wed 30 Jul 2008 04:25:47 AM UTC, comment #1:

I tried said map, and it transfered OK between a windows & a debian box using trunk.

However, since the map is 'bad' (multiple features on the same tile), it asserts out.

Anonymous
Tue 29 Jul 2008 02:57:42 PM UTC, original submission:

When hosting a game with "Highway" map, a player without that map installed joined, it crashed on the host.

error |000000037257: [NETsendFile] Failed

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7f8f083e4760 (LWP 23309)]
0x00007f8f07a5fc0f in PHYSFS_read (handle=0x0, buffer=0x7fff1051eb90, objSize=1, objCount=256) at /home/dschridde/software/physfs-svn/physfs.c:1980
warning: Source file is more recent than executable.
1980 BAIL_IF_MACRO(!fh->forReading, ERR_FILE_ALREADY_OPEN_W, -1);
(gdb) bt full
#0 0x00007f8f07a5fc0f in PHYSFS_read (handle=0x0, buffer=0x7fff1051eb90, objSize=1, objCount=256) at /home/dschridde/software/physfs-svn/physfs.c:1980
fh = (FileHandle *) 0x0
#1 0x0000000000601e40 in NETsendFile (newFile=0, fileName=0x122fc41 "Sk-Highway-T1", player=0) at netplay.c:1152
bytesRead = 5244763
inBuff = '\0' <repeats 255 times>
sendto = 0 '\0'
fileSize = 0
currPos = 0
pFileHandle = (PHYSFS_File *) 0x0
_FUNCTION_ = "NETsendFile"
#2 0x0000000000594512 in sendMap () at multiplay.c:1593
done = 46 '.'
lastCall = 37257
#3 0x0000000000500785 in runMultiOptions () at multiint.c:2236
id = 6469407
value = 0
sTemp = " \000\000\000\000\000\000\000\020b�\005\217\177", '\0' <repeats 18 times>, "��Q\020�\177", '\0' <repeats 18 times>, "�\0330\b\217\177\000\000\000\000\000\000\000\000\000\000=}\r\b\217\177\000\000\000\000\000\000\000\000\000\000����\000\000\000\000��Q\020�\177\000\000\001\000\000\000\000\000\000\000\002\000\000\000\000\000\000\000����\000\000\000"
playerStats = {played = 0, wins = 0, losses = 39050976, totalKills = 0, totalScore = 0, recentKills = 0, recentScore = 0, killsToAdd = 0,
scoreToAdd = 32}
context = {psScreen = 0x253def8, psForm = 0x0, xOffset = 0, yOffset = 0, mx = 55042919, my = 32655}
k = 0
str = "\000\000"
lastrefresh = 36070
_PRETTY_FUNCTION_ = "runMultiOptions"
---Type <return> to continue, or q <return> to quit---
#4 0x000000000055ae72 in titleLoop () at wrappers.c:149
RetCode = TITLECODE_CONTINUE
_FUNCTION_ = "titleLoop"
#5 0x00000000004e6127 in runTitleLoop () at main.c:685
_FUNCTION_ = "runTitleLoop"
#6 0x00000000004e6401 in mainLoop () at main.c:825
event = {type = 13 '\r', active = {type = 13 '\r', gain = 0 '\0', state = 0 '\0'}, key = {type = 13 '\r', which = 0 '\0', state = 0 '\0', keysym = {
scancode = 0 '\0', sym = 137339648, mod = 32655, unicode = 0}}, motion = {type = 13 '\r', which = 0 '\0', state = 0 '\0', x = 0, y = 0, xrel = -23808,
yrel = 2095}, button = {type = 13 '\r', which = 0 '\0', button = 0 '\0', state = 0 '\0', x = 0, y = 0}, jaxis = {type = 13 '\r', which = 0 '\0',
axis = 0 '\0', value = 0}, jball = {type = 13 '\r', which = 0 '\0', ball = 0 '\0', xrel = 0, yrel = 0}, jhat = {type = 13 '\r', which = 0 '\0',
hat = 0 '\0', value = 0 '\0'}, jbutton = {type = 13 '\r', which = 0 '\0', button = 0 '\0', state = 0 '\0'}, resize = {type = 13 '\r', w = 0,
h = 137339648}, expose = {type = 13 '\r'}, quit = {type = 13 '\r'}, user = {type = 13 '\r', code = 0, data1 = 0x7f8f082fa300, data2 = 0x0}, syswm = {
type = 13 '\r', msg = 0x7f8f082fa300}}
#7 0x00000000004e67c5 in main (argc=1, argv=0x7fff1051efe8) at main.c:979
_FUNCTION_ = "main"
_PRETTY_FUNCTION_ = "main"

Dennis Schridde <devurandom>
Project Administrator

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by buginator (Posted a comment)
  • -unavailable- added by devurandom (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):

     

     

    No Changes Have Been Made to This Item
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup