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

crash in free_md2()

Recommended Posts

I have been running the cvs client under gdb just in case and I got a crasher yesterday in free_md2() and after stepping through it this seems to be the cause:

 

in free_md2() the first looping through md2_ptr->numFrames it crashes since numFrames seems to be 0. so either there are md2's with no Frames loaded or it is something else causing this.

 

If numFrames indeed can be 0 then it might be a good idea to add a check before looping or accessing offsetFrames[].

Share this post


Link to post
Share on other sites

if md2_ptr->numFrames == 0, it doesn't go through the loop, so that can't be the problem. I suspect the problem lies elsewhere, and has nothing to do with free_md2. From when was your CVS, and what were you doing when it crashed?

Share this post


Link to post
Share on other sites

of course silly me.

 

then its some kind of memory problem somewhere. At moment I cant recall what i was doing, it wasnt anything special thats for sure.

 

I also got a crash today while being afk from keyboard 30 minutes, the culprit this time was nvidia drivers and i suspect it tried to do screen updates while my linux box was kicked into screensaver mode.

 

I will keep running under gdb and report whatever problems i find.

 

I got the source from cvs a couple of days ago

Share this post


Link to post
Share on other sites

I have fixed a couple of problems in the past few days, but that's not saying there exist no other. If you can please, update cvs and keep trying. And thanks for reporting.

Share this post


Link to post
Share on other sites
I also got a crash today while being afk from keyboard 30 minutes, the culprit this time was nvidia drivers and i suspect it tried to do screen updates while my linux box was kicked into screensaver mode.

I'm still wondering why anyone would buy a nVidia card. Especially for a linux machine.

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.

×