|
1. mobact.c crashing when people buy from store
|
|
Wed Jul 14, 2004 [4:28 PM]
|
blntmaster
Email not supplied
member since: Jun 26, 2004
|
Reply
|
|
has anyone had a problem with mobact.c crashing the mud when people spam buy things from the store?
circle 3.1
|
|
|
|
|
2. RE: mobact.c crashing when people buy from store
|
|
Wed Jul 14, 2004 [5:02 PM]
|
TheReader
Email not supplied
member since: Jan 1, 2004
|
In Reply To
Reply
|
|
Do you need more help with gdb? If so post what you need or google for it. Or, if you forgot to try it, your previous thread is currently 6 below this one.
TheReader
|
|
|
|
|
3. RE: mobact.c crashing when people buy from store
|
|
Wed Jul 14, 2004 [5:24 PM]
|
KrayzieK
krayziek@mchsi.com
member since: Mar 10, 2004
|
In Reply To
Reply
|
|
Dude, contact me on aim at "x Krayzie K x".
|
|
|
|
|
4. RE: mobact.c crashing when people buy from store
|
|
Wed Jul 14, 2004 [11:15 PM]
|
blntmaster
Email not supplied
member since: Jun 26, 2004
|
In Reply To
Reply
|
|
i geuss im just tryin to figure out if there is more than just this for information:
Program received signal SIGSEGV, Segmentation fault. 0x0805aace in do_simple_move (ch=0x9639538, dir=0, need_specials_check=1) at act.movement.c:119 119 need_movement = (movement_loss[SECT(IN_ROOM(ch))] + (gdb) bt #0 0x0805aace in do_simple_move (ch=0x9639538, dir=0, need_specials_check=1) at act.movement.c:119 #1 0x0809234e in mobile_activity () at mobact.c:90 #2 0x08078901 in heartbeat (pulse=2700) at comm.c:900 #3 0x0807834c in game_loop (mother_desc=5) at comm.c:849 #4 0x08077c9f in init_game (port=5) at comm.c:418 #5 0x08077a26 in main (argc=0, argv=0x80dec03) at comm.c:362
|
|
|
|
|
6. RE: mobact.c crashing when people buy from store
|
|
Thu Jul 15, 2004 [12:50 AM]
|
muir
Email not supplied
member since: Sep 14, 2003
|
In Reply To
Reply
|
|
i geuss im just tryin to figure out if there is more than just this for information:
Mainly you can read the relevant code and datastructures. A segmentation fault means that the program tried to access memory it's not allowed to access -either something completely outside the program's memory segment or (more commonly) trying to access an invalid (NULL or deleted) pointer.
In your situation it might be the ch pointer that's causing the problem -it's likely not NULL because you can see an actual address in the function call -the ch=0x9639538 part- but the memory may be invalid; for example if the character has quit and the memory deallocated. It could also be that there's something wrong with accessing the array.
Presumably the code doesn't crash every time the function is accessed. You may establish a breakpoint in the function and then run the code step by step and examine the received data. Additionally, you may try to run the program through Lint and/or Valgrind (among other products).
.
|
|
|
|
|
7. RE: mobact.c crashing when people buy from store
|
|
Fri Jul 16, 2004 [10:07 AM]
|
blntmaster
Email not supplied
member since: Jun 26, 2004
|
In Reply To
Reply
|
|
splint is what i was lookin for :) thanks
|
|
|
|
|