Puntif Report post Posted February 3, 2007 (edited) I'm running Linux (slackware 9.0.0). I was in Idaloran and clicked on the Palon Vertas banner when I got a seg fault. I compiled this client from CVS on Jan 8. Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 16384 (LWP 1379)] 0x404e230f in memcpy () from /lib/libc.so.6 (gdb) bt full #0 0x404e230f in memcpy () from /lib/libc.so.6 No symbol table info available. #1 0x080e0d42 in add_intersect_item (bbox_tree=0xa517c00, index=4681, idx=2) at bbox_tree.c:67 No locals. #2 0x080dead4 in add_items (bbox_tree=0xa517c00, sub_node=3138, in_mask=14) at bbox_tree.c:197 idx1 = 2 idx2 = 4680 size = 2 i = 1 #3 0x080dc972 in check_sub_nodes (bbox_tree=0xa517c00, sub_node=3138, in_mask=15) at bbox_tree.c:270 out_mask = 14 result = 2 idx = 2 #4 0x080dc9de in check_sub_nodes (bbox_tree=0xa517c00, sub_node=3135, in_mask=15) at bbox_tree.c:274 out_mask = 15 result = 2 idx = 2 #5 0x080dc9a9 in check_sub_nodes (bbox_tree=0xa517c00, sub_node=3133, in_mask=15) at bbox_tree.c:273 out_mask = 15 result = 2 idx = 2 #6 0x080dc9a9 in check_sub_nodes (bbox_tree=0xa517c00, sub_node=2928, in_mask=15) at bbox_tree.c:273 out_mask = 15 result = 2 #7 0x080dc9de in check_sub_nodes (bbox_tree=0xa517c00, sub_node=2770, in_mask=15) at bbox_tree.c:274 out_mask = 15 result = 2 idx = 2 #8 0x080dc9de in check_sub_nodes (bbox_tree=0xa517c00, sub_node=2068, in_mask=15) at bbox_tree.c:274 out_mask = 15 result = 2 idx = 2 #9 0x080dc9de in check_sub_nodes (bbox_tree=0xa517c00, sub_node=2065, in_mask=15) at bbox_tree.c:274 out_mask = 15 result = 2 idx = 2 #10 0x080dc9a9 in check_sub_nodes (bbox_tree=0xa517c00, sub_node=2, in_mask=15) at bbox_tree.c:273 out_mask = 15 result = 2 idx = 2 #11 0x080dc9de in check_sub_nodes (bbox_tree=0xa517c00, sub_node=0, in_mask=511) at bbox_tree.c:274 out_mask = 15 result = 2 idx = 2 #12 0x080dcd28 in check_bbox_tree (bbox_tree=0xa517c00) at bbox_tree.c:440 idx = 2#13 0x08083386 in calculate_reflection_frustum (num=0, water_height=-0.25) at frustum.c:448 proj = {25.4545441, 0, 0, 0, 0, 35, 0, 0, 0, 0, -5.2550025, -5.25, 0, 0, 80.6546249, 82.576889} modl = {-0.300705791, 0.674379706, -0.674379706, 0, -0.953716934, -0.212631106, 0.212631106, 0, -0, -0.707106769, -0.707106769, -0, 124.311539, 20.7164898, -31.9505501, 1} clip = {-7.65432882, 23.6032906, 3.54386711, 3.54049349, -24.2764301, -7.4420886, -1.11737704, -1.11631334, -0, -24.7487373, 3.71584773, 3.71231055, 3164.29346, 725.077148, 248.55484, 250.317276} inv = {-0.0118134432, 0.0192679763, 4.36974621, -4.2454567, -0.0374674387, -0.0060749515, -66.5188751, 66.541748, -2.26661712e-09, -0.02020308, 9.5283165, -9.40270901, 9.8304552e-11, 1.6701297e-09, -0.499761879, 0.500238061} pos = {-8.48687267, 133.020157, -18.7964687} p1 = {9.99999985e+30, 9.99999985e+30, -0.25} p2 = {9.99999985e+30, -9.99999985e+30, -0.25} p3 = {-9.99999985e+30, 9.99999985e+30, -0.25} p4 = {-9.99999985e+30, -9.99999985e+30, -0.25} x_min = 9.99999985e+30 x_max = -9.99999985e+30 y_min = 9.99999985e+30 y_max = -9.99999985e+30 x_scaled = 4.27130061e-34 y_scaled = -1.99913502 cur_intersect_type = 0 i = 0 l = 1079591476 start = 0 stop = 0 x = 1124073488 y = 1078835318 #14 0x08085bbd in display_game_handler (win=0xa4fe3b8) at gamewin.c:570 main_count = 3293501 times_FPS_below_3 = 0 next_fps_time = 31038599 last_count = 95 fps = {98, 39, 135, 139, 140} fps_average = 110.199997 shadows_were_disabled = 0 str = "\200\231E\n\0\0\0\0\0\0\0\0\0\0@KXí\006@\b\0\0\00æÿ¿1\235\004@\aüåm°åÿ¿\0\0\0\0\0\0\0\0@\200<Ax\0\001\001\0E\0\0\bÓJ\nÀïL\n\001\0\0\0\001\0\0\0\001\002\0\0LH=Ax\ 0\001\001ÀïL\n\207»\211@ ~M\nðåÿ¿@\200<A @\001@tçÿ¿(æÿ¿É\016¥@@\200<A@\200<A @\001@tçÿ¿\0\0\0\04BY@ @\001@tçÿ¿(æÿ¿tçÿ¿4BY@ >\206±\a\bá\r\0" i = 0 any_reflection = 0 mouse_rate = 15 #15 0x0807b395 in draw_window (win=0xa4fe3b8) at elwindows.c:1056 ret_val = 0 W = (struct wl *) 0xa4f8360 #16 0x0807b90c in display_window (win_id=0) at elwindows.c:1204 No locals. #17 0x08078d9d in display_windows (level=1) at elwindows.c:54 id = -1 next_id = -9999 i = 0 #18 0x08073000 in draw_scene () at draw_scene.c:98 No locals. #19 0x0809cd11 in start_rendering () at main.c:120 event = {type = 24 '\030', active = {type = 24 '\030', gain = 57 '9', state = 100 'd'}, key = {type = 24 '\030', which = 57 '9', state = 100 'd', keysym = { scancode = 2 '\002', sym = 58658687, mod = 1074195800, unicode = 60760}}, motion = {type = 24 '\030', which = 57 '9', state = 100 'd', x = 2, y = 0, xrel = 3967, yrel = 895}, button = {type = 24 '\030', which = 57 '9', button = 100 'd', state = 10 '\n', x = 2, y = 0}, jaxis = {type = 24 '\030', which = 57 '9', axis = 100 'd', value = 2}, jball = {type = 24 '\030', which = 57 '9', ball = 100 'd', xrel = 2, yrel = 0}, jhat = {type = 24 '\030', which = 57 '9', hat = 100 'd', value = 10 '\n'}, jbutton = {type = 24 '\030', which = 57 '9', button = 100 'd', state = 10 '\n'}, resize = {type = 24 '\030', w = 2, h = 58658687}, expose = {type = 24 '\030'}, quit = {type = 24 '\030'}, user = {type = 24 '\030', code = 2, data1 = 0x37f0f7f, data2 = 0x4006ed58}, syswm = {type = 24 '\030', msg = 0x2}} done = 0 network_thread_data = {0xca142d0, 0x80f5dc4} network_thread = (struct SDL_Thread *) 0xcb111d8 message_queue = (struct queue *) 0xca142d0 #20 0x0809cf7a in main (argc=3, argv=0xbfffe774) at main.c:230 No locals Error log: [12:46:50] Downloading http://www.eternal-lands.com/updates133/files.lst from www.eternal-lands.com [12:46:50] Error: Can't open file "commands.lst" [13:30:34] Error: Can't open file "./particles/moon_bubbles1.part" Last message repeated 23 times [19:04:05] Error: Can't open file "./maps/cont2map20_insides.bmp" Edited February 3, 2007 by Puntif Share this post Link to post Share on other sites
Puntif Report post Posted March 10, 2007 I don't see any CVS changes to bbox_tree.c except for the eye candy one so I guess nobody has addressed this. This crash happened again today. It happened on a map transition - I had clicked on the boat banner in VOTD to go to DP. This time I got a little more info from gdb. Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 16384 (LWP 12008)] 0x404e230f in memcpy () from /lib/libc.so.6 (gdb) bt full #0 0x404e230f in memcpy () from /lib/libc.so.6 No symbol table info available. #1 0x080e0d42 in add_intersect_item (bbox_tree=0xa517c00, index=6354, idx=2) at bbox_tree.c:67 No locals. #2 0x080dead4 in add_items (bbox_tree=0xa517c00, sub_node=3953, in_mask=16) at bbox_tree.c:197 idx1 = 2 idx2 = 6352 size = 3 i = 2 #3 0x080dc972 in check_sub_nodes (bbox_tree=0xa517c00, sub_node=3953, in_mask=81) at bbox_tree.c:270 out_mask = 16 result = 2 idx = 2 #4 0x080dc9a9 in check_sub_nodes (bbox_tree=0xa517c00, sub_node=3951, in_mask=217) at bbox_tree.c:273 out_mask = 81 result = 2 idx = 2 #5 0x080dc9a9 in check_sub_nodes (bbox_tree=0xa517c00, sub_node=3934, in_mask=255) at bbox_tree.c:273 out_mask = 217 result = 2 idx = 2 #6 0x080dc9de in check_sub_nodes (bbox_tree=0xa517c00, sub_node=3931, in_mask=255) at bbox_tree.c:274 out_mask = 255 result = 2 idx = 2 #7 0x080dc9a9 in check_sub_nodes (bbox_tree=0xa517c00, sub_node=3916, in_mask=511) at bbox_tree.c:273 out_mask = 255 result = 2 idx = 2 #8 0x080dc9de in check_sub_nodes (bbox_tree=0xa517c00, sub_node=3796, in_mask=511) at bbox_tree.c:274 out_mask = 511 result = 2 idx = 2 #9 0x080dc9de in check_sub_nodes (bbox_tree=0xa517c00, sub_node=3638, in_mask=511) at bbox_tree.c:274 out_mask = 511 result = 2 idx = 2 #10 0x080dc9de in check_sub_nodes (bbox_tree=0xa517c00, sub_node=3238, in_mask=511) at bbox_tree.c:274 out_mask = 511 result = 2 ---Type <return> to continue, or q <return> to quit---q Quit (gdb) frame 1 #1 0x080e0d42 in add_intersect_item (bbox_tree=0xa517c00, index=6354, idx=2) at bbox_tree.c:67 67 memcpy(&bbox_tree->intersect[idx].items[bbox_tree->intersect[idx].count], &bbox_tree->items[index], sizeof(BBOX_ITEM)); (gdb) print bbox_tree->intersect[idx].count $1 = 41 (gdb) print bbox_tree->intersect[idx].items $2 = (struct {...} *) 0x0 (gdb) print bbox_tree->intersect[idx].items[41] Cannot access memory at address 0x854 I don't understand how this bbox code works or I'd take a stab at fixing it. It appears that this particular bbox_tree intersect has a non-0 count but no items at this point in time. Share this post Link to post Share on other sites