Jump to content
Eternal Lands Official Forums
Sign in to follow this  
the_voice

latest cvs segfaults in linux

Recommended Posts

hi, i pulled the latest cvs and compiled it on a debian sid with gcc 4.02

 

snippet from makefile.linux

 

OPTIONS=-DLINUX -DELC -DPNG_SCREENSHOT -DX86_64 -DNEW_WEATHER -DUSE_FRAMEBUFFER -DANTI_ALIAS -DNEW_FRUSTUM

 

PLATFORM=-march=athlon64

 

backtrace

 

~/eternal$ gdb el_debug

GNU gdb 6.3-debian

Copyright 2004 Free Software Foundation, Inc.

GDB is free software, covered by the GNU General Public License, and you are

welcome to change it and/or distribute copies of it under certain conditions.

Type "show copying" to see the conditions.

There is absolutely no warranty for GDB. Type "show warranty" for details.

This GDB was configured as "x86_64-linux"...Using host libthread_db library "/lib/libthread_db.so.1".

 

(gdb) run

Starting program: /home/hmv/eternal/el_debug

[Thread debugging using libthread_db enabled]

[New Thread 46912538067024 (LWP 15215)]

[New Thread 1082132832 (LWP 15218)]

[New Thread 1090525536 (LWP 15219)]

[New Thread 1098918240 (LWP 15220)]

 

Program received signal SIGSEGV, Segmentation fault.

[switching to Thread 46912538067024 (LWP 15215)]

0x0000000000407c62 in display_2d_objects () at 2d_objects.c:551

551 glAlphaFunc(GL_GREATER, obj_2d_list[l]->obj_pointer->alpha_test);

(gdb)

exit

 

(gdb) backtrace

#0 0x0000000000407c62 in display_2d_objects () at 2d_objects.c:551

#1 0x000000000042c1d2 in display_game_handler (win=0x16bbea0) at gamewin.c:628

#2 0x0000000000424e3b in draw_window (win=0x16bbea0) at elwindows.c:995

#3 0x00000000004251e2 in display_window (win_id=Variable "win_id" is not available.

) at elwindows.c:1132

#4 0x0000000000423644 in display_windows (level=1) at elwindows.c:54

#5 0x000000000041f4f5 in draw_scene () at draw_scene.c:94

#6 0x000000000043d3a4 in start_rendering () at main.c:123

#7 0x000000000043d5a0 in main (argc=Variable "argc" is not available.

) at main.c:225

(gdb)

 

 

the client sefaults as soon as you move your character. hope this is somehow a help

Share this post


Link to post
Share on other sites

do the same problems come up if you don't use new_frustrum and use_framebuffer? (these cause compile problems in MSVC, and are quite new, so it seems a good spot to start looking for the fault)

Share this post


Link to post
Share on other sites

ok i tried some variants

 

-DUSE_FRAMEBUFFER works

-DNEW_FRUSTUM segfaults even with or without framebuffer

 

leaving this option out gives a working client :icon4:

Edited by the_voice

Share this post


Link to post
Share on other sites

Xaphier committed a couple of fixes, hopefully -DNEW_FRUSTUM is no longer crashing...

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×