Opened 8 years ago
Closed 8 years ago
#4074 closed defect (fixed)
Segmentation fault when opening OMEdit nightly build but not stable build
Reported by: | Owned by: | Martin Sjölund | |
---|---|---|---|
Priority: | high | Milestone: | 1.11.0 |
Component: | OMEdit | Version: | v1.11.0 |
Keywords: | Cc: |
Description
I have been having stack overflow issues with libraries in stable build, so I removed it, updated the repository to nightly build, and reinstalled. Now i receive a segmentation fault when trying to open OMEdit. when I revert to stable build OMEdit opens correctly
Change History (8)
comment:1 by , 8 years ago
comment:2 by , 8 years ago
I'm running ubuntu 16.04.
I did a gdb run and got this (ran a bt after the seg fault):
<<start of output>> jallen@justin-ubuntu:~$ gdb OMEdit GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.04) 7.11.1 Copyright (C) 2016 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from OMEdit...(no debugging symbols found)...done. (gdb) run Starting program: /home/jallen/bin/OMEdit [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". [New Thread 0x7fffdf85e700 (LWP 30427)] [New Thread 0x7fffdf05d700 (LWP 30428)] [New Thread 0x7fffdc85c700 (LWP 30429)] [New Thread 0x7fffd805b700 (LWP 30430)] [New Thread 0x7fffd585a700 (LWP 30431)] [New Thread 0x7fffd3059700 (LWP 30432)] [New Thread 0x7fffd2858700 (LWP 30433)] Thread 1 "OMEdit" received signal SIGSEGV, Segmentation fault. 0x00007fffec24a5a4 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 (gdb) bt #0 0x00007fffec24a5a4 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #1 0x00007ffff7de74ea in call_init (l=<optimized out>, argc=argc@entry=1, argv=argv@entry=0x7fffffffdf68, env=env@entry=0x7fffffffdf78) at dl-init.c:72 #2 0x00007ffff7de75fb in call_init (env=0x7fffffffdf78, argv=0x7fffffffdf68, argc=1, l=<optimized out>) at dl-init.c:30 #3 _dl_init (main_map=0x7ffff7ffe168, argc=1, argv=0x7fffffffdf68, env=0x7fffffffdf78) at dl-init.c:120 #4 0x00007ffff7dd7cfa in _dl_start_user () from /lib64/ld-linux-x86-64.so.2 #5 0x0000000000000001 in ?? () #6 0x00007fffffffe2d2 in ?? () #7 0x0000000000000000 in ?? () (gdb) <<end of output>>
is this information sufficient? let me know if I can supply any more. I don't know a lot about linux program troubleshooting, but can take directions well.
comment:3 by , 8 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:4 by , 8 years ago
I can reproduce this error on the dev.openmodelica.org server.
It seems we link with both Qt4 and Qt5 and that's a no-no.
Martin, can you fix this?
adrpo@dev:~$ ldd /usr/bin/OMEdit > trace.txt 2>&1 adrpo@dev:~$ cat trace.txt linux-vdso.so.1 => (0x00007ffd293f6000) libOMPlot.so.1 => /usr/bin/../lib/x86_64-linux-gnu/omc/libOMPlot.so.1 (0x00007f58e9914000) libomqwt.so.6 => /usr/bin/../lib/x86_64-linux-gnu/omc/libomqwt.so.6 (0x00007f58e95c0000) libomantlr3.so => /usr/bin/../lib/x86_64-linux-gnu/omc/libomantlr3.so (0x00007f58e93a6000) libOpenModelicaCompiler.so => /usr/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so (0x00007f58e7dc7000) libOpenModelicaRuntimeC.so => /usr/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaRuntimeC.so (0x00007f58e7b5e000) libomcgc.so.1 => /usr/bin/../lib/x86_64-linux-gnu/omc/libomcgc.so.1 (0x00007f58e77f9000) libqjson.so.0 => /usr/bin/../lib/x86_64-linux-gnu/omc/libqjson.so.0 (0x00007f58e759b000) libQtWebKit.so.4 => /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4 (0x00007f58e5088000) libQtSvg.so.4 => /usr/lib/x86_64-linux-gnu/libQtSvg.so.4 (0x00007f58e4e2e000) libQtXmlPatterns.so.4 => /usr/lib/x86_64-linux-gnu/libQtXmlPatterns.so.4 (0x00007f58e47a8000) libQtXml.so.4 => /usr/lib/x86_64-linux-gnu/libQtXml.so.4 (0x00007f58e4562000) libQtGui.so.4 => /usr/lib/x86_64-linux-gnu/libQtGui.so.4 (0x00007f58e386d000) libQtNetwork.so.4 => /usr/lib/x86_64-linux-gnu/libQtNetwork.so.4 (0x00007f58e3518000) libQtCore.so.4 => /usr/lib/x86_64-linux-gnu/libQtCore.so.4 (0x00007f58e3025000) libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f58e2e07000) libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f58e2a85000) libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f58e277c000) libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f58e2565000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f58e219c000) libQt5Svg.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Svg.so.5 (0x00007f58e2145000) libQt5PrintSupport.so.5 => /usr/lib/x86_64-linux-gnu/libQt5PrintSupport.so.5 (0x00007f58e20d1000) libQt5Widgets.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 (0x00007f58e1a44000) libQt5Gui.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5 (0x00007f58e14fc000) libQt5Core.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 (0x00007f58e1025000) libGL.so.1 => /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1 (0x00007f58e0db4000) libomcruntime.so => /usr/bin/../lib/x86_64-linux-gnu/omc/libomcruntime.so (0x00007f58e0a2a000) libModelicaExternalC.so.0 => /usr/bin/../lib/x86_64-linux-gnu/omc/libModelicaExternalC.so.0 (0x00007f58e081f000) libomniORB4.so.1 => /usr/lib/libomniORB4.so.1 (0x00007f58e047b000) libomnithread.so.3 => /usr/lib/libomnithread.so.3 (0x00007f58e0274000) libfmilib_shared.so => /usr/bin/../lib/x86_64-linux-gnu/omc/libfmilib_shared.so (0x00007f58dffe9000) libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x00007f58dfdc0000) libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f58dfbbb000) libcolamd.so => /usr/bin/../lib/x86_64-linux-gnu/omc/libcolamd.so (0x00007f58df9b3000) libhwloc.so.5 => /usr/lib/x86_64-linux-gnu/libhwloc.so.5 (0x00007f58df779000) libuuid.so.1 => /lib/x86_64-linux-gnu/libuuid.so.1 (0x00007f58df573000) liblapack.so.3 => /usr/lib/liblapack.so.3 (0x00007f58ded7b000) libblas.so.3 => /usr/lib/libblas.so.3 (0x00007f58deb0c000) /lib64/ld-linux-x86-64.so.2 (0x00005611c16b2000) libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f58de8f1000) libXrender.so.1 => /usr/lib/x86_64-linux-gnu/libXrender.so.1 (0x00007f58de6e7000) libjpeg.so.8 => /usr/lib/x86_64-linux-gnu/libjpeg.so.8 (0x00007f58de48d000) libpng12.so.0 => /lib/x86_64-linux-gnu/libpng12.so.0 (0x00007f58de268000) libxslt.so.1 => /usr/lib/x86_64-linux-gnu/libxslt.so.1 (0x00007f58de02b000) libxml2.so.2 => /usr/lib/x86_64-linux-gnu/libxml2.so.2 (0x00007f58ddc71000) libgstapp-1.0.so.0 => /usr/lib/x86_64-linux-gnu/libgstapp-1.0.so.0 (0x00007f58dda62000) libgstpbutils-1.0.so.0 => /usr/lib/x86_64-linux-gnu/libgstpbutils-1.0.so.0 (0x00007f58dd82d000) libgstvideo-1.0.so.0 => /usr/lib/x86_64-linux-gnu/libgstvideo-1.0.so.0 (0x00007f58dd5a8000) libgstaudio-1.0.so.0 => /usr/lib/x86_64-linux-gnu/libgstaudio-1.0.so.0 (0x00007f58dd34a000) libgstbase-1.0.so.0 => /usr/lib/x86_64-linux-gnu/libgstbase-1.0.so.0 (0x00007f58dd0e6000) libgstreamer-1.0.so.0 => /usr/lib/x86_64-linux-gnu/libgstreamer-1.0.so.0 (0x00007f58dcdbc000) libgobject-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 (0x00007f58dcb68000) libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007f58dc857000) libsqlite3.so.0 => /usr/lib/x86_64-linux-gnu/libsqlite3.so.0 (0x00007f58dc582000) libfontconfig.so.1 => /usr/lib/x86_64-linux-gnu/libfontconfig.so.1 (0x00007f58dc33e000) libQtOpenGL.so.4 => /usr/lib/x86_64-linux-gnu/libQtOpenGL.so.4 (0x00007f58dc03c000) libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007f58dbd02000) libaudio.so.2 => /usr/lib/x86_64-linux-gnu/libaudio.so.2 (0x00007f58dbae8000) libfreetype.so.6 => /usr/lib/x86_64-linux-gnu/libfreetype.so.6 (0x00007f58db83e000) libSM.so.6 => /usr/lib/x86_64-linux-gnu/libSM.so.6 (0x00007f58db635000) libICE.so.6 => /usr/lib/x86_64-linux-gnu/libICE.so.6 (0x00007f58db41b000) libXi.so.6 => /usr/lib/x86_64-linux-gnu/libXi.so.6 (0x00007f58db20b000) libXext.so.6 => /usr/lib/x86_64-linux-gnu/libXext.so.6 (0x00007f58daff8000) librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f58dadf0000) libharfbuzz.so.0 => /usr/lib/x86_64-linux-gnu/libharfbuzz.so.0 (0x00007f58dab91000) libicui18n.so.55 => /usr/lib/x86_64-linux-gnu/libicui18n.so.55 (0x00007f58da72f000) libicuuc.so.55 => /usr/lib/x86_64-linux-gnu/libicuuc.so.55 (0x00007f58da39b000) libpcre16.so.3 => /usr/lib/x86_64-linux-gnu/libpcre16.so.3 (0x00007f58da134000) libxcb-dri3.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-dri3.so.0 (0x00007f58d9f31000) libxcb-present.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-present.so.0 (0x00007f58d9d2e000) libxcb-sync.so.1 => /usr/lib/x86_64-linux-gnu/libxcb-sync.so.1 (0x00007f58d9b26000) libxshmfence.so.1 => /usr/lib/x86_64-linux-gnu/libxshmfence.so.1 (0x00007f58d9923000) libglapi.so.0 => /usr/lib/x86_64-linux-gnu/libglapi.so.0 (0x00007f58d96f5000) libXdamage.so.1 => /usr/lib/x86_64-linux-gnu/libXdamage.so.1 (0x00007f58d94f1000) libXfixes.so.3 => /usr/lib/x86_64-linux-gnu/libXfixes.so.3 (0x00007f58d92eb000) libX11-xcb.so.1 => /usr/lib/x86_64-linux-gnu/libX11-xcb.so.1 (0x00007f58d90e9000) libxcb-glx.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-glx.so.0 (0x00007f58d8ecf000) libxcb-dri2.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-dri2.so.0 (0x00007f58d8cca000) libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f58d8aa8000) libXxf86vm.so.1 => /usr/lib/x86_64-linux-gnu/libXxf86vm.so.1 (0x00007f58d88a1000) libdrm.so.2 => /usr/lib/x86_64-linux-gnu/libdrm.so.2 (0x00007f58d8692000) libnuma.so.1 => /usr/lib/x86_64-linux-gnu/libnuma.so.1 (0x00007f58d8486000) libltdl.so.7 => /usr/lib/x86_64-linux-gnu/libltdl.so.7 (0x00007f58d827c000) libgfortran.so.3 => /usr/lib/x86_64-linux-gnu/libgfortran.so.3 (0x00007f58d7f51000) liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007f58d7d2e000) libgsttag-1.0.so.0 => /usr/lib/x86_64-linux-gnu/libgsttag-1.0.so.0 (0x00007f58d7af3000) liborc-0.4.so.0 => /usr/lib/x86_64-linux-gnu/liborc-0.4.so.0 (0x00007f58d7872000) libgmodule-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgmodule-2.0.so.0 (0x00007f58d766e000) libffi.so.6 => /usr/lib/x86_64-linux-gnu/libffi.so.6 (0x00007f58d7465000) libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f58d71f5000) libXt.so.6 => /usr/lib/x86_64-linux-gnu/libXt.so.6 (0x00007f58d6f8b000) libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007f58d6d87000) libgraphite2.so.3 => /usr/lib/x86_64-linux-gnu/libgraphite2.so.3 (0x00007f58d6b61000) libicudata.so.55 => /usr/lib/x86_64-linux-gnu/libicudata.so.55 (0x00007f58d50aa000) libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f58d4ea3000) libquadmath.so.0 => /usr/lib/x86_64-linux-gnu/libquadmath.so.0 (0x00007f58d4c64000)
comment:6 by , 8 years ago
Yes, I'll look into it. It compiles fine on my machine, but it seems not to on the build server... (These are the first builds using Qt5)
comment:7 by , 8 years ago
It seems to be... qjson that says "Qt5 not found". I have now fixed it (I think), and tomorrow's build should work fine. The problem seems to have been that make clean
didn't clear the cmake cache and somehow the ON/OFF for qjson looking for QT5 was disabled always.
comment:8 by , 8 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
We need more information.
What platform you are using? Can you run it with gdb and send us stack trace?