Crash after server move
"Valnir" <[email protected]> Tue, 27 Mar 2007 21:10:07 -0400
| Newsgroups | gmane.games.devel.mud.rom |
|---|---|
| Message-ID | <000001c770d5$d33158c0$79940a40$@com> |
We're getting ready to port our mud to a new server and we're having a =
bit
of an issue. Everything compiles clean, but when we login we get past =
our
account login and when we select what character to play the mud crashes.
=A0
Program terminated with signal 11, Segmentation fault.
#0=A0 0x080b373c in set_host (ch=3D0xb74f63bc, d=3D0xb74f5240) at =
comm.c:5793
5793=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =
free_string(ch->usrdata->alt_hosts[h]);
(gdb) where
#0=A0 0x080b373c in set_host (ch=3D0xb74f63bc, d=3D0xb74f5240) at =
comm.c:5793
#1=A0 0x080a905c in nanny (d=3D0xb74f5240, argument=3D0xb74f5661 =
"Valnir") at
comm.c:2560
#2=A0 0x080a4a49 in game_loop_unix (control=3D4) at comm.c:885
#3=A0 0x080a4424 in main (argc=3D2, argv=3D0xbf911974) at comm.c:490
(gdb)=20
=A0
It's crashing while trying to update the listing of hosts that a players =
has
connected from.
=A0
=A0=A0=A0 /* consolidate list and remove the current host from the list, =
if needed
*/
=A0=A0=A0 for ( h =3D 0; h < MAX_HOSTS; h++ )
=A0=A0=A0 {
=A0=A0=A0=A0=A0=A0=A0 if ( !str_cmp( ch->usrdata->alt_hosts[h], d->host =
) )
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 continue;
=A0
=A0=A0=A0=A0=A0=A0=A0 if ( !IS_NULLSTR(ch->usrdata->alt_hosts[h]) )
=A0=A0=A0=A0=A0=A0=A0 {
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 hosts[i++] =3D =
str_dup(ch->usrdata->alt_hosts[h]);
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =
free_string(ch->usrdata->alt_hosts[h]);
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 ch->usrdata->alt_hosts[h] =3D =
&str_empty[0];
=A0=A0=A0=A0=A0=A0=A0 }
=A0=A0=A0 }
The new server is running GCC 4.1.1 and any help would be greatly
appreciated. Thanks!
=A0
- Valnir
=A0
--
ROM mailing list
[email protected]
Unsubscribe here ->>> http://www.rom.org/cgi-bin/mailman/listinfo/rom