03 Oct, 2009, Xrakisis wrote in the 1st comment:
Votes: 0
Hi all,
I compiled AssaultMud with a lot of warnings but nothing that stopped it.
When i put my name in it crashes it..

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 5372)]
nanny (d=0x13140bd8, argument=0x13141ff9 "xrakisis") at comm.c:2323
2323 while ( isspace(*argument) )
(gdb) bt
#0 nanny (d=0x13140bd8, argument=0x13141ff9 "xrakisis") at comm.c:2323
#1 0x0806b93c in game_loop_unix (control=5) at comm.c:968
#2 0x0806bd72 in main (argc=Cannot access memory at address 0x4ff
) at comm.c:531


void nanny( DESCRIPTOR_DATA *d, char *argument )
{
char buf[MAX_STRING_LENGTH];
char msg[MAX_STRING_LENGTH];
CHAR_DATA *ch;
char *pwdnew;
char *p;
int lines;
bool fOld;

while ( isspace(*argument) )
argument++;


ch = d->character;
03 Oct, 2009, bbailey wrote in the 2nd comment:
Votes: 0
Xrakisis said:
Hi all,
I compiled AssaultMud with a lot of warnings but nothing that stopped it.
When i put my name in it crashes it..


What environment (OS, compiler, etc) are you building and running the mud in? Have you made any modifications to the source or build process? Are you trying to login an existing character, or is "xrakisis" a new player?

I downloaded the assault_coding.tar.gz package from the repository here at mudbytes and I'm not encountering this problem when creating a new character, or when trying to logoff and login to that same character again. I'm running Ubuntu 8.10 on x86 (32bit) with gcc 4.3.2. I removed extraneous libraries that my environment doesn't require (see patch below) from the build process, but otherwise have not modified anything within the package.

— a/src/Makefile
+++ b/src/Makefile
@@ -19,8 +19,8 @@ C_FLAGS = -O -g3 -Wall -DACK_43 $(PROF) $(NOCRYPT)
#C_FLAGS = -g3 -Wall ($PROF) $(NOCRYPT) -DOLD_RAND -Dunix
#-DDEBUG_MEM -DDEBUG_MEM_CORRUPT
# MCCP
-# L_FLAGS = -O -g $(PROF)
-L_FLAGS = -O -g $(PROF) -lpthread -lcrypt -lnsl -lm -lc -lnss_files -lnss_dns -lresolv -lc -lnss_files -lnss_dns -lresolv
+L_FLAGS = -O -g $(PROF)
+# L_FLAGS = -O -g $(PROF) -lcrypt -lnsl -lm -lc -lnss_files -lnss_dns -lresolv -lc -lnss_files -lnss_dns -lresolv
# End MCCP
#L_FLAGS = $(PROF)
03 Oct, 2009, Xrakisis wrote in the 3rd comment:
Votes: 0
Linux 2.4.31.

i did the changes you did and now its working fine. Thanks. :)
03 Oct, 2009, Xrakisis wrote in the 4th comment:
Votes: 0
Anyone know how you find mobs with Assaultmud?
03 Oct, 2009, Omega wrote in the 5th comment:
Votes: 0
There are none!

;)


Assault is all PVP and RTS. Last I checked, there wasn't any mobiles in the game.
09 Nov, 2009, Zeno wrote in the 6th comment:
Votes: 0
Xrakisis, did you fix this? Someone is looking for an AssaultMUD to play (on TMC).

I'm encountering this same problem.
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 2040)]
nanny (d=0x131430b8, argument=0x131444d9 "avona") at comm.c:2323
2323 while ( isspace(*argument) )
(gdb) bt
#0 nanny (d=0x131430b8, argument=0x131444d9 "avona") at comm.c:2323
#1 0x080633cf in game_loop_unix (control=7) at comm.c:968
#2 0x08062ee4 in main (argc=2, argv=0xbffff854) at comm.c:531
(gdb) p argument
$1 = 0x131444d9 "avona"
(gdb) p *argument
$2 = 97 'a'
(gdb) f 0
#0 nanny (d=0x131430b8, argument=0x131444d9 "avona") at comm.c:2323
2323 while ( isspace(*argument) )
(gdb) list
2318 char *pwdnew;
2319 char *p;
2320 int lines;
2321 bool fOld;
2322
2323 while ( isspace(*argument) )
2324 argument++;
2325
2326 ch = d->character;
2327


[EDIT] Ah right, bbailey's fix works.
09 Nov, 2009, bbailey wrote in the 7th comment:
Votes: 0
Zeno said:
Xrakisis, did you fix this? Someone is looking for an AssaultMUD to play (on TMC).

I'm encountering this same problem.
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 2040)]
nanny (d=0x131430b8, argument=0x131444d9 "avona") at comm.c:2323
2323 while ( isspace(*argument) )
(gdb) bt
#0 nanny (d=0x131430b8, argument=0x131444d9 "avona") at comm.c:2323
#1 0x080633cf in game_loop_unix (control=7) at comm.c:968
#2 0x08062ee4 in main (argc=2, argv=0xbffff854) at comm.c:531
(gdb) p argument
$1 = 0x131444d9 "avona"
(gdb) p *argument
$2 = 97 'a'
(gdb) f 0
#0 nanny (d=0x131430b8, argument=0x131444d9 "avona") at comm.c:2323
2323 while ( isspace(*argument) )
(gdb) list
2318 char *pwdnew;
2319 char *p;
2320 int lines;
2321 bool fOld;
2322
2323 while ( isspace(*argument) )
2324 argument++;
2325
2326 ch = d->character;
2327


Earlier:

Xrakisis said:
Linux 2.4.31.

i did the changes you did and now its working fine. Thanks. :)


The changes he's referring to are the patch I posted above, which removes unnecessary libraries from the build process. No multithreading, e.g., is used in the source yet the pthread library is linked and gdb detects multiple thread contexts. This is likely a key part of the issue but I'm not familiar enough with pthreads to comment on it specifically.

Are you building without the unused libraries and still having problems?

Edit: Ninja'd.
0.0/7