Author Topic: PSClient not terminating 'gracefully'  (Read 1649 times)

davewb

  • Traveller
  • *
  • Posts: 34
    • View Profile
PSClient not terminating 'gracefully'
« on: June 05, 2005, 06:38:35 pm »
Hi

I\'m getting a core dump quite regularly when quitting Planeshift. There are no noticeable adverse effects during the game but I see a glibc error, something like \'double free or corruption\' and I get a core file, in the terminal window after quitting.

The backtrace from GDB isn\'t furnished with a lot of info as a lot of debug symbols are missing, but there\'s refs to __tcf_0, __JCR_LIST__() and csKDTree::tree_nodes() and csKDTreeChild::~csKDTreeChild() in CS/dynavis.so (in reverse order).

My system is PIV/1.5GHz, Mandrake 10.0, kernel 2.6.3, GLibC 2.3.4

Dave

Platyna

  • Hydlaa Notable
  • *
  • Posts: 556
    • View Profile
(No subject)
« Reply #1 on: June 05, 2005, 06:43:29 pm »
Because it very offten crashes on quit. Known issue. If you are bothered with
these core files set core file size limit to 0:
ulimit -c 0

Regards.
Zuzanna K. Filutowska
RPG Players Community || Platyna\'s Planeshift Warehouse
\"The only thing necessary for evil to triumph is for good men to do nothing.\" -- Edward Burke

SquidProject

  • Traveller
  • *
  • Posts: 38
    • View Profile
(No subject)
« Reply #2 on: June 06, 2005, 09:02:32 pm »
I think it just doesn\'t like it when you quit it.  Sort of the \"You can\'t fire me because I quit,\" mentalitly, only here it\'s \"You can\'t terminate me because I seg fault (or exit due to some error).\"  I wouldn\'t worry about it.

davewb

  • Traveller
  • *
  • Posts: 34
    • View Profile
(No subject)
« Reply #3 on: June 09, 2005, 12:12:15 am »
I\'m not worried about it - I was just trying to help.

I didn\'t know it was \'known issue\'. I encountered the fault, I bothered to report it and was willing to help investigations into it.

AryHann

  • Veteran
  • *
  • Posts: 1244
  • WonderWoman
    • View Profile
(No subject)
« Reply #4 on: June 10, 2005, 08:27:25 am »
Uhm, I was getting a lot of messages while quitting but they were mainly referring to the traits system and that was happening in the destruction of some classes that didn\'t work properly.

Can you post all the GDB output?
The last line might be too cryptic.


Ary
AryHann

http://www.reflex.lth.se/culture/annelov - Virtual Annelöv -
Engine Dep. - One of Talad's Angels - Aka ww & Ahrijani's Goddess

davewb

  • Traveller
  • *
  • Posts: 34
    • View Profile
(No subject)
« Reply #5 on: June 12, 2005, 10:54:05 pm »
The entire gdb session & backtrace:

[dave@telekon planeshift]$ gdb ./psclient.bin core.3441

GNU gdb 6.0-2mdk (Mandrake Linux)

Copyright 2003 Free Software Foundation, Inc.

GDB is free software, covered by the GNU General Public License, and you are

welcome to change it and/or distribute copies of it under certain conditions.

Type \"show copying\" to see the conditions.

There is absolutely no warranty for GDB.  Type \"show warranty\" for details.

This GDB was configured as \"i586-mandrake-linux-gnu\"...Using host libthread_db library \"/lib/tls/libthread_db.so.1\".



Core was generated by `/home/dave/planeshift/psclient.bin\'.

Program terminated with signal 6, Aborted.



warning: current_sos: Can\'t read pathname for load map: Input/output error



Reading symbols from /lib/tls/libpthread.so.0...done.

Loaded symbols for /lib/tls/libpthread.so.0

Reading symbols from /lib/libz.so.1...done.





(gdb)
(gdb) b
(gdb) bt
(gdb) bt

#0  0xffffe410 in ?? ()

#1  0xbfffed38 in ?? ()

#2  0x00000006 in ?? ()

#3  0x00000d71 in ?? ()

#4  0x40167915 in raise () from /lib/tls/libc.so.6

#5  0x40169279 in abort () from /lib/tls/libc.so.6

#6  0x4019b74a in __fsetlocking () from /lib/tls/libc.so.6

#7  0x401a6ce8 in mallopt () from /lib/tls/libc.so.6

#8  0x401a587b in mallopt () from /lib/tls/libc.so.6

#9  0x401a35aa in free () from /lib/tls/libc.so.6

#10 0x400e7ec1 in operator delete(void*) () from /usr/lib/libstdc++.so.5

#11 0x400e7f1d in operator delete[](void*) () from /usr/lib/libstdc++.so.5

#12 0x4597d2d9 in csKDTreeChild::~csKDTreeChild() ()

   from /home/dave/planeshift/CS/dynavis.so

#13 0x10cef3b8 in ?? ()

#14 0x10cef3b8 in ?? ()

#15 0x459aaa20 in csKDTree::tree_nodes ()

   from /home/dave/planeshift/CS/dynavis.so

#16 0x459aaa20 in csKDTree::tree_nodes ()

   from /home/dave/planeshift/CS/dynavis.so

#17 0x459aa0d0 in __JCR_LIST__ () from /home/dave/planeshift/CS/dynavis.so

#18 0x4597dc9a in csKDTree::Clear() () from /home/dave/planeshift/CS/dynavis.so

#19 0x0feff0c4 in ?? ()

---Type to continue, or q to quit---
---Type to continue, or q to quit---

#20 0x00000e08 in ?? ()

#21 0x0d6425c8 in ?? ()

#22 0x459aaa20 in csKDTree::tree_nodes ()

   from /home/dave/planeshift/CS/dynavis.so

#23 0x459aa0d0 in __JCR_LIST__ () from /home/dave/planeshift/CS/dynavis.so

#24 0x0feff0c4 in ?? ()

#25 0x0ff143a8 in ?? ()

#26 0x00000fda in ?? ()

#27 0x4597dab6 in csKDTree::~csKDTree() ()

   from /home/dave/planeshift/CS/dynavis.so

#28 0x0d62be68 in ?? ()

#29 0x459aa0d0 in __JCR_LIST__ () from /home/dave/planeshift/CS/dynavis.so

#30 0x0d6425c8 in ?? ()

#31 0x459aa0d0 in __JCR_LIST__ () from /home/dave/planeshift/CS/dynavis.so

#32 0x0feff0c4 in ?? ()

#33 0x45981fed in __tcf_0 () from /home/dave/planeshift/CS/dynavis.so

#34 0x08fb90e4 in ?? ()

#35 0x08fb92f0 in ?? ()

#36 0x00000001 in ?? ()

#37 0x09c914a8 in ?? ()

#38 0xbffff0d0 in ?? ()

#39 0xbffff0c8 in ?? ()

#40 0x00000009 in ?? ()

---Type to continue, or q to quit---
---Type to continue, or q to quit---

#41 0x00000004 in ?? ()

(gdb)
(gdb) q
(gdb) q

AryHann

  • Veteran
  • *
  • Posts: 1244
  • WonderWoman
    • View Profile
(No subject)
« Reply #6 on: June 13, 2005, 08:08:38 am »
From what I can understand it seems that some destruction of some class doesn\'t work properly.
It seems to be a CS problem, though.
csKdTreeChild seems to me the class  involved in the process.

Ary
PS: yes, I am realizing I am not that helpful ;)
AryHann

http://www.reflex.lth.se/culture/annelov - Virtual Annelöv -
Engine Dep. - One of Talad's Angels - Aka ww & Ahrijani's Goddess