Author Topic: Linux segfault  (Read 3373 times)

0 Members and 1 Guest are viewing this topic.

Offline yabolus

  • 21
Hi,
this Mantis thingy's not working (didn't get the e-mail with password - yes, I chcecked the spam), so I'm posting in here.

Version is the latest in the CVS tree, compiled by myself with GCC 4.2.3

It's been been broken for quite some time now, and that's why I'm posting it here

it crashes every time when something is about to jump out of a Knossos portal.

Here's what gdb says:

Code: [Select]
(gdb) bt full
#0  position_ship_for_knossos_warpin (p_objp=0xb44c2640) at mission/missionparse.cpp:2695
        so = (ship_obj *) 0x95b7d40
        objp = (object *) 0x908ddc0
        new_point = {{xyz = {x = -1.02482605, y = 4.58924162e-33, z = -1.02486944}, a1d = {-1.02482605, 4.58924162e-33, -1.02486944}}}
        pm = (polymodel *) 0xc1d39e0
        dist = <value optimized out>
#1  0x081b6007 in parse_create_object_sub (p_objp=0xb44c2640) at mission/missionparse.cpp:2891
        sexp = <value optimized out>
        i = <value optimized out>
        j = <value optimized out>
        k = <value optimized out>
        objnum = 472
        shipnum = 9
        aip = <value optimized out>
        ptr = <value optimized out>
        shipp = (ship *) 0x91a3f78
        sssp = <value optimized out>
        texture_file = "\035\000\000\000\037���\000\200\000\000\000\200\000\000\000\200\000\000\037��������\000\000"
        pm = <value optimized out>
#2  0x081b963e in parse_create_object (pobjp=0xb44c2640) at mission/missionparse.cpp:2837
        dfi = {early_return_condition = 88, parameter_variables = {int_value = 152388456, objp_value = 0x0}, maintained_variables = {
    int_value = -1081921656, objp_value = 0xb44c2640}}
        objp = <value optimized out>
#3  0x081b9758 in mission_did_ship_arrive (objp=0xb44c2640) at mission/missionparse.cpp:7205
        object_num = -1
        should_arrive = <value optimized out>
#4  0x081b9872 in mission_maybe_make_ship_arrive (p_objp=0xb44c2640) at mission/missionparse.cpp:7237
        objnum = <value optimized out>
#5  0x081ba31f in mission_eval_arrivals () at mission/missionparse.cpp:7371
        rship = <value optimized out>
        i = 5
        rship = <value optimized out>
#6  0x081ba6bb in mission_parse_eval_stuff () at mission/missionparse.cpp:7737
No locals.
#7  0x080550ff in game_simulation_frame () at freespace2/freespace.cpp:5954
        moveup = (ship_obj *) 0x0
#8  0x0805a315 in game_frame (paused=0) at freespace2/freespace.cpp:6353
        actually_playing = 1
        eye_pos = {{xyz = {x = 1.68155816e-44, y = -1.02577507, z = -1.02490902}, a1d = {1.68155816e-44, -1.02577507, -1.02490902}}}
        eye_orient = {{vec = {rvec = {{xyz = {x = 4.98609944e-34, y = 0, z = 2.80259693e-45}, a1d = {4.98609944e-34, 0, 2.80259693e-45}}},
      uvec = {{xyz = {x = -1.0249052, y = 4.02211463e-34, z = 0.0160064697}, a1d = {-1.0249052, 4.02211463e-34, 0.0160064697}}}, fvec = {{
          xyz = {x = -1.02490807, y = -1.02491093, z = 2.80259693e-45}, a1d = {-1.02490807, -1.02491093, 2.80259693e-45}}}}, a2d = {{
        4.98609944e-34, 0, 2.80259693e-45}, {-1.0249052, 4.02211463e-34, 0.0160064697}, {-1.02490807, -1.02491093, 2.80259693e-45}}, a1d = {
      4.98609944e-34, 0, 2.80259693e-45, -1.0249052, 4.02211463e-34, 0.0160064697, -1.02490807, -1.02491093, 2.80259693e-45}}}
#9  0x0805a763 in game_do_frame () at freespace2/freespace.cpp:6794
No locals.
#10 0x080c8a96 in gameseq_process_events () at gamesequence/gamesequence.cpp:662
        event = <value optimized out>
        old_state = <value optimized out>
#11 0x0805645e in game_main (cmdline=0x991f9c0 "-spec") at freespace2/freespace.cpp:9141
        state = <value optimized out>
#12 0x080568ed in main (argc=12, argv=0xbf833244) at freespace2/freespace.cpp:9282
        result = <value optimized out>
        i = 12
        len = <value optimized out>
        userdir = "/home/piotrek/.fs2_open/\000\000\000\020\002\000\000@\000\000\000\000\000\000\000�)շ\200�o\b\0241\203�\234�o\b(1\203� \002\000\000I�\001\000\200�o\b\0241\203�\234�o\b(1\203�R\232\024\b\214�o\b��з@\001ѷ��\221\t��\221\td�·��\221\t\000\000\000\000\f\002\000\000Y�\001\000��\221\t��з\037\000\000\000��\221ff\000\000\000C\000\000\000E\000\000\000\232\000\000\000X1\203�<�\v\b�z?\b�U?\b��[\b<����<���\\H\bx1\203�\222�\004\b\230"...


I tried to run the debug build, but the compilation crashed with --enable-debug

I hope this helped, feel free to ask for more info.
« Last Edit: February 22, 2008, 12:57:51 pm by yabolus »

 

Offline taylor

  • Super SCP/Linux Guru
  • Moderator
  • 212
    • http://www.icculus.org/~taylor
Are you using HEAD or the stable branch?  HEAD is pretty much a lost cause at the moment, so I would highly recommend using the stable branch (fs2_open_3_6_9).

We have moved from CVS to SVN recently however.  That hasn't been announced yet since there are still some repo organization changes coming that will make the checkout instructions different.  In the meantime you can just get the stable branch from SVN with this:
svn co svn://svn.icculus.org/fs2open/branches/fs2_open_3_6_9/fs2_open fs2_open_3_6_9
Just be sure not to write that in stone, since everything is going to be moving around some more before we're done.

If you still have the same crash and build issues with a new checkout let us know.

 

Offline yabolus

  • 21
You know, I'm not the one who you'd expect to use a stable branch ;]
and I guess the new beta mediaVPs won't work with 3.6.9?

I think I'll just keep trying with 3.6.10 ;P

Oh, and I tried trunk from svn and it's still broken.

 

Offline taylor

  • Super SCP/Linux Guru
  • Moderator
  • 212
    • http://www.icculus.org/~taylor
The stable branch is 3.6.10, actually.  We just never renamed it to be for 3.6.10.  Like I said, we've got to reorganize a little bit. ;)

The trunk is for 3.7 basically, and is seriously filled with bugs.  So even if you have problems with that particular code, we aren't going to spend time fixing any of the problems.  All of the work is going into what will be 3.6.10, which means the stable (*3_6_9) branch.

 

Offline yabolus

  • 21
Hell, why didn't you say that in the first place? ;D
Yeah, the stable works great for me, thanks ;)