hython: Successful execution but exits with Fatal error: Segmentation fault when launching with specific module

   1631   0   0
User Avatar
Member
3 posts
Joined: Sept. 2018
Offline
Using `hython` in a Houdini and Octane setup everything seems work fine if I call simple commands like the following.

hython --version

[Octane] Octane API: 3.08.1
[Octane] HDK API: 16.5.473
[Octane] Houdini host version: 16.5.473
[Octane] Initializing Octane API
[Octane] WARNING: preferences file not found: /home/field/houdini16.5/octane.pref
INFOR: [nodes] -------------  Registering Octane VOP nodes
[Octane] INFOR: [nodes] -------------  Registering Octane VOP nodes
ERROR: [nodes] -------------    Custom attribute ID and IX don't match. Bypassing attribute
[Octane] ERROR: [nodes] -------------    Custom attribute ID and IX don't match. Bypassing attribute
INFOR: [nodes] -------------  Octane VOP nodes registered
[Octane] INFOR: [nodes] -------------  Octane VOP nodes registered
INFOR: [nodes] -------------  Registering the plugin custom VOP nodes
[Octane] INFOR: [nodes] -------------  Registering the plugin custom VOP nodes
INFOR: [nodes] -------------  Plugin custom VOP nodes registered
[Octane] INFOR: [nodes] -------------  Plugin custom VOP nodes registered
Python 2.7.5
INFOR: [api] ---------------  Closing the Octane API
[Octane] INFOR: [api] ---------------  Closing the Octane API

We're using our own Python modules but even just doing something simple like the following command results in a crash.

hython -m pip freeze

Here is the stack trace.

INFOR: [api] ---------------  Closing the Octane API
[Octane] INFOR: [api] ---------------  Closing the Octane API
9550 ThreadId=0x7f9d033ff700: Fatal error: Segmentation fault
-- TRACEBACK BEGIN --
Traceback from hython 16.5.473 (Compiled on Linux 2.6.32-573.3.1.el6.x86_64):
stackTrace() <libHoudiniUT.so>
signalCallback(UTsignalHandlerArg) <libHoudiniUT.so>
UT_Signal::UT_ComboSignalHandler:perator()(int, siginfo*, void*) const <libHoudiniUT.so>
UT_Signal::processSignal(int, siginfo*, void*) <libHoudiniUT.so>
__funlockfile <libpthread.so.0>
free (tcache.h:268)
Octane::maxHosts(Octane::NetInterfaceInfo const&) <liboctane.so>
Octane::ApiProjectWorkspace::getNodeGraphEditors() <liboctane.so>
Octane::ApiColorSwatch::create(bool, void (*)(Octane::ApiColorSwatch&, void*), void*) <liboctane.so>
start_thread <libpthread.so.0>
__GI___clone <libc.so.6>
-- TRACEBACK END --
9550: Fatal error: Segmentation fault (sent by pid 9550)
-- TRACEBACK BEGIN --
Traceback from hython 16.5.473 (Compiled on Linux 2.6.32-573.3.1.el6.x86_64):
stackTrace() <libHoudiniUT.so>
signalCallback(UTsignalHandlerArg) <libHoudiniUT.so>
UT_Signal::UT_ComboSignalHandler:perator()(int, siginfo*, void*) const <libHoudiniUT.so>
UT_Signal::processSignal(int, siginfo*, void*) <libHoudiniUT.so>
__funlockfile <libpthread.so.0>
__GI___pthread_timedjoin_ex <libpthread.so.0>
Octane::apiMode_Shared_exit(char const**) <liboctane.so>
HOctane_closeAPI() <Houdini_Octane_16.5.473.so>
doExitCallbacks() <libHoudiniUT.so>
__run_exit_handlers (exit.c:108)
__GI_exit (exit.c:139)
Py_Exit <libpython2.7.so.1.0>
Py_Exit <libpython2.7.so.1.0>
PyErr_PrintEx <libpython2.7.so.1.0>
PyGC_Collect <libpython2.7.so.1.0>
Py_Main <libpython2.7.so.1.0>
__gxx_personality_v0 <hython-bin>
__libc_start_main (libc-start.c:310)
__gxx_personality_v0 <hython-bin>
-- TRACEBACK END --

I doesn't seem to be specific to the Octane plugin because it works in the previous command. I wondered if this has anything to do with writing to stdout but it doesn't seem to because hython -c "print 'foo'"works as expected without a crash.

Any idea what could be causing this?
Edited by christianklotz - Nov. 15, 2018 14:09:25
  • Quick Links