Weird segfault in liblua (v.3.5.0)

Report crashes, strange behaviour, or apparent bugs
Post Reply
fgolemo
Posts: 1
Joined: 05 Sep 2017, 21:48

Weird segfault in liblua (v.3.5.0)

Post by fgolemo »

Hey, so I just downloaded the new version of V-Rep and whenever I'm trying to connect via the Python RemoteAPI I get the following error and V-Rep just crashes:

How can I debug this? This is on a fresh installation of (K)Ubuntu 17.10.

EDIT: the same invocation code worked fine with version v.3.4.0.

Code: Select all

...
Plugin 'RemoteApi': load succeeded.
Plugin 'RosInterface': loading...
Error with plugin 'RosInterface': load failed (could not load). The plugin probably couldn't load dependency libraries. For additional infos, modify the script 'libLoadErrorCheck.sh', run it and inspect the output.
Plugin 'SDF': loading...
Plugin 'SDF': warning: replaced variable 'simSDF'
Plugin 'SDF': load succeeded.
Plugin 'SurfaceReconstruction': loading...
Plugin 'SurfaceReconstruction': warning: replaced variable 'simSurfRec'
Error: signal 11:
libv_rep.so(_Z11_segHandleri+0x28)[0x7fa220068c58]
/lib/x86_64-linux-gnu/libc.so.6(+0x37140)[0x7fa22412d140]
libv_rep.so(_Z15luaHookFunctionPvS_+0x182)[0x7fa2200c2142]
/home/florian/tools/V-REP_PRO_EDU_V3_5_0_Linux/liblua5.1.so(+0xbb7b)[0x7fa2252b1b7b]
/home/florian/tools/V-REP_PRO_EDU_V3_5_0_Linux/liblua5.1.so(+0x165b3)[0x7fa2252bc5b3]
/home/florian/tools/V-REP_PRO_EDU_V3_5_0_Linux/liblua5.1.so(+0xc61e)[0x7fa2252b261e]
/home/florian/tools/V-REP_PRO_EDU_V3_5_0_Linux/liblua5.1.so(+0xbd77)[0x7fa2252b1d77]
/home/florian/tools/V-REP_PRO_EDU_V3_5_0_Linux/liblua5.1.so(+0xbdf5)[0x7fa2252b1df5]
/home/florian/tools/V-REP_PRO_EDU_V3_5_0_Linux/liblua5.1.so(lua_pcall+0x55)[0x7fa2252add35]
libv_rep.so(_ZN16CLuaScriptObject9_luaPCallEPviii+0x1a)[0x7fa22000293a]
QMutex: destroying locked mutex

And here is the output of libLoadErrorCheck:

Code: Select all

florian:V-REP_PRO_EDU_V3_5_0_Linux/ $ ./libLoadErrorCheck.sh                                                                                     [17:38:37]
        linux-vdso.so.1 =>  (0x00007ffde9bd7000)
        liblua5.1.so (0x00007fdb28479000)
        libqscintilla2.so.9 (0x00007fdb26ed0000)
        libQt5OpenGL.so.5 (0x00007fdb26c79000)
        libQt5Widgets.so.5 (0x00007fdb26448000)
        libQt5Gui.so.5 (0x00007fdb25c9b000)
        libQt5SerialPort.so.5 (0x00007fdb25a82000)
        libQt5Network.so.5 (0x00007fdb256f1000)
        libQt5Core.so.5 (0x00007fdb24fb9000)
        libGL.so.1 => /usr/lib/nvidia-390/libGL.so.1 (0x00007fdb24c7d000)
        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fdb24a5e000)
        libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fdb246d8000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fdb24382000)
        libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fdb2416b000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fdb23d8b000)
        libQt5PrintSupport.so.5 (0x00007fdb23b1d000)
        libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007fdb23900000)
        libicui18n.so.56 (0x00007fdb23467000)
        libicuuc.so.56 (0x00007fdb230af000)
        libicudata.so.56 (0x00007fdb216cc000)
        librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007fdb214c4000)
        libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fdb212c0000)
        libgthread-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgthread-2.0.so.0 (0x00007fdb210be000)
        libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007fdb20daa000)
        /lib64/ld-linux-x86-64.so.2 (0x00007fdb2837e000)
        libnvidia-tls.so.390.12 => /usr/lib/nvidia-390/tls/libnvidia-tls.so.390.12 (0x00007fdb20ba6000)
        libnvidia-glcore.so.390.12 => /usr/lib/nvidia-390/libnvidia-glcore.so.390.12 (0x00007fdb1edfb000)
        libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007fdb1eac2000)
        libXext.so.6 => /usr/lib/x86_64-linux-gnu/libXext.so.6 (0x00007fdb1e8b0000)
        libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007fdb1e63e000)
        libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007fdb1e417000)
        libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007fdb1e213000)
        libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007fdb1e00d000)
        libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007fdb1ddf8000)
EDIT2: I also installed Ubuntu's liblua5.1, removed the one shipped with V-Rep and copied over the system one into the V-Rep directory, but that didn't help either.

coppelia
Site Admin
Posts: 10312
Joined: 14 Dec 2012, 00:25

Re: Weird segfault in liblua (v.3.5.0)

Post by coppelia »

Hello,

to me it seems that it is crashing at V-REP start-up, when it tries to load the surface reconstruction plugin...
Did you try to remove that plugin and see if that changes anything? The plugin is the file libv_repExtSurfaceReconstruction.so.

From the console output, I don't see the link to Lua or the remote API...

Cheers

Valed
Posts: 8
Joined: 03 Feb 2014, 21:59

Re: Weird segfault in liblua (v.3.5.0)

Post by Valed »

Hi,

I'm getting a similar error trying to run the latest version of V-REP on Ubuntu 18.04:

vlad@vlad-UX331UN:~/Documents/V-REP_PRO_EDU_V3_5_0_Linux$ ./vrep.sh
Using the default Lua library.
Loaded the video compression library.
XmbTextListToTextProperty result code -2
XmbTextListToTextProperty result code -2
Add-on script 'vrepAddOnScript-addOnScriptDemo.lua' was loaded.
XmbTextListToTextProperty result code -2
Error: signal 11:
/home/vlad/Documents/V-REP_PRO_EDU_V3_5_0_Linux/libv_rep.so(_Z11_segHandleri+0x28)[0x7f9032d54878]
/lib/x86_64-linux-gnu/libc.so.6(+0x3ef20)[0x7f9036e7ff20]

Removing the .so you suggested doesn't help. Crashes on startup..

Any ideas?

Thanks!!

Valed
Posts: 8
Joined: 03 Feb 2014, 21:59

Re: Weird segfault in liblua (v.3.5.0)

Post by Valed »

Decided to move back to to 16.04. Everything works there. Cheers!

fabro
Posts: 2
Joined: 26 May 2017, 19:14

Re: Weird segfault in liblua (v.3.5.0)

Post by fabro »

Dear all,

Not sure it would help, but I've managed to run VREP 3.5.0 rev4 on Ubuntu 18.04. See viewtopic.php?f=5&t=7288&p=29472#p28740

Post Reply