View Single Post
POD-Bot mm build for x86-64 segfaults (continuation)
Old
  (#4)
Lazarus Long
Member
 
Lazarus Long's Avatar
 
Status: Offline
Posts: 27
Join Date: Feb 2005
Default POD-Bot mm build for x86-64 segfaults (continuation) - 18-02-2005

Hello, everybody:

Sorry about this, but over the last 14 years I didn't even thought in source code, programming, debugging and the like, so I'm a bit rusty.

I know what you all are thinking and you are right, of course that I didn't include the most important piece of information, sorry.

Here it goes, I recompiled the module with "-O0 -g" and ran gdb on it, and here is the output (cstrike-standard.debug.zip), once again I'm sorry for my previous incomplete information.

As you can see on the last lines of the text the problem seems to be in waypoint.cpp at line 2460. The list refers two memset() so it might be a memory alocation problem (as I recall a Segmentation fault usually is, but it was a long time ago):
Code:
WaypointLoad ();
InitVisTab ();
InitExperienceTab ();

// Initialise the Client Struct for welcoming and keeping track who's connected
memset (clients, 0, sizeof (clients));

// Initialize the bots array of structures
memset (bots, 0, sizeof (bots));
Best regards,

(After re-reading my last post I realized that the final comment might look a litle harsh since I don't usually use emoticons, I hope that everybody understands that I was joking, I didn't intend to bash anybody)
Attached Files
File Type: zip cstrike-standard.debug.zip (2.8 KB, 441 views)

Last edited by Lazarus Long; 18-02-2005 at 11:11.. Reason: Once again spellchecking...
  
Reply With Quote