Copyover-7

Posted by Symbiotica on Thu 14 Feb 2002 03:35 AM — 6 posts, 25,005 views.

#0
Greetings all,
I have hacked the Copyover-7 patch code into my server code. It
compiles all nice-nice now. Yet, whenever a player tries to connect I
get a core dump, and sadly I am trying to presently teach myself GDB.
So if anyone has any assistance they are willing to offer, I would be
highly appreciate. Also this gets logged:

realloc failure: Success
Realloc failure @ comm.c:1407

I would assume realloc is a memory macro, but I am still plugging
along in the learning fo some things.

Thanks again in advance for your time,

Evermahn the vagabond Philosopher-hacker

evermahn@kyndig.com
symbiotica.kyndig.com 4242 (may not be up for a bit)
ICQ: 75570391
Australia Forum Administrator #1
Search for gdb on this forum, there are some tips here and there.

realloc is a memory function that lets you take a memory pointer and change the amount of memory allocated to it.
#2
Heyas,

Thank you Nick for your assistance there. I regretfully have been
away for a small time. At any rate, I was talking to a fellow admin
recently and decided to install Samson's Hotboot code instead of
copyover-7 from Erwin. As it stands at present, I have zero (o)
compile time errors. Although this is true, I am getting a problem
with connections, for instance as soon as anyone connects it
crashes(dumping an invisible(???) core file) and restarts. No log file
entry for the crash and I cannot seem to be able to find the core file.
So once more if anyone has any assistance to share, I would greatly
appreciate it.

Regards,
T. Esposito aka Evermahn the vagabond philosopher-hacker

Australia Forum Administrator #3

Are you using Cygwin? Try looking at this post: coinduct,induct,cooutcast,outcast problem. It has an example of looking at the core file.

#4
Heya again,

I really do appreciate this Nick, just to start off. My server is running RedHat 7.2. I get this when I try to connect:

telnet localhost 4242
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Abort (core dumped)
Connection closed by foreign host.
This is me trying to telnet from my shell account obviously. Yet there is no core file or anything in the logs. I am over my head here with nothing, apparently, to go on.

Thanks again in advance for your time,

T. Esposito
Australia Forum Administrator #5
There should be a core file in the directory where the server is running.

You could try running it under gdb.

ie. instead of starting the server the way you are now, do this:


cd area
gdb ../src/smaug
run


This should run smaug "under" gdb. Hopefully then at the point of the crash it will be at the line in question.