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.

Segfault while linking bots

General support and discussion of Eggdrop bots.
Post Reply
A
AXB
Voice
Posts: 4
Joined: Thu Jun 12, 2008 1:56 pm

Segfault while linking bots

Post by AXB »

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 :(

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: Select all

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: Select all

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 ?
A
AXB
Voice
Posts: 4
Joined: Thu Jun 12, 2008 1:56 pm

Post by AXB »

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: Select all

[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: Select all

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
User avatar
TCL_no_TK
Owner
Posts: 509
Joined: Fri Aug 25, 2006 7:05 pm
Location: England, Yorkshire

Post by TCL_no_TK »

Have you attempted to compiling eggdrop from the source code? an not the os distro version of the software.
A
AXB
Voice
Posts: 4
Joined: Thu Jun 12, 2008 1:56 pm

Post by AXB »

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
A
AXB
Voice
Posts: 4
Joined: Thu Jun 12, 2008 1:56 pm

Post by AXB »

Well, finally gentoo rox !

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

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: Select all

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...
m
mole
Voice
Posts: 1
Joined: Sun Jun 15, 2008 9:49 pm

Post by mole »

does anyone know how to do this in debian stable? im having the exact same problem with segfaults during linking.
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

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: Select all

man dpkg
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Post Reply