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.

Eggdrop crashes on telnet connection

General support and discussion of Eggdrop bots.
Post Reply
V
VanillaDeath
Voice
Posts: 2
Joined: Sun Apr 14, 2013 7:48 pm
Location: Canada

Eggdrop crashes on telnet connection

Post by VanillaDeath »

I can't find anything about this type of problem online, so I figured I'd have a go here. I'm running an Ubuntu server (12.04.2 - GNU/Linux 3.2.0-40-generic x86_64).
Everything is up to date.
I compiled Eggdrop 1.6.21 (I also tried 1.8-dev with same results) with MegaHAL 2.7 (I also tried 3.5 with same results).
It compiles successfully, and starts up successfully, I can /msg botname hello successfully, and I can /msg botname pass password successfully.
BUT every time I try to connect via telnet, eggdrop crashes with the following:
wilbot@Wilbot:~/eggdrop$ *** buffer overflow detected ***: ./eggdrop terminated
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x37)[0x7ff3169eb807]
/lib/x86_64-linux-gnu/libc.so.6(+0x109700)[0x7ff3169ea700]
./eggdrop[0x420685]
./eggdrop[0x42394d]
./eggdrop[0x424052]
/home/wilbot/eggdrop/modules/dns.so(+0x2f24)[0x7ff3156a8f24]
./eggdrop[0x429f61]
./eggdrop[0x403e0a]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed)[0x7ff31690276d]
./eggdrop[0x4040b5]
======= Memory map: ========
00400000-0045c000 r-xp 00000000 fc:00 3542801 /home/wilbot/eggdrop/eggdrop-1.6.21
0065b000-0065c000 r--p 0005b000 fc:00 3542801 /home/wilbot/eggdrop/eggdrop-1.6.21
0065c000-00661000 rw-p 0005c000 fc:00 3542801 /home/wilbot/eggdrop/eggdrop-1.6.21
00661000-00665000 rw-p 00000000 00:00 0
00eac000-01322000 rw-p 00000000 00:00 0 [heap]
7ff3141fc000-7ff314211000 r-xp 00000000 fc:00 1310764 /lib/x86_64-linux-gnu/libgcc_s.so.1
7ff314211000-7ff314410000 ---p 00015000 fc:00 1310764 /lib/x86_64-linux-gnu/libgcc_s.so.1
7ff314410000-7ff314411000 r--p 00014000 fc:00 1310764 /lib/x86_64-linux-gnu/libgcc_s.so.1
7ff314411000-7ff314412000 rw-p 00015000 fc:00 1310764 /lib/x86_64-linux-gnu/libgcc_s.so.1
7ff314412000-7ff31441a000 r-xp 00000000 fc:00 3542829 /home/wilbot/eggdrop/modules-1.6.21/megahal.so
7ff31441a000-7ff314619000 ---p 00008000 fc:00 3542829 /home/wilbot/eggdrop/modules-1.6.21/megahal.so
7ff314619000-7ff31461a000 r--p 00007000 fc:00 3542829 /home/wilbot/eggdrop/modules-1.6.21/megahal.so
7ff31461a000-7ff31461b000 rw-p 00008000 fc:00 3542829 /home/wilbot/eggdrop/modules-1.6.21/megahal.so
7ff31461b000-7ff31461d000 r-xp 00000000 fc:00 3542835 /home/wilbot/eggdrop/modules-1.6.21/uptime.so
7ff31461d000-7ff31481c000 ---p 00002000 fc:00 3542835 /home/wilbot/eggdrop/modules-1.6.21/uptime.so
7ff31481c000-7ff31481d000 r--p 00001000 fc:00 3542835 /home/wilbot/eggdrop/modules-1.6.21/uptime.so
7ff31481d000-7ff31481e000 rw-p 00002000 fc:00 3542835 /home/wilbot/eggdrop/modules-1.6.21/uptime.so
7ff31481e000-7ff314821000 r-xp 00000000 fc:00 3542824 /home/wilbot/eggdrop/modules-1.6.21/console.so
7ff314821000-7ff314a20000 ---p 00003000 fc:00 3542824 /home/wilbot/eggdrop/modules-1.6.21/console.so
7ff314a20000-7ff314a21000 r--p 00002000 fc:00 3542824 /home/wilbot/eggdrop/modules-1.6.21/console.so
7ff314a21000-7ff314a22000 rw-p 00003000 fc:00 3542824 /home/wilbot/eggdrop/modules-1.6.21/console.so
7ff314a22000-7ff314a29000 r-xp 00000000 fc:00 3542830 /home/wilbot/eggdrop/modules-1.6.21/notes.so
7ff314a29000-7ff314c29000 ---p 00007000 fc:00 3542830 /home/wilbot/eggdrop/modules-1.6.21/notes.so
7ff314c29000-7ff314c2a000 r--p 00007000 fc:00 3542830 /home/wilbot/eggdrop/modules-1.6.21/notes.so
7ff314c2a000-7ff314c2b000 rw-p 00008000 fc:00 3542830 /home/wilbot/eggdrop/modules-1.6.21/notes.so
7ff314c2b000-7ff314c52000 r-xp 00000000 fc:00 3542828 /home/wilbot/eggdrop/modules-1.6.21/irc.so
7ff314c52000-7ff314e51000 ---p 00027000 fc:00 3542828 /home/wilbot/eggdrop/modules-1.6.21/irc.so
7ff314e51000-7ff314e52000 r--p 00026000 fc:00 3542828 /home/wilbot/eggdrop/modules-1.6.21/irc.so
7ff314e52000-7ff314e54000 rw-p 00027000 fc:00 3542828 /home/wilbot/eggdrop/modules-1.6.21/irc.so
7ff314e54000-7ff314e56000 r-xp 00000000 fc:00 3542825 /home/wilbot/eggdrop/modules-1.6.21/ctcp.so
7ff314e56000-7ff315055000 ---p 00002000 fc:00 3542825 /home/wilbot/eggdrop/modules-1.6.21/ctcp.so
7ff315055000-7ff315056000 r--p 00001000 fc:00 3542825 /home/wilbot/eggdrop/modules-1.6.21/ctcp.so
7ff315056000-7ff315057000 rw-p 00002000 fc:00 3542825 /home/wilbot/eggdrop/modules-1.6.21/ctcp.so
7ff315057000-7ff315068000 r-xp 00000000 fc:00 3542832 /home/wilbot/eggdrop/modules-1.6.21/server.so
7ff315068000-7ff315267000 ---p 00011000 fc:00 3542832 /home/wilbot/eggdrop/modules-1.6.21/server.so
7ff315267000-7ff315268000 r--p 00010000 fc:00 3542832 /home/wilbot/eggdrop/modules-1.6.21/server.so
7ff315268000-7ff315269000 rw-p 00011000 fc:00 3542832 /home/wilbot/eggdrop/modules-1.6.21/server.so
7ff315269000-7ff31526a000 rw-p 00000000 00:00 0
7ff31526a000-7ff315289000 r-xp 00000000 fc:00 3542822 /home/wilbot/eggdrop/modules-1.6.21/channels.so
7ff315289000-7ff315488000 ---p 0001f000 fc:00 3542822 /home/wilbot/eggdrop/modules-1.6.21/channels.so
7ff315488000-7ff315489000 r--p 0001e000 fc:00 3542822 /home/wilbot/eggdrop/modules-1.6.21/channels.so
7ff315489000-7ff31548a000 rw-p 0001f000 fc:00 3542822 /home/wilbot/eggdrop/modules-1.6.21/channels.so
7ff31548a000-7ff3154a2000 r-xp 00000000 fc:00 1376663 /lib/x86_64-linux-gnu/libresolv-2.15.so
7ff3154a2000-7ff3156a2000 ---p 00018000 fc:00 1376663 /lib/x86_64-linux-gnu/libresolv-2.15.so
7ff3156a2000-7ff3156a3000 r--p 00018000 fc:00 1376663 /lib/x86_64-linux-gnu/libresolv-2.15.so
7ff3156a3000-7ff3156a4000 rw-p 00019000 fc:00 1376663 /lib/x86_64-linux-gnu/libresolv-2.15.so
7ff3156a4000-7ff3156a6000 rw-p 00000000 00:00 0
7ff3156a6000-7ff3156aa000 r-xp 00000000 fc:00 3542826 /home/wilbot/eggdrop/modules-1.6.21/dns.so
7ff3156aa000-7ff3158a9000 ---p 00004000 fc:00 3542826 /home/wilbot/eggdrop/modules-1.6.21/dns.so
7ff3158a9000-7ff3158aa000 r--p 00003000 fc:00 3542826 /home/wilbot/eggdrop/modules-1.6.21/dns.so
7ff3158aa000-7ff3158ab000 rw-p 00004000 fc:00 3542826 /home/wilbot/eggdrop/modules-1.6.21/dns.so
7ff3158ab000-7ff3158dc000 rw-p 00000000 00:00 0
7ff3158dc000-7ff3158e0000 r-xp 00000000 fc:00 3542820 /home/wilbot/eggdrop/modules-1.6.21/blowfish.so
7ff3158e0000-7ff315adf000 ---p 00004000 fc:00 3542820 /home/wilbot/eggdrop/modules-1.6.21/blowfish.so
7ff315adf000-7ff315ae0000 r--p 00003000 fc:00 3542820 /home/wilbot/eggdrop/modules-1.6.21/blowfish.so
7ff315ae0000-7ff315ae1000 rw-p 00004000 fc:00 3542820 /home/wilbot/eggdrop/modules-1.6.21/blowfish.so
7ff315ae1000-7ff315aed000 r-xp 00000000 fc:00 1376880 /lib/x86_64-linux-gnu/libnss_files-2.15.so
7ff315aed000-7ff315cec000 ---p 0000c000 fc:00 1376880 /lib/x86_64-linux-gnu/libnss_files-2.15.so
7ff315cec000-7ff315ced000 r--p 0000b000 fc:00 1376880 /lib/x86_64-linux-gnu/libnss_files-2.15.so^C
I figured I'd disable telnet and try connecting via DCC and CTCP and I can't (in fact I can't connect via DCC or CTCP with telnet enabled either, even after changing NAT hostname values).
Any clues as to what might be happening?
User avatar
Madalin
Master
Posts: 310
Joined: Fri Jun 24, 2005 11:36 am
Location: Constanta, Romania
Contact:

Post by Madalin »

Tell us more informations like how you start your eggdrop, if you added a listen port for the eggdrop and if you tryed starting the eggdrop without megahal and used /ctcp botnick chat
V
VanillaDeath
Voice
Posts: 2
Joined: Sun Apr 14, 2013 7:48 pm
Location: Canada

Post by VanillaDeath »

Madalin wrote:Tell us more informations like how you start your eggdrop, if you added a listen port for the eggdrop and if you tryed starting the eggdrop without megahal and used /ctcp botnick chat
I start it from the install directory using ./eggdrop wilbot.conf (after the user file has been made).
I did add a listen port, the default 3333.
I've tried it without loading the megahal module (and once without even compiling it), same buffer overflow.
When using /ctcp to chat, I get an Accept/Ignore prompt. When I select accept I get:
DCC Chat session
-
Client: Wilbot (IP ADDRESS HERE)
Time: Sun Apr 14 22:24:18 2013
-
Acknowledging chat request...
DCC Chat connection established
-
DCC session closed
and eggdrop crashes again.
So it appears as long as I have telnet enabled, I can reach it via CTCP but not DCC, but it still crashes like it does with telnet.
User avatar
Madalin
Master
Posts: 310
Joined: Fri Jun 24, 2005 11:36 am
Location: Constanta, Romania
Contact:

Post by Madalin »

Have you tryed installing the same version of eggdrop and megahal version on another unix machine? It could be a problem with you version of server.
I always had craches on my machine when loading tcl scripts that had problems.
Post Reply