(gdb) run Starting program: /data4/Freespace2/fs2_open_d [Thread debugging using libthread_db enabled] [New Thread -1223850272 (LWP 21891)] Future debug output directed to: /home/srdjant/.fs2_open/data/fs2_open.log [New Thread -1225442384 (LWP 21894)] [New Thread -1234191440 (LWP 21895)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1223850272 (LWP 21891)] 0x081d8750 in read_model_file (pm=0xa38c9b0, filename=0x97c76ac "fighter2t-05.pof", n_subsystems=5, subsystems=0xa3db010, ferror=1) at model/modelread.cpp:2234 2234 pm->submodel[n].sub_object_number = n = cfread_int(fp); (gdb) (gdb) bt #0 0x081d8750 in read_model_file (pm=0xa38c9b0, filename=0x97c76ac "fighter2t-05.pof", n_subsystems=5, subsystems=0xa3db010, ferror=1) at model/modelread.cpp:2234 #1 0x081dcd0b in model_load (filename=0x97c76ac "fighter2t-05.pof", n_subsystems=5, subsystems=0xa3db010, ferror=1, duplicate=0) at model/modelread.cpp:3402 #2 0x082e7d1a in ship_create (orient=0x886a12c, pos=0x886a120, ship_type=8, ship_name=0x886a0f8 "Instructor") at ship/ship.cpp:8756 #3 0x08190a4e in parse_create_object_sub (p_objp=0x886a0f8) at mission/missionparse.cpp:2741 #4 0x08190988 in parse_create_object (pobjp=0x886a0f8) at mission/missionparse.cpp:2702 #5 0x08194261 in mission_parse_maybe_create_parse_object (pobjp=0x886a0f8) at mission/missionparse.cpp:4018 #6 0x08197193 in post_process_ships_wings () at mission/missionparse.cpp:5271 #7 0x08198f4b in post_process_mission () at mission/missionparse.cpp:6108 #8 0x08198f39 in parse_mission (pm=0x8864a00, flags=0) at mission/missionparse.cpp:6097 #9 0x08199eda in parse_main (mission_name=0xbfca4e50 "Training-1.fs2", flags=0) at mission/missionparse.cpp:6465 #10 0x0818704e in mission_load (filename_ext=0x84bea40 "Training-1.fs2") at mission/missionload.cpp:319 #11 0x080503ca in game_start_mission () at freespace2/freespace.cpp:3234 #12 0x08059326 in game_enter_state (old_state=1, new_state=43) ---Type to continue, or q to quit--- at freespace2/freespace.cpp:8087 #13 0x080cb85e in gameseq_set_state (new_state=43, override=0) at gamesequence/gamesequence.cpp:528 #14 0x08058223 in game_process_event (current_state=1, event=1) at freespace2/freespace.cpp:7183 #15 0x080cbc0e in gameseq_process_events () at gamesequence/gamesequence.cpp:641 #16 0x0805a856 in game_main (cmdline=0xa1da990 "") at freespace2/freespace.cpp:9108 #17 0x0805a9a4 in main (argc=1, argv=0xbfca51b4) at freespace2/freespace.cpp:9245 (gdb) (gdb) frame 0 #0 0x081d8750 in read_model_file (pm=0xa38c9b0, filename=0x97c76ac "fighter2t-05.pof", n_subsystems=5, subsystems=0xa3db010, ferror=1) at model/modelread.cpp:2234 2234 pm->submodel[n].sub_object_number = n = cfread_int(fp); (gdb) print n $1 = 0 (gdb) print fp $2 = (CFILE *) 0x85e2aa8 (gdb) print pm $3 = (polymodel *) 0xa38c9b0 (gdb) print pm->submodel[n] $4 = {sub_object_number = 0, name = '\0' , movement_type = 0, movement_axis = 0, offset = {{xyz = {x = 0, y = 0, z = 0}, a1d = {0, 0, 0}}}, bsp_data_size = 0, bsp_data = 0x0, geometric_center = {{xyz = {x = 0, y = 0, z = 0}, a1d = {0, 0, 0}}}, rad = 0, min = {{xyz = {x = 0, y = 0, z = 0}, a1d = {0, 0, 0}}}, max = {{ xyz = {x = 0, y = 0, z = 0}, a1d = {0, 0, 0}}}, bounding_box = {{{xyz = { x = 0, y = 0, z = 0}, a1d = {0, 0, 0}}}, {{xyz = {x = 0, y = 0, z = 0}, a1d = {0, 0, 0}}}, {{xyz = {x = 0, y = 0, z = 0}, a1d = {0, 0, 0}}}, {{xyz = {x = 0, y = 0, z = 0}, a1d = {0, 0, 0}}}, {{xyz = { x = 0, y = 0, z = 0}, a1d = {0, 0, 0}}}, {{xyz = {x = 0, y = 0, z = 0}, a1d = {0, 0, 0}}}, {{xyz = {x = 0, y = 0, z = 0}, a1d = {0, 0, 0}}}, {{xyz = {x = 0, y = 0, z = 0}, a1d = {0, 0, 0}}}}, blown_off = 0, my_replacement = 0, i_replace = 0, angs = {p = 0, b = 0, h = 0}, ang_vel = {p = 0, b = 0, h = 0}, ang_acl = {p = 0, b = 0, h = 0}, is_live_debris = 0, num_live_debris = 0, live_debris = {0, 0, 0, 0, 0, 0, 0}, sii = 0x0, is_thruster = 0, is_damaged = 0, parent = 0, num_children = 0, first_child = 0, next_sibling = 0, num_details = 0, details = {0, 0, 0, 0, 0, 0, 0, 0}, num_arcs = 0, arc_pts = {{{{xyz = { x = 0, y = 0, z = 0}, a1d = {0, 0, 0}}}, {{xyz = {x = 0, y = 0, z = 0}, a1d = {0, 0, 0}}}}, {{{xyz = {x = 0, y = 0, z = 0}, a1d = { 0, 0, 0}}}, {{xyz = {x = 0, y = 0, z = 0}, a1d = {0, 0, 0}}}}, {{{ xyz = {x = 0, y = 0, z = 0}, a1d = {0, 0, 0}}}, {{xyz = {x = 0, y = 0, z = 0}, a1d = {0, 0, 0}}}}, {{{xyz = {x = 0, y = 0, z = 0}, a1d = {0, 0, 0}}}, {{xyz = {x = 0, y = 0, z = 0}, a1d = {0, 0, ---Type to continue, or q to quit--- 0}}}}, {{{xyz = {x = 0, y = 0, z = 0}, a1d = {0, 0, 0}}}, {{xyz = { x = 0, y = 0, z = 0}, a1d = {0, 0, 0}}}}, {{{xyz = {x = 0, y = 0, z = 0}, a1d = {0, 0, 0}}}, {{xyz = {x = 0, y = 0, z = 0}, a1d = { 0, 0, 0}}}}, {{{xyz = {x = 0, y = 0, z = 0}, a1d = {0, 0, 0}}}, {{ xyz = {x = 0, y = 0, z = 0}, a1d = {0, 0, 0}}}}, {{{xyz = {x = 0, y = 0, z = 0}, a1d = {0, 0, 0}}}, {{xyz = {x = 0, y = 0, z = 0}, a1d = {0, 0, 0}}}}}, arc_type = "\000\000\000\000\000\000\000", indexed_vertex_buffer = 0, buffer = { >> = {, true>> = { _M_start = 0x0, _M_finish = 0x0, _M_end_of_storage = 0x0}, }, }, render_box_min = {{xyz = {x = 0, y = 0, z = 0}, a1d = {0, 0, 0}}}, render_box_max = {{xyz = {x = 0, y = 0, z = 0}, a1d = {0, 0, 0}}}, use_render_box = 0, render_sphere = 0, use_render_sphere = 0, gun_rotation = false, orientation = {{vec = {rvec = {{xyz = {x = 0, y = 0, z = 0}, a1d = {0, 0, 0}}}, uvec = {{xyz = {x = 0, y = 0, z = 0}, a1d = {0, 0, 0}}}, fvec = {{xyz = {x = 0, y = 0, z = 0}, a1d = {0, 0, 0}}}}, a2d = {{0, 0, 0}, {0, 0, 0}, {0, 0, 0}}, a1d = {0, 0, 0, 0, 0, 0, 0, 0, 0}}}, look_at = 0, dumb_turn_rate = 0, submodel_thruster = { >> = {, true>> = {_M_start = 0x0, _M_finish = 0x0, _M_end_of_storage = 0x0}, }, }} (gdb)