Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ SMAUG ➜ SMAUG coding ➜ Copyover-7

Copyover-7

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Symbiotica   (2 posts)  Bio
Date Thu 14 Feb 2002 03:35 AM (UTC)
Message
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
Top

Posted by Nick Gammon   Australia  (23,162 posts)  Bio   Forum Administrator
Date Reply #1 on Thu 14 Feb 2002 06:38 AM (UTC)
Message
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.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Symbiotica   (2 posts)  Bio
Date Reply #2 on Thu 21 Feb 2002 04:01 AM (UTC)
Message
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

Top

Posted by Nick Gammon   Australia  (23,162 posts)  Bio   Forum Administrator
Date Reply #3 on Thu 21 Feb 2002 04:12 AM (UTC)
Message

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


- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Evermahn   (3 posts)  Bio
Date Reply #4 on Fri 22 Feb 2002 12:34 AM (UTC)
Message
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
Top

Posted by Nick Gammon   Australia  (23,162 posts)  Bio   Forum Administrator
Date Reply #5 on Fri 22 Feb 2002 01:21 AM (UTC)
Message
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.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


20,898 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.