Jump to content
Eternal Lands Official Forums
Puntif

seg fault in new client

Recommended Posts

Running Linux with Nvidia using a client compiled from CVS extracted just after the server was updated. Compiled with the supplied Makefile.linux.

 

0x08089403 in draw_lights () at lights.c:232
232					 vec4[0] = lights_list[l]->pos_x;
(gdb) bt full
#0  0x08089403 in draw_lights () at lights.c:232
	i = 16
	j = 0
	stop = 18
	vec4 = {2.29686831e-41, 6.45858462e-42, 4.2402322e-34, 4.052548e-34}
#1  0x08079923 in display_game_handler (win=0x90653c0) at gamewin.c:597
	main_count = 5559188
	times_FPS_below_3 = 0
	next_fps_time = 12939084
	last_count = 227
	fps = {427, 443, 441, 433, 428}
	fps_average = 434.399994
	shadows_were_disabled = 0
	str = "°Mü\b\0\0\0\0\0\0\0\0\0\0@KXí\006@\b\0\0\0ðáÿ¿1\235\004@\aüåmpáÿ¿\0\0\0\0\0\0\0\0@\0<Ax\0\001\001\0E\0\0Pl\001\t\b\211\003\t\001\0\0\0\001\0\0\
0\001\002\0\0LÈ<Ax\0\001\001\b\211\003\t'$%\0ÈCÃB\0@\0\0þ!\211@\207+\211@p\027\004\tÀáÿ¿@\0<AÃŒ\003\0\0\233\002\0\0øáÿ¿É~¤@@\0<A@\0<AÃŒ\003\0\0\233\002\0\0\207+
\211@ÀS\006\tÀS\006\tñØÿÿøáÿ¿ñØÿÿ"
	y_line = 0
	i = 0
	any_reflection = 0
	mouse_rate = 0
#2  0x08070c97 in draw_window (win=0x90653c0) at elwindows.c:1032
	ret_val = 151409600
	W = (struct wl *) 0x0
#3  0x0807105b in display_window (win_id=151516280) at elwindows.c:1182
No locals.
#4  0x0806ef52 in display_windows (level=1) at elwindows.c:54
	id = -1
	next_id = -9999
	i = 0
#5  0x0806a984 in draw_scene () at draw_scene.c:94
No locals.
#6  0x0808b933 in start_rendering () at main.c:131
	event = {type = 24 '\030', active = {type = 24 '\030', gain = 237 'í', state = 6 '\006'}, key = {
type = 24 '\030', which = 237 'í', state = 6 '\006', keysym = {scancode = 2 '\002', sym = -1082131916, 
  mod = 1074158385, unicode = 47200}}, motion = {type = 24 '\030', which = 237 'í', state = 6 '\006', x = 2, 
y = 0, xrel = -1484, yrel = -16513}, button = {type = 24 '\030', which = 237 'í', button = 6 '\006', 
state = 64 '@', x = 2, y = 0}, jaxis = {type = 24 '\030', which = 237 'í', axis = 6 '\006', value = 2}, 
 jball = {type = 24 '\030', which = 237 'í', ball = 6 '\006', xrel = 2, yrel = 0}, jhat = {type = 24 '\030', 
which = 237 'í', hat = 6 '\006', value = 64 '@'}, jbutton = {type = 24 '\030', which = 237 'í', 
button = 6 '\006', state = 64 '@'}, resize = {type = 24 '\030', w = 2, h = -1082131916}, expose = {
type = 24 '\030'}, quit = {type = 24 '\030'}, user = {type = 24 '\030', code = 2, data1 = 0xbf7ffa34, 
data2 = 0x40065b31}, syswm = {type = 24 '\030', msg = 0x2}}
	done = 0
	network_thread_data = {0x42c15798, 0x80cea64}
	music_thread = (struct SDL_Thread *) 0x42c11658
	network_thread = (struct SDL_Thread *) 0x42c11978
	message_queue = (struct queue *) 0x42c15798
#7  0x0808bb53 in main (argc=208, argv=0xbfffe344) at main.c:247
No locals.
#8  0x40473bb4 in __libc_start_main () from /lib/libc.so.6
No symbol table info available.

Share this post


Link to post
Share on other sites

It happened again in the same spot with different values for the variables:

(gdb) bt full
#0  0x08089403 in draw_lights () at lights.c:232
	i = 76
	j = 1
	stop = 94
	vec4 = {2.91999817, 2.3599987, 1.95999908, 1}
#1  0x08079923 in display_game_handler (win=0x90653b8) at gamewin.c:597
	main_count = 1943764
	times_FPS_below_3 = 0
	next_fps_time = 13284434
	last_count = 29
	fps = {98, 98, 90, 98, 92}
	fps_average = 95.1999969
	shadows_were_disabled = 0
	str = "°Mü\b\0\0\0\0\0\0\0\0\0\0@KXí\006@\t\0\0\0`àÿ¿1\235\004@\aüåmàßÿ¿\0\0\0\0\0\0\0\0@\0<Ax\0\001\001\0E\0\0Hl\001\t\0\211\003\t\001\0\0\0\001\0\0\0\001\002\0\0LÈ<Ax\0\001\001\0\211\003\t'$%\0øF°B\0@\0\0þ!\211@\207+\211@`\027\004\t0àÿ¿@\0<AÃ\003\0\0Ä\002\0\0hàÿ¿É~¤@@\0<A@\0<AÃ\003\0\0Ä\002\0\0\207+\211@¸S\006\t¸S\006\tñØÿÿhàÿ¿ñØÿÿ"
	y_line = 0
	i = 0
	any_reflection = 0
	mouse_rate = 0
#2  0x08070c97 in draw_window (win=0x90653b8) at elwindows.c:1032
	ret_val = 151409592
	W = (struct wl *) 0x0
#3  0x0807105b in display_window (win_id=1) at elwindows.c:1182
No locals.
#4  0x0806ef52 in display_windows (level=1) at elwindows.c:54
	id = -1
	next_id = -9999
	i = 0
#5  0x0806a984 in draw_scene () at draw_scene.c:94
No locals.
#6  0x0808b933 in start_rendering () at main.c:131
	event = {type = 24 '\030', active = {type = 24 '\030', gain = 237 'í', state = 6 '\006'}, key = {type = 24 '\030', 
which = 237 'í', state = 6 '\006', keysym = {scancode = 3 '\003', sym = -1082131916, mod = 1074158385, unicode = 32696}}, motion = {
type = 24 '\030', which = 237 'í', state = 6 '\006', x = 3, y = 0, xrel = -1484, yrel = -16513}, button = {type = 24 '\030', 
which = 237 'í', button = 6 '\006', state = 64 '@', x = 3, y = 0}, jaxis = {type = 24 '\030', which = 237 'í', axis = 6 '\006', 
value = 3}, jball = {type = 24 '\030', which = 237 'í', ball = 6 '\006', xrel = 3, yrel = 0}, jhat = {type = 24 '\030', 
which = 237 'í', hat = 6 '\006', value = 64 '@'}, jbutton = {type = 24 '\030', which = 237 'í', button = 6 '\006', state = 64 '@'}, 
 resize = {type = 24 '\030', w = 3, h = -1082131916}, expose = {type = 24 '\030'}, quit = {type = 24 '\030'}, user = {
type = 24 '\030', code = 3, data1 = 0xbf7ffa34, data2 = 0x40065b31}, syswm = {type = 24 '\030', msg = 0x3}}
	done = 0
	network_thread_data = {0x42b07408, 0x80cea64}
	music_thread = (struct SDL_Thread *) 0x42b05448
	network_thread = (struct SDL_Thread *) 0x42b06958
	message_queue = (struct queue *) 0x42b07408
#7  0x0808bb53 in main (argc=988, argv=0xbfffe1b4) at main.c:247
No locals.
#8  0x40473bb4 in __libc_start_main () from /lib/libc.so.6
No symbol table info available.

 

Error log contains:

Log started at 2006-02-09 08:16:13

Error: Can't open file "./textures/fontv.bmp"
Error: Can't open file "quest.log"
Downloading http://www.eternal-lands.com/updates/files.lst from www.eternal-lands.com
Error: Can't open file "commands.lst"

Share this post


Link to post
Share on other sites

Same here with a CVS client, but only from time to time when i try to log on.

 

(gdb) backtrace

#0 0x404e5a75 in _int_free () from /lib/tls/libc.so.6

#1 0x404e5f0b in free () from /lib/tls/libc.so.6

#2 0x080b48dd in handle_update_download (get=0x40596ff4) at update.c:100

#3 0x080743cd in HandleEvent (event=0xbfffd650) at events.c:225

#4 0x0808be31 in start_rendering () at main.c:108

#5 0x0808c106 in main (argc=1079609288, argv=0xbfffd744) at main.c:247

(gdb)

 

Maybe i should mention, that i try to log on on a 2nd account, meaning i try to run 2 clients at the same time.

 

Piper

Edited by The_Piper

Share this post


Link to post
Share on other sites

Same here with a CVS client, but only from time to time when i try to log on.

 

(gdb) backtrace

#0 0x404e5a75 in _int_free () from /lib/tls/libc.so.6

#1 0x404e5f0b in free () from /lib/tls/libc.so.6

#2 0x080b48dd in handle_update_download (get=0x40596ff4) at update.c:100

#3 0x080743cd in HandleEvent (event=0xbfffd650) at events.c:225

#4 0x0808be31 in start_rendering () at main.c:108

#5 0x0808c106 in main (argc=1079609288, argv=0xbfffd744) at main.c:247

(gdb)

 

Maybe i should mention, that i try to log on on a 2nd account, meaning i try to run 2 clients at the same time.

 

Piper

There was a patch made shortly after the update that should fix that free problem, that client calls itself 1.2.0p1

Share this post


Link to post
Share on other sites

I got a fresh cvs download last night and I'm still getting my original problem in draw_lights.

 

I never had piper's problem with handle_update_download so I don't know about that one.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×