bugFreeciv - Bugs: bug #20792, in same_pos()...

 
 
Show feedback again

bug #20792: in same_pos() [../../../../common/map.c::887]: assertion 'tile1 != ((void *)0) && tile2 != ((void *)0)' failed

Submitted by:  None
Submitted on:  Tue 07 May 2013 05:14:59 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalStatus: Confirmed
Assigned to: NoneOriginator Email: -unavailable-
Open/Closed: OpenRelease: 2.3.4
Operating System: Microsoft WindowsPlanned Release: 

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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

Sat 13 Sep 2014 05:58:29 PM UTC, comment #11:

About bug described at comment #6: this is a duplicate of bug #19429.

About the crash, it is due to 'punit->goto_tile == NULL'. See also bug #22555.

pepeto <pepeto>
Project Member
Sun 18 Aug 2013 11:42:20 PM UTC, comment #10:

> (The fact that these [500x250 WRAPX|ISO] proceeded apparently
> normally also suggests that the MAP_MAX_LINEAR_SIZE assertions
> are overzealous, but I haven't looked into it.)

Probably covered by bug #19429.

Jacob Nevins <jtn>
Project Administrator
Mon 13 May 2013 08:22:36 AM UTC, comment #9:

Well, I've left a couple of 500x250 WRAPX|ISO autogames running without issue now with 2.3.4 and the default ruleset. So whatever the crash is, it's not trivially

(The fact that these proceeded apparently normally also suggests that the MAP_MAX_LINEAR_SIZE assertions are overzealous, but I haven't looked into it.)

Jacob Nevins <jtn>
Project Administrator
Sun 12 May 2013 02:32:36 AM UTC, comment #8:

was trying for the 500 x size by 250 y size which is less than the 128,000 total tile size but if you check the actual map siz it is larger but at start it did run

Anonymous
Sat 11 May 2013 11:41:20 AM UTC, comment #7:

Back to the same_pos()/segfault, here's a backtrace (with 2.3.4):

Jacob Nevins <jtn>
Project Administrator
Sat 11 May 2013 11:30:34 AM UTC, comment #6:

On loading the savefile we get

Relevant map parameters in the savefile are as follows:

MAP_MAX_LINEAR_SIZE is 512, but MAP_WIDTH and MAP_HEIGHT are defined as follows:

Hence the map size assertion failures (which are reproducible with the default ruleset, unsurprisingly).

There's clearly a bug here -- the assertion failure and the checks on setting xsize/ysize are inconsistent -- but I don't know which is correct.

Also don't know yet whether this is the root cause of the same_pos() assertion failure and segfault. It doesn't seem inconceivable. If not, then it should become a new ticket.

Jacob Nevins <jtn>
Project Administrator
Sat 11 May 2013 10:50:46 AM UTC, comment #5:

Reproduced assertion failure and segfault with 2.3.4 and the attached files.
(They took a bit of fiddling to get working on a case-sensitive filesystem.)

Jacob Nevins <jtn>
Project Administrator
Tue 07 May 2013 09:33:19 AM UTC, comment #4:

sorry about the double upload of "add to folders"
i know this is not a balanced game but i am figuring out how to do rule set if you do the save game the next turn should crash it is posable that something in building or effects ruleset is wrong i have tried comenting out the modifications but still crashes.

Anonymous
Tue 07 May 2013 09:12:27 AM UTC, comment #3:

2 diffrent games hit the same problem. have the last save game.

(file #17907, file #17908, file #17909, file #17910)

Anonymous
Tue 07 May 2013 08:58:25 AM UTC, comment #2:

2.3.4
custom rule set and modified amplio2 tileset

Anonymous
Tue 07 May 2013 08:19:19 AM UTC, comment #1:

Which 2.3 version are you using, exactly?
If you're using the Gtk client, it should say on the opening screen, or in Help > About Freeciv.

Can you cause this reliably, and if so, can you give us instructions / savefiles, or at least a hint as to what the circumstances seem to be?

Are you using an unusual ruleset, or anything like that?

Jacob Nevins <jtn>
Project Administrator
Tue 07 May 2013 05:14:59 AM UTC, original submission:

when i get this error freeciv crashes

Anonymous

 

(Note: upload size limit is set to 1024 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #17915:  Myamplio2_Part_03.zip added by None (730kB - application/x-zip-compressed)
file #17914:  Myamplio2_Part_02.zip added by None (1001kB - application/x-zip-compressed)
file #17912:  Myamplio2_Part_01 .zip added by None (635kB - application/x-zip-compressed - The 3 Myamplio2 files go in folder myamplio )
file #17913:  FEW-2_manual_42.sav.bz2 added by None (114kB - application/octet-stream - The 3 Myamplio2 files go in folder myamplio )
file #17907:  !MyRule.serv added by None (120B - application/octet-stream)
file #17908:  Add to Folders.zip added by None (38kB - application/x-zip-compressed)
file #17909:  !MyRule.zip added by None (50kB - application/x-zip-compressed)
file #17910:  Myamplio2.tilespec added by None (5kB - application/octet-stream)
file #17906:  freeciv-server.RPT added by None (1kB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by pepeto (Posted a comment)
  • -unavailable- added by jtn (Posted a comment)
  • -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 13 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 11 May 2013 10:50:46 AM UTCjtnStatusNone=>Confirmed
    Sat 11 May 2013 10:17:42 AM UTCjtnAttached File#17916=>Removed
    Tue 07 May 2013 09:28:48 AM UTCNoneAttached File-=>Added Add to Folders.zip, #17916
    Tue 07 May 2013 09:27:17 AM UTCNoneAttached File-=>Added Myamplio2_Part_03.zip, #17915
    Tue 07 May 2013 09:26:29 AM UTCNoneAttached File-=>Added Myamplio2_Part_02.zip, #17914
    Tue 07 May 2013 09:24:01 AM UTCNoneAttached File-=>Added Myamplio2_Part_01 .zip, #17912
      Attached File-=>Added FEW-2_manual_42.sav.bz2, #17913
    Tue 07 May 2013 09:12:27 AM UTCNoneAttached File-=>Added !MyRule.serv, #17907
      Attached File-=>Added Add to Folders.zip, #17908
      Attached File-=>Added !MyRule.zip, #17909
      Attached File-=>Added Myamplio2.tilespec, #17910
    Tue 07 May 2013 09:12:14 AM UTCjtnRelease2.3=>2.3.4
    Tue 07 May 2013 05:14:59 AM UTCNoneAttached File-=>Added freeciv-server.RPT, #17906
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup