Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
Couple bugs
Dec 12, 2017, 5:42 pm
By Remcon
Bug in disarm( )
Nov 12, 2017, 6:54 pm
By GatewaySysop
Bug in will_fall( )
Oct 23, 2017, 1:35 am
By GatewaySysop
Bug in do_zap( ), do_brandish( )
Oct 18, 2017, 1:52 pm
By GatewaySysop
Bug in get_exp_worth( )
Oct 10, 2017, 1:26 am
By GatewaySysop
LOP 1.45
Author: Remcon
Submitted by: Remcon
LOP Heroes Edition
Author: Vladaar
Submitted by: Vladaar
Heroes sound extras
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.3
Author: Vladaar
Submitted by: Vladaar
Memwatch
Author: Johan Lindh
Submitted by: Vladaar
Users Online
CommonCrawl, Yahoo!, Google

Members: 0
Guests: 21
Stats
Files
Topics
Posts
Members
Newest Member
477
3,705
19,232
608
LAntorcha
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » Codebases » AFKMud Support & Development » Error on log in
Forum Rules | Mark all | Recent Posts

Error on log in
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
Post is unread #1 May 6, 2011, 7:49 am
Go to the top of the page
Go to the bottom of the page

mitchm
Fledgling
GroupMembers
Posts8
JoinedNov 5, 2009

I'm trying to run AFKMud for the first time, I create a new character and when I go to enter the MUD shuts down and reboots with this error.
*** buffer overflow detected ***: ../src/afkmud terminated
======= Backtrace: =========
/lib/i386-linux-gnu/libc.so.6(__fortify_fail+0x50)[0xdd1df0]
/lib/i386-linux-gnu/libc.so.6(+0xe4cca)[0xdd0cca]
/lib/i386-linux-gnu/libc.so.6(__strcpy_chk+0x3f)[0xdd005f]
../src/afkmud(_Z8show_mapP9char_dataPc+0x2f3)[0x819ddbd]
../src/afkmud(do_look+0x2f2)[0x80a72c0]
../src/afkmud(_Z9interpretP9char_dataSs+0xfda)[0x8149c13]
../src/afkmud(_Z12char_to_gameP9char_data+0x31c)[0x816852b]
../src/afkmud(_ZN15descriptor_data5nannyERSs+0x2c1b)[0x816b6ef]
../src/afkmud(_Z13process_inputv+0x2a5)[0x8144052]
../src/afkmud(_Z9game_loopv+0x65)[0x814428c]
../src/afkmud(main+0x1fd)[0x81451e2]
/lib/i386-linux-gnu/libc

I'm using this on the newest Ubuntu Compilies just fine.
       
Post is unread #2 May 6, 2011, 11:24 pm
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,639
JoinedJan 1, 2002

Hrm. I've never been able to replicate this using a Fedora system. Would it be possible for you to run the game under GDB so it will crash and allow you to analyze it that way? The backtrace output is helpful to isolate to the function that's causing it, but line numbers would be infinitely more helpful.
       
Post is unread #3 May 9, 2011, 9:03 am
Go to the top of the page
Go to the bottom of the page

mitchm
Fledgling
GroupMembers
Posts8
JoinedNov 5, 2009

I'll need some instrucdtions on how to do that please.
       
Post is unread #4 May 9, 2011, 12:56 pm
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,639
JoinedJan 1, 2002

You can either use the GDB tutorial linked in our menu, or follow the one Nick Gammon has on his site: http://www.gammon.com.au/forum/?id=3653
       
Post is unread #5 May 10, 2011, 5:49 am
Go to the top of the page
Go to the bottom of the page

mitchm
Fledgling
GroupMembers
Posts8
JoinedNov 5, 2009

Let me know if this information is good enough to help figure this out.
Program received signal SIGABRT, Aborted.
0x0012e416 in __kernel_vsyscall ()
(gdb) bt
#0  0x0012e416 in __kernel_vsyscall ()
#1  0x002e0e71 in raise () from /lib/i386-linux-gnu/libc.so.6
#2  0x002e434e in abort () from /lib/i386-linux-gnu/libc.so.6
#3  0x00317577 in ?? () from /lib/i386-linux-gnu/libc.so.6
#4  0x0039bdf0 in __fortify_fail () from /lib/i386-linux-gnu/libc.so.6
#5  0x0039acca in __chk_fail () from /lib/i386-linux-gnu/libc.so.6
#6  0x0039a05f in __strcpy_chk () from /lib/i386-linux-gnu/libc.so.6
#7  0x0819ddbd in strcpy (ch=0x871e238, 
    text=0x836bd2c "&cA thunderous roar echoes through the sky..... and suddenly you are transported into this tiny room! An odd blue mist begins to slowly fill the room, clouding your vision and giving you a very strang"...)
    at /usr/include/bits/string3.h:105
#8  show_map (ch=0x871e238, 
    text=0x836bd2c "&cA thunderous roar echoes through the sky..... and suddenly you are transported into this tiny room! An odd blue mist begins to slowly fill the room, clouding your vision and giving you a very strang"...)
    at mapper.cpp:606
#9  0x080a72c0 in do_look (ch=0x871e238, argument=...) at act_info.cpp:1221
#10 0x08149c13 in interpret (ch=0x871e238, argument=...) at commands.cpp:814
#11 0x0816852b in char_to_game (ch=0x871e238) at descriptor.cpp:2258
#12 0x0816b6ef in descriptor_data::nanny (this=0x8713ac8, argument=...)
    at descriptor.cpp:3307
#13 0x08144052 in process_input () at comm.cpp:862
---Type <return> to continue, or q <return> to quit---
#14 0x0814428c in game_loop () at comm.cpp:935
#15 0x081451e2 in main (argc=<value optimized out>, argv=Cannot access memory at address 0x7cec
) at comm.cpp:1342
       
Post is unread #6 May 10, 2011, 12:52 pm   Last edited May 10, 2011, 12:54 pm by Samson
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,639
JoinedJan 1, 2002

If that big long line of text is being fed to the strcpy commands in this function that would explain it. They're way too long for the buffer size. The code should have isolated the color tag at the front but obviously didn't.
       
Pages:<< prev 1 next >>