Report any bugs here and we'll post fixes
Moderators: Sascha Willems, Thomas
by carli2 » Fri Jun 15, 2012 3:34 am
Hi,
when using Newton under linux linking into freepascal, I get
- Code: Select all
Program received signal SIGSEGV, Segmentation fault.
0x0000000000000000 in ?? ()
(gdb) backtrace
#0 0x0000000000000000 in ?? ()
#1 0x0000000000601f35 in dgMemoryAllocator::MallocLow (this=0x9f8308, workingSize=<optimized out>, alignment=64)
at ../../source/core/dgMemory.cpp:131
#2 0x00000000005f2498 in NewtonCreate () at ../../source/newton/Newton.cpp:162
The dynamic library works. Do you see a quick-fix [or workaround] so I can use the static version?
-
carli2
-
- Posts: 157
- Joined: Thu Nov 10, 2011 1:53 pm
by Julio Jerez » Fri Jun 15, 2012 9:22 am
I believe the demos are linking to teh static version, no to the .so
form teh make file
- Code: Select all
# this use newton as shared or static library
NEWTON_LIB = \
$(SDK_NEWTON_PATH)/libNewton.a \
$(SDK_NEWTON_PATH)/libdMath.a \
$(SDK_NEWTON_PATH)/libdScene.a \
$(SDK_NEWTON_PATH)/libdContainers.a \
$(SDK_NEWTON_PATH)/libdJointLibrary.a \
$(SDK_NEWTON_PATH)/libdVisualDebuggerServer.a \
$(SDK_NEWTON_PATH)/libdAILibrary.a \
$(SDK_NEWTON_PATH)/libTinyXML.a
I do not know why that will crash in pascal.
had you stepped in debug?
-
Julio Jerez
- Moderator
-
- Posts: 12249
- Joined: Sun Sep 14, 2003 2:18 pm
- Location: Los Angeles
-
Return to Bugs and Fixes
Who is online
Users browsing this forum: No registered users and 6 guests