This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

make nodebug

Old posts that have not been replied to for several years.
Locked
g
ghwerig

make nodebug

Post by ghwerig »

hi,
ok ... i admit to being an MS slave and all this compiling your own source is new to me, so slay me :)

i'm compiling 1.6.15 on freebsd 4.10 and compile goes ok. i've managed to induce a few crashes and each time eggdrop crashes i get a memory dump. unfortunately this completely fills up the space i have on the shell account. i've solved most of the crash issues, however, if eggdrop crashes out it cannot restart from the crontab cause it runs out of disk space pretty much straight away.

How do i recompile to stop eggdrop core dumping?

current compile is
./configure
make config
make
make install DEST=~/eggdrop

TIA
g
greenbear
Owner
Posts: 733
Joined: Mon Sep 24, 2001 8:00 pm
Location: Norway

Post by greenbear »

try a
./configure --enable-strip

instead of
./configure
g
ghwerig

Post by ghwerig »

ok ... tried it and it still core dumps ...

thanks anyway

any other ideas ?
User avatar
KrzychuG
Master
Posts: 306
Joined: Sat Aug 16, 2003 2:51 pm
Location: Torun, Poland
Contact:

Post by KrzychuG »

Try to change that in src/main.c:

Code: Select all

    struct rlimit cdlim;

    cdlim.rlim_cur = RLIM_INFINITY;
    cdlim.rlim_max = RLIM_INFINITY;
    setrlimit(RLIMIT_CORE, &cdlim);
to

Code: Select all

    struct rlimit cdlim;

    cdlim.rlim_cur = 0;
    cdlim.rlim_max = 0;
    setrlimit(RLIMIT_CORE, &cdlim);
Que?
g
ghwerig

Post by ghwerig »

thanks ... but that didn't stop it either :(

any other offers ? :)

btw thxs to whoever moved the thread into this forum
User avatar
KrzychuG
Master
Posts: 306
Joined: Sat Aug 16, 2003 2:51 pm
Location: Torun, Poland
Contact:

Post by KrzychuG »

Try that way (it should work if bot always make core file with exact same name):
1. create an empty file with core name
2. remove write flag (chmod 444 file)

Bot shouldn't be able to overwrite that file.
Que?
g
ghwerig

Post by ghwerig »

yep ... that did it

thank you !
Locked