egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Segfault while linking bots

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help
View previous topic :: View next topic  
Author Message
AXB
Voice


Joined: 12 Jun 2008
Posts: 4

PostPosted: Thu Jun 12, 2008 2:13 pm    Post subject: Segfault while linking bots Reply with quote

Hello,

I need your help for a problem with my eggdrop.

I've got 2 bots linked with a botnet and it works fine on my gentoo 32 bit with ssl patch.
But now i'm trying to make this work on a new server using gentoo 64 bit, to replace the old server.

I installed tcl 8.4.18, compiled the eggdrop with the ssl patch of rootie, everything went fine.
I run the bots, add them to reconize each other, link the bots together and then a segfault occurs !

I've seen that without the ssl patch it doesn't segfault, but I really need it Sad

The gdb output and the debug message aren't very useful for me and seems very vague :
See http://pastebin.ca/1046223 and http://pastebin.ca/1046224

Ssl patch found here

Same problem with eggdrop 1.6.18 and eggdrop 1.6.19 (with its own ssl patch of course).

Compiling on this :
Code:
Linux 2.6.24-gentoo-r8-ipv4-64 #1 SMP Mon Jun 9 16:07:50 CEST 2008 x86_64 Intel(R) Core(TM)2 Duo CPU E6550 @ 2.33GHz GenuineIntel GNU/Linux


In my /etc/make.conf
Code:
CHOST="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"


Perhaps I could try to compile it in 32 bits but I don't know how.
I also tried to use the latest CVS of eggdrop1.9 just in case, but I doesn't get anything in the install path (just two empty dirs "lib" and "include").

Does anyone knows how to fix this problem ?
Back to top
View user's profile Send private message
AXB
Voice


Joined: 12 Jun 2008
Posts: 4

PostPosted: Thu Jun 12, 2008 8:21 pm    Post subject: Reply with quote

I also get a segfault with one of my bots when it should talk on the channel, perhaps a problem with unicode or something ?

Code:
[02:19] * Last context: tclhash.c/684 [Tcl proc: pub:getcmd, param:  $_pub1 $_pub2 $_pub3 $_pub4 $_pub5]
[02:19] * Please REPORT this BUG!
[02:19] * Check doc/BUG-REPORT on how to do so.
[02:19] * Wrote DEBUG
[02:19] * SEGMENT VIOLATION -- CRASHING!


Code:
gdb eggdrop -c core.27476
GNU gdb 6.7.1
Copyright (C) 2007 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu"...
Using host libthread_db library "/lib/libthread_db.so.1".

warning: Can't read pathname for load map: Input/output error.
Reading symbols from /usr/lib64/libtcl8.4.so...done.
Loaded symbols for /usr/lib/libtcl8.4.so
Reading symbols from /lib64/libm.so.6...done.
Loaded symbols for /lib/libm.so.6
Reading symbols from /lib64/libpthread.so.0...done.
Loaded symbols for /lib/libpthread.so.0
Reading symbols from /lib64/libdl.so.2...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib64/libnsl.so.1...done.
Loaded symbols for /lib/libnsl.so.1
Reading symbols from /usr/lib64/libssl.so.0.9.8...done.
Loaded symbols for /usr/lib/libssl.so.0.9.8
Reading symbols from /usr/lib64/libcrypto.so.0.9.8...done.
Loaded symbols for /usr/lib/libcrypto.so.0.9.8
Reading symbols from /lib64/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib64/ld-linux-x86-64.so.2...done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
Reading symbols from /lib64/libz.so...done.
Loaded symbols for /lib/libz.so
Reading symbols from /lib64/libnss_files.so.2...done.
Loaded symbols for /lib/libnss_files.so.2
Reading symbols from /home/axb/eggdrop/modules-1.6.18/dns.so...done.
Loaded symbols for /home/axb/eggdrop/modules/dns.so
Reading symbols from /lib64/libresolv.so.2...done.
Loaded symbols for /lib/libresolv.so.2
Reading symbols from /home/axb/eggdrop/modules-1.6.18/channels.so...done.
Loaded symbols for /home/axb/eggdrop/modules/channels.so
Reading symbols from /home/axb/eggdrop/modules-1.6.18/server.so...done.
Loaded symbols for /home/axb/eggdrop/modules/server.so
Reading symbols from /home/axb/eggdrop/modules-1.6.18/irc.so...done.
Loaded symbols for /home/axb/eggdrop/modules/irc.so
Reading symbols from /home/axb/eggdrop/modules-1.6.18/console.so...done.
Loaded symbols for /home/axb/eggdrop/modules/console.so
Reading symbols from /home/axb/eggdrop/modules-1.6.18/blowfish.so...done.
Loaded symbols for /home/axb/eggdrop/modules/blowfish.so
Reading symbols from /home/axb/eggdrop/modules-1.6.18/uptime.so...done.
Loaded symbols for /home/axb/eggdrop/modules/uptime.so
Reading symbols from /home/axb/eggdrop/modules-1.6.18/libmysqltcl3.05.so...done.
Loaded symbols for /home/axb/eggdrop/modules-1.6.18/libmysqltcl3.05.so
Reading symbols from /usr/lib64/libmysqlclient.so.15...done.
Loaded symbols for /usr/lib/libmysqlclient.so.15
Reading symbols from /lib64/libcrypt.so.1...done.
Loaded symbols for /lib/libcrypt.so.1
Reading symbols from /usr/lib64/gconv/ISO8859-15.so...done.
Loaded symbols for /usr/lib64/gconv/ISO8859-15.so
Core was generated by `./eggdrop test.conf'.
Program terminated with signal 11, Segmentation fault.
#0  0x00002b1c0203a0c2 in select () from /lib/libc.so.6
(gdb) quit
Back to top
View user's profile Send private message
TCL_no_TK
Owner


Joined: 25 Aug 2006
Posts: 509
Location: England, Yorkshire

PostPosted: Fri Jun 13, 2008 4:03 am    Post subject: Reply with quote

Have you attempted to compiling eggdrop from the source code? an not the os distro version of the software.
_________________
TCL the misunderstood
Back to top
View user's profile Send private message Send e-mail
AXB
Voice


Joined: 12 Jun 2008
Posts: 4

PostPosted: Fri Jun 13, 2008 4:19 am    Post subject: Reply with quote

Yes of course, I downloaded the sources, patched it and compiled it.

I never use the distro's package for eggdrops, though gentoo is a source distro, because I modify the "msgrate" value from 2 to 0 in the source code of "src/mod/server.mod/server.c" (then the bot can send a lot of msg without any delay).

I also tried to load the bots without any .tcl script loaded and the result is the same.

Last thing, my openssl versions differs a little between the 2 servers, I've installed the same as the old server (0.9.8g instead of 0.9.8g-r2) to see if it comes from here, but same problem, segfault again
Back to top
View user's profile Send private message
AXB
Voice


Joined: 12 Jun 2008
Posts: 4

PostPosted: Fri Jun 13, 2008 6:04 am    Post subject: Reply with quote

Well, finally gentoo rox !

I installed an eggdrop with emerge and tried : it works fine Smile

For the little modification in the code I always do :
I extracted the tar.bz2 of eggdrop that emerge use (located in /usr/portage/distfiles/), modified the file and recreated the archive. Then I type the following command into /usr/portage/net-irc/eggdrop/ :
Code:
ebuild eggdrop-1.6.18-r3.ebuild digest


Then emerge with the SSL use and all went fine.

I hope it will be useful for anyone experiencing the same problem, but still it should be patched in the official release...
Back to top
View user's profile Send private message
mole
Voice


Joined: 15 Jun 2008
Posts: 1

PostPosted: Sun Jun 15, 2008 9:51 pm    Post subject: Reply with quote

does anyone know how to do this in debian stable? im having the exact same problem with segfaults during linking.
Back to top
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Wed Jun 18, 2008 9:39 pm    Post subject: Reply with quote

mole wrote:
does anyone know how to do this in debian stable? im having the exact same problem with segfaults during linking.

You compiled eggdrop the proper way (not using apt)?

If so, and you had no joy, the equivalent to ebuild in Debian is 'dpkg --build'.

Code:
man dpkg

_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber