Crash

Here you can post threads specific to the current release of the core (099)
Post Reply
bodom
Former Developer
Posts: 140
Joined: Sat Feb 21, 2015 7:52 pm

Crash

Post by bodom »

Hi there,

I have this backtrace. I went to look into charactr.cpp/get_hitscript_params but couldn't see anything wrong.
This is a slightly customized POL, but I didn't touch that part.

Any ideas?

Code: Select all

Signal "SIGSEGV"(11: invalid memory reference) detected.
Segmentation fault detected - null pointer reference
Signal code is 128
################################################################################
########
POL will exit now. Please, post the following to the forum: http://forums.polser
ver.com/.
Admin contact:
Executable: ./pol
Start time: [10/05 16:18:03]
Current time: [10/05 16:27:33]

Stack trace:
#00 0x00000000007cf7d6 in >> Pol::Clib::ExceptionParser::getTrace():[0x46] from
./pol
#01 0x00000000007cfda9 in >> Pol::Clib::handleExceptionSignal(int):[0x99] from .
/pol
#02 ./pol() [0x7d0623]
#03 0x000000004eb6e340 in :[0x10340] from /lib/x86_64-linux-gnu/libpthread.so.0
#04 0x000000000055666c in >> Pol::Mobile::Character::get_hitscript_params(double
, Pol::Items::UArmor**, unsigned short*):[0x2c] from ./pol
#05 0x000000000060a925 in >> Pol::Mobile::NPC::get_hitscript_params(double, Pol:
:Items::UArmor**, unsigned short*):[0x45] from ./pol
#06 0x0000000000558821 in >> Pol::Mobile::Character::run_hit_script(Pol::Mobile:
:Character*, double):[0xa1] from ./pol
#07 0x0000000000559e70 in >> Pol::Mobile::Character::attack(Pol::Mobile::Charact
er*):[0x870] from ./pol
#08 0x000000000055b9b9 in >> Pol::Mobile::Character::check_attack_after_move():[
0xa9] from ./pol
#09 0x000000000055bb37 in >> Pol::Mobile::Character::swing_task_func(Pol::Mobile
::Character*):[0x77] from ./pol
#10 0x0000000000675a28 in >> Pol::Core::check_scheduled_tasks(int*, bool*):[0xe8
] from ./pol
#11 0x0000000000634f83 in >> Pol::Core::tasks_thread():[0xa3] from ./pol
#12 0x00000000007dc4f7 in >> Pol::threadhelp::run_thread(void (*)()):[0x7] from
./pol
#13 0x00000000007dc796 in >> Pol::threadhelp::thread_stub2(void*):[0x66] from ./
pol
#14 0x000000004eb66182 in :[0x8182] from /lib/x86_64-linux-gnu/libpthread.so.0
#15 0x000000004db7447d in clone:[0x6d] from /lib/x86_64-linux-gnu/libc.so.6

Compiler: gcc 4.8.4Compile time: 17:06:05
Build target: ubuntu - 64bit
Build revision: POL099-2013-09-03 Break Everything Even Rudder
GNU C library (compile time): 2.19

################################################################################
########
Assertion Failed: contents_.empty(), pol/containr.cpp, line 66
Forcing stack backtrace.
*** buffer overflow detected ***: ./pol terminated
bodom
Former Developer
Posts: 140
Joined: Sat Feb 21, 2015 7:52 pm

Re: Crash

Post by bodom »

It took me a while but managed to identify the problem, working on a fix, even if it is not easy :D

Not bad for my first C++ debug session, i guess :bacondance:
Post Reply