(New message)
Subject review (reverse sequence)
Posted by
Nick Gammon
Australia (18,770 posts) bio
Forum Administrator
Date
Sat 30 Jun 2012 11:11 PM (UTC) [ quote
]
Message
Posted by
Fiendish
USA (848 posts) bio
Global Moderator
Date
Sat 30 Jun 2012 06:02 PM (UTC) [ quote
] Amended on Sat 30 Jun 2012 06:04 PM (UTC) by Fiendish
Message
Maybe. We can't help you with that because we don't know what you're doing. This may be a good time to learn about general debugging techniques.
http://www.drpaulcarter.com/cs/debug.php#4.
http://cs.baylor.edu/~donahoo/tools/gdb/tutorial.html
http://aardwolfclientpackage.googlecode.com/ top
Posted by
Jason
(102 posts) bio
Date
Mon 18 Jun 2012 10:41 PM (UTC) [ quote
]
Message
Where might i even go about looking for this issue....Maybe the Account snippet I put in?
top
Posted by
Worstje
Netherlands (867 posts) bio
Date
Mon 18 Jun 2012 12:01 PM (UTC) [ quote
]
Message
Well then, that is your problem. You can't dereference null. Maybe your problem is somewhere else and it shows here, or this snippet makes wrong assumptions and that causes the crash. top
Posted by
Jason
(102 posts) bio
Date
Mon 18 Jun 2012 03:31 AM (UTC) [ quote
]
Message
Posted by
Fiendish
USA (848 posts) bio
Global Moderator
Date
Mon 18 Jun 2012 02:46 AM (UTC) [ quote
]
Message
what is d->character right before the crash?
http://aardwolfclientpackage.googlecode.com/ top
Posted by
Jason
(102 posts) bio
Date
Mon 18 Jun 2012 02:08 AM (UTC) [ quote
]
Message
ok here is what I got... and I don't get why it is crashing... The code is the same as it was on my non fuss code.
My game is crashing at this line of code
if( fPrompt && !mud_down && d->connected == CON_PLAYING )
{
ch = d->original ? d->original : d->character;
[bold] if( IS_SET( ch->act, PLR_BLANK ) ) THIS LINE HERE CRASHES[/bold]
write_to_buffer( d, "\r\n", 2 );
if( IS_SET( ch->act, PLR_PROMPT ) )
display_prompt( d );
if( IS_SET( ch->act, PLR_TELNET_GA ) )
write_to_buffer( d, (const char *)go_ahead_str, 0 );
}
This is the same as the non-fuss version. it seems to crash upon characters dying... or disconnecting abruptly. not really sure why.
Here is what the core file reads
(gdb) bt
#0 0x080d3ec8 in flush_buffer (d=0x9b42580, fPrompt=true) at comm.c:1186
#1 0x080d2a33 in game_loop () at comm.c:611
#2 0x080d1d15 in main (argc=5, argv=0xbfffe464) at comm.c:252
Current language: auto; currently c++
top
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
1,009 views.
Reply to this subject
Start a new subject
  Refresh page
Go to topic:
(Choose topic)
Area Editor: Bug reports
Area Editor: General
Area Editor: News and updates
Area Editor: Suggestions
Area Editor: Tips and tricks
Dawn of Time: Administration
Dawn of Time: Configuration
Dawn of Time: Installing/compiling the server
Dawn of Time: New Dawn Muds Announcements
Dawn of Time: Playing
Dawn of Time: What is Dawn of Time (Dawn)?
Electronics: Microprocessors
Electronics: Operational Amplifiers
Forum: About
Forum: Announcements
Forum: Mailing other users
Forum: Problems
Forum: Registering
Forum: Searching
Forum: Subscribing
Forum: Suggestions
Forum: Test
Forum: Time zones / time display
Forum software: Administration
Forum software: Installation
MUDs: Announcements
MUDs: General
MUDs: MUD Design Concepts
MUSHclient: Announcements
MUSHclient: Beta testing
MUSHclient: Bug reports
MUSHclient: Development
MUSHclient: General
MUSHclient: Getting Started
MUSHclient: International
MUSHclient: Jscript
MUSHclient: Lua
MUSHclient: Miniwindows
MUSHclient: MXP and Pueblo
MUSHclient: Perlscript
MUSHclient: Plugins
MUSHclient: Python
MUSHclient: Suggestions
MUSHclient: Tips and tricks
MUSHclient: VBscript
MUSHclient: Wine
PennMUSH: Compiling the server
PennMUSH: Running the server
Programming: General
Programming: STL
Quilting: General
ROM: Compiling the server
ROM: Running the server
SMAUG: Commands
SMAUG: Compiling the server
SMAUG: Lua
SMAUG: Running the server
SMAUG: SMAUG coding
Search the forum
top
Comments to:
Gammon Software support
Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )