URL:
  <http://gna.org/bugs/?22562>

                 Summary: Server segfault in fair island map generator
                 Project: Freeciv
            Submitted by: jtn
            Submitted on: Tue 02 Sep 2014 22:14:32 BST
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
                  Status: None
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
                 Release: 
         Discussion Lock: Any
        Operating System: GNU/Linux
         Planned Release: 2.5.0-beta2, 2.6.0

    _______________________________________________________

Details:

S2_5 r26195. Started a standalone server with


set generator fair
set revealmap start


and got a segfault on starting the game:


#0  fair_map_island_new (size=95, startpos_num=1) at mapgen.c:3071
        terrain = {{count = 0, target = MG_TEMPERATE, prefer = MG_GREEN,
            avoid = MG_MOUNTAINOUS}, {count = 0, target = MG_FOLIAGE,
            prefer = MG_TEMPERATE, avoid = 4294967295}, {count = 0,
            target = MG_DRY, prefer = MG_TEMPERATE, avoid = MG_GREEN}, {
            count = 0, target = MG_MOUNTAINOUS, prefer = MG_GREEN,
            avoid = 4294967295}, {count = 0, target = MG_MOUNTAINOUS,
            prefer = 4294967295, avoid = MG_GREEN}, {count = 0,
            target = MG_WET, prefer = MG_TEMPERATE, avoid = MG_FOLIAGE}}
        pisland = 0x14f7b20
        land_tiles = {0x14fbaa0, 0x14fad20, 0x14fb400, 0x14fbac0, 0x14fb3e0,
          0x14fc180, 0x14fba80, 0x14fc160, 0x14fc820, 0x14fa660, 0x14fad00,
          0x14fb3c0, 0x14f98e0, 0x14f9fa0, 0x14fa680, 0x14f9f80, 0x14fa640,
          0x14fad40, 0x14f98c0, 0x14f9f60, 0x14fa620, 0x14face0, 0x14f9200,
          0x14fc1a0, 0x14fc840, 0x14fcf00, 0x14f91e0, 0x14f98a0, 0x14f9f40,
          0x14fc860, 0x14fcf20, 0x14fd5c0, 0x14fa600, 0x14facc0, 0x14fb3a0,
          0x14faca0, 0x14fb380, 0x14fba40, 0x14fba20, 0x14f9fc0, 0x14fcf40,
          0x14f9900, 0x14f8b60, 0x14f84a0, 0x14f91c0, 0x14f8b40, 0x14fc880,
          0x14fdca0, 0x14fc1e0, 0x14f8480, 0x14f8b20, 0x14fe360, 0x14fd5a0,
          0x14f9240, 0x14fa6a0, 0x14fdcc0, 0x14fa5e0, 0x14fcee0, 0x14f8b80,
          0x14f8460, 0x14fc0e0, 0x14fea20, 0x14f9fe0, 0x14f9220, 0x14fbb00,
          0x14fdc80, 0x14f9920, 0x14fc780, 0x14fc1c0, 0x14fe340, 0x14f9f20,
          0x14f84c0, 0x14fb440, 0x14fd580, 0x14fd5e0, 0x14f7e00, 0x14fea40,
          0x14fc8a0, 0x14ff0e0, 0x14f7dc0, 0x14f7de0, 0x14fb460, 0x14fac80,
          0x14f8440, 0x0, 0x0, 0x7fff0de9b620, 0x100000000, 0x1, 0x100000000,
          0x7fff0de9b6d0, 0x1426320, 0x0, 0x2, 0x1426320, 0x0, 0x14262b8,
          0x7fff0de9b770, 0x42, 0x7fc5febd0bc5, 0x7fff0de9b700, 0xb00b80,
          0x7fff0de9b700, 0x1000, 0x1426400, 0x7fc5febcf0cf, 0x42, 0x62c2d8,
          0x6dc94b, 0x7fff0de9b670, 0x7fff0de9b678, 0x7fff0de9b680,
          0x7fff0de9b688, 0x7fff0de9b6d0, 0x664ee6, 0x1000, 0x0, 0xfbe,
          0x7fff0de9b7b2, 0x7fc5fec26533, 0x14294fc, 0x7fc5fef66260,
          0x7fc5fef66260, 0x7fc600495000, 0x41, 0x7fc5fec263fa,
          0x7fc5f7b9930c, 0x41, 0x7fc5fef66260, 0xb00bc1, 0x0,
0x7fc5fec27b65,
          0x41, 0x7fc5fec26cd5, 0x7fc5fef66260, 0x41, 0xb00b80, 0x0,
          0x7fff0de9ce00, 0x7fc5fec1c29d, 0x7fc5fef66260, 0x7fc5fec1b9ab,
          0x7fc5fef66260, 0x62c99d, 0x17632e0, 0x3000000018, 0x7fff0de9c840,
          0x7fff0de9c780, 0x7461657243203a32, 0x616d206120676e69,
          0x7a697320666f2070, 0x3720782034352065, 0x38383833203d2032,
          0x282073656c697420, 0x7165722030303034, 0x2e29646574736575,
          0x7fff0de9000a, 0x7fc5febcf9a4, 0x17632e0, 0x100000000000000,
          0x6620635b01192f00, 0x3030423823223d67, 0x207461425d223030,
          0x68742073656c7572, 0x6c6f676e6f4d2065, 0x5d632f5b2e73, 0x0, 0x2,
          0x1425c20, 0x0, 0x1425bb8, 0x7fff0de9b9c0, 0x1b, 0x7fc5febd0bc5,
          0x7fff0de9b900, 0xb00b80, 0x7fff0de9b900, 0x1000, 0x1425d00,
          0x7fc5febcf0cf, 0x1b, 0x62c2d8, 0x6dc94b, 0x7fff0de9b8c0,
          0x7fff0de9b8c8, 0x7fff0de9b8d0, 0x7fff0de9b8d8, 0x7fff0de9b920,
          0x664ee6, 0x1000, 0x0, 0xfe5, 0x7fff0de9b9db, 0x7fc5fec26533, 0x0,
          0x7fc5fef66260, 0x7fc5fef66260, 0x7fc600495000, 0x1a,
          0x7fc5fec263fa...}
        pftile = <optimised out>
        pftile2 = <optimised out>
        fantasy = 38
        i = 84
        j = <optimised out>
        k = <optimised out>
        __FUNCTION__ = "fair_map_island_new"
#1  0x000000000046a70d in map_generate_fair_islands () at mapgen.c:3509
        deepest_ocean = 0xad40a0
        pmap = <optimised out>
        pisland = <optimised out>
        playermass = <optimised out>
        islandmass1 = 95
        islandmass2 = 27
        islandmass3 = 13
        min_island_size = 2
        players_per_island = 1
        teams_num = 0
        team_players_num = 0
        single_players_num = 5
        i = <optimised out>
        iter = <optimised out>
        done = true
        __FUNCTION__ = "map_generate_fair_islands"
#2  0x000000000046e2f5 in map_fractal_generate (autosize=true,
    initial_unit=0xae1300) at mapgen.c:1409
        rstate = {v = {2767346871, 4011673439, 4154669460, 4130063792,
            3926256600, 3323533027, 484973586, 2500170027, 751055712,
            3729970459, 3217310402, 2119361596, 95487726, 3817543263,
            3761899447, 2787005141, 3727074614, 2639574763, 3282074048,
            1850807031, 2781221597, 3680655567, 4047349839, 1355980268,
            2502703025, 3102197793, 643082070, 2706616848, 2536193010,
            2664924901, 2027824186, 2826101649, 3462866124, 1902912102,
            3633666429, 3682560590, 3764547824, 2098528289, 64113212,
            2775150270, 3927098024, 1571191394, 3764276306, 595754140,
            1928131278, 4210305675, 2764917206, 2527219751, 4245838093,
            1306167725, 185765648, 5615925, 3712636289, 990416326,
1533909141,
            3608293370}, j = 7, k = 38, x = 6, is_init = true}
        seed_rand = <optimised out>
        __FUNCTION__ = "map_fractal_generate"
#3  0x000000000043913d in srv_ready () at srv_main.c:2570
        i = <optimised out>
        utype = <optimised out>
        sucount = 5
        retry_ok = true
        max = 2
        created = <optimised out>
        __FUNCTION__ = "srv_ready"
#4  0x0000000000439de2 in srv_main () at srv_main.c:2799
        __FUNCTION__ = "srv_main"
#5  0x0000000000432582 in main (argc=<optimised out>, argv=0x7fff0de9d8b8)
    at civserver.c:454
        inx = 3
        showhelp = <optimised out>
        showvers = <optimised out>
        option = <optimised out>
        __FUNCTION__ = "main"





    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?22562>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to