realXtend/naali — Issue #312: crash with math lib float3 qscript conversion in QScriptEngine qScriptValueFrom helper with
Author: antont
Created: 2012-01-19 10:46:06+00:00
State: open

Running quite old stock Tundra as server with the reference AV app, get a crash in qscriptengine when it's trying to convert a Tundra mathlib float3 -- stack trace is below. 64bit linux, ubuntu 11.10 with defaults, in a VM. With a simple python module enabled that runs as a test backend for Flash client tests.

Core was generated by `./Tundra --server --file scenes/Avatar/avatar.txml'.
Program terminated with signal 11, Segmentation fault.
#0 0x00007f681693e358 in ?? () from /usr/lib/x86_64-linux-gnu/libQtScript.so.4
(gdb)
(gdb)
(gdb) bt
#0 0x00007f681693e358 in ?? () from /usr/lib/x86_64-linux-gnu/libQtScript.so.4
#1 0x00007f681694d634 in ?? () from /usr/lib/x86_64-linux-gnu/libQtScript.so.4
#2 0x00007f68169453b0 in QScriptEngine::create(int, void const*) ()
from /usr/lib/x86_64-linux-gnu/libQtScript.so.4
#3 0x00007f680469e28a in qScriptValueFromValue_helper (ptr=0x7fff39f1aed4,
type=135, engine=0x36f0590)
at /usr/include/qt4/QtScript/qscriptengine.h:328
#4 qScriptValueFromValue (t=@0x7fff39f1aed4, engine=0x36f0590)
at /usr/include/qt4/QtScript/qscriptengine.h:334
#5 ToExistingScriptValue_float3 (engine=0x36f0590, value=..., obj=...)
at /home/playsign/src/naali/src/Application/JavascriptModule/qscript_float3.cpp:6
#6 0x00007f680469e764 in ToScriptValue_float3 (engine=0x36f0590, value=...)
at /home/playsign/src/naali/src/Application/JavascriptModule/qscript_float3.cpp:828
#7 0x00007f6816944e46 in ?? () from /usr/lib/x86_64-linux-gnu/libQtScript.so.4
#8 0x00007f68169453a2 in QScriptEngine::create(int, void const*) ()
from /usr/lib/x86_64-linux-gnu/libQtScript.so.4
#9 0x00007f68046a3c58 in qScriptValueFromValue_helper (ptr=0x7fff39f1aec0,
type=, engine=0x36f0590)
at /usr/include/qt4/QtScript/qscriptengine.h:328
#10 qScriptValueFromValue (t=..., engine=0x36f0590)
at /usr/include/qt4/QtScript/qscriptengine.h:334
---Type to continue, or q to quit---
#11 float3_float3 (engine=0x36f0590, context=0x7f67ee7fa1b0)
at /home/playsign/src/naali/src/Application/JavascriptModule/qscript_float3.cpp:14
#12 float3_ctor (context=0x7f67ee7fa1b0, engine=0x36f0590)
at /home/playsign/src/naali/src/Application/JavascriptModule/qscript_float3.cpp:716
#13 0x00007f681695e343 in ?? () from /usr/lib/x86_64-linux-gnu/libQtScript.so.4
#14 0x00007f681687cb1c in ?? () from /usr/lib/x86_64-linux-gnu/libQtScript.so.4
#15 0x00007f681684d6aa in ?? () from /usr/lib/x86_64-linux-gnu/libQtScript.so.4
#16 0x00007f67eb8b20e1 in ?? ()
#17 0x00007fff39f1b300 in ?? ()
#18 0x00007f67ee786c00 in ?? ()
#19 0x00007f680000000e in ?? ()
from /home/playsign/src/naali-deps/install/lib/libPythonQt_QtAll.so.1
#20 0x00007fff00000001 in ?? ()
#21 0x00007f67ee7851c0 in ?? ()
#22 0x0000000000000005 in ?? ()
#23 0x000000003f800000 in ?? ()
#24 0x0000000000000000 in ?? ()
(gdb)