Re: Segmentation fault when compiling
I've thrown some more memory at the problem. Increased actual memory from 3.5GB to 4GB. Seems to have fixed the problem. I already had 4GB of swap which I would have thought would have rolled in when the compiler needed it. For the record I'm running Slackware 14.2 - 64bit, Kernel 4.4.144 with 4GB of physical memory and 4GB of swap. All in VirtualBox 5.0.40. I shall drop back to 3.5GB and see if I can create the problem again. Alex On 01/08/18 11:34, Alex Kempshall wrote: I'm getting a segmentation fault when compiling. I've tried my usual techniques to overcome the problem such as - waiting till the next day and/or complete refresh. All to no avail. I've been compiling for several years without major incident. Last compiled successfully on July 6th 2018. Have I missed something that I should have done recently to cater for some change. I'm not aware of other people encountering this problem. Should I raise it as a bug? Alex [build DEP] LNK:Library/libavmedialo.so [build LNK] Library/libavmedialo.so [build DEP] LNK:Library/libdbplo.so [build LNK] Library/libdbplo.so /bin/sh: line 1: 1727 Segmentation fault ( LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}"$I/program:$I/program":$W/UnpackedTarball/cppunit/src/cppunit/.libs MALLOC_CHECK_=2 MALLOC_PERTURB_=153 $W/LinkTarget/Executable/cppunittester $W/LinkTarget/CppunitTest/libtest_vcl_lifecycle.so --headless "-env:BRAND_BASE_DIR=file://$S/instdir" "-env:BRAND_SHARE_SUBDIR=share" "-env:BRAND_SHARE_RESOURCE_SUBDIR=program/resource" "-env:UserInstallation=file://$W/CppunitTest/vcl_lifecycle.test.user" "-env:CONFIGURATION_LAYERS=xcsxcu:file://$I/share/registry xcsxcu:file://$W/unittest/registry" "-env:UNO_TYPES=file://$I/program/types.rdb file://$I/program/types/offapi.rdb" "-env:UNO_SERVICES=file://$W/Rdb/ure/services.rdb file://$W/ComponentTarget/configmgr/source/configmgr.component file://$W/ComponentTarget/i18npool/util/i18npool.component file://$W/ComponentTarget/ucb/source/core/ucb1.component file://$W/ComponentTarget/ucb/source/ucp/file/ucpfile1.component file://$W/ComponentTarget/framework/u/bin/sh: line 1: 1713 Segmentation fault ( LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}"$I/program:$I/program":$W/UnpackedTarball/cppunit/src/cppunit/.libs MALLOC_CHECK_=2 MALLOC_PERTURB_=153 $W/LinkTarget/Executable/cppunittester $W/LinkTarget/CppunitTest/libtest_toolkit.so --headless "-env:BRAND_BASE_DIR=file://$S/instdir" "-env:BRAND_SHARE_SUBDIR=share" "-env:BRAND_SHARE_RESOURCE_SUBDIR=program/resource" "-env:UserInstallation=file://$W/CppunitTest/toolkit.test.user" "-env:CONFIGURATION_LAYERS=xcsxcu:file://$I/share/registry xcsxcu:file://$W/unittest/registry" "-env:UNO_TYPES=file://$I/program/types/offapi.rdb file://$I/program/types.rdb" "-env:UNO_SERVICES=file://$W/Rdb/ure/services.rdb file://$W/ComponentTarget/comphelper/util/comphelp.component file://$W/ComponentTarget/configmgr/source/configmgr.component file://$W/ComponentTarget/framework/util/fwk.component file://$W/ComponentTarget/i18npool/util/i18npool.component file://$W/ComponentTarget/sfx2/util/sfx.component file://$W/ComponentTarget/toolkit/util/tk.component file://$W/ComponentTarget/ucb/source/core/ucb1.component file://$W/ComponentTarget/ucb/source/ucp/file/ucpfile1.component" -env:URE_INTERNAL_LIB_DIR=file://$I/program -env:LO_LIB_DIR=file://$I/program -env:LO_JAVA_DIR=file://$I/program/classes --protector $W/LinkTarget/Library/unoexceptionprotector.so unoexceptionprotector --protector $W/LinkTarget/Library/unobootstrapprotector.so unobootstrapprotector --protector $W/LinkTarget/Library/libvclbootstrapprotector.so vclbootstrapprotector "-env:CPPUNITTESTTARGET=$W/CppunitTest/toolkit.test" ) > $W/CppunitTest/toolkit.test.log 2>&1 til/fwk.component file://$W/ComponentTarget/sfx2/util/sfx.component" -env:URE_INTERNAL_LIB_DIR=file://$I/program -env:LO_LIB_DIR=file://$I/program -env:LO_JAVA_DIR=file://$I/program/classes --protector $W/LinkTarget/Library/unoexceptionprotector.so unoexceptionprotector --protector $W/LinkTarget/Library/unobootstrapprotector.so unobootstrapprotector --protector $W/LinkTarget/Library/libvclbootstrapprotector.so vclbootstrapprotector "-env:CPPUNITTESTTARGET=$W/CppunitTest/vcl_lifecycle.test" ) > $W/CppunitTest/vcl_lifecycle.test.log 2>&1 warn:vcl.opengl:1713:1713:vcl/opengl/x11/X11DeviceInfo.cxx:356: unknown vendor => blocked Window position and size in pixel: X: 100 Y: 100 Width: 640 Height: 480 Window position: X: 2646 1/100mm Y: 2646 1/100mm Window size: Width: 16933 1/100mm Height: 12700 1/100mm Window size: Width: 1693 1/10mm Height: 1270 1/10mm Window size: Width: 640 pixel Height: 480 pixel Window size: Width: 332 appfont Height: 295 appfont Window size: Width: 332 sysfont Height: 295 sysfont Window size: Width: 169 mm Height: 127 mm Window size: Width: 17 cm Height: 13 cm Window size: Width: 6667 1/1000inch Height: 5000 1/1000inch Window size: Width:
Re: Segmentation fault when compiling
This is not an issue specific to his environment. I'm also seeing the same seg fault on a clean Windows 32-bit debug build. $ cat autogen.input --enable-debug After a $ make clean && git pull && ./autogen.sh && make check I'm seeing: [build CUT] vcl_lifecycle [build SLC] drawinglayer [build DEP] LNK:CppunitTest/test_framework_dispatch.dll [build LNK] CppunitTest/test_framework_dispatch.dll Creating library C:/core/workdir/LinkTarget/CppunitTest/itest_framework_dispatch.lib and object C:/core/workdir/LinkTarget/CppunitTest/itest_framework_dispatch.exp [build LNK] Library/graphicfilterlo.dll /usr/bin/sh: line 1: 6360 Segmentation fault ( PATH="C:\core\instdir\program;C:\core\instdir\program;C:\core\workdir\LinkTarget\Library;C:\core\workdir\UnpackedTarball\cppunit\src\cppunit\ReleaseDll;$PATH" $W/LinkTarget/Executable/cppunittester.exe $W/LinkTarget/CppunitTest/test_vcl_lifecycle.dll --headless "-env:BRAND_BASE_DIR=file:///$S/instdir" "-env:BRAND_SHARE_SUBDIR=share" "-env:BRAND_SHARE_RESOURCE_SUBDIR=program/resource" "-env:UserInstallation=file:///$W/CppunitTest/vcl_lifecycle.test.user" "-env:CONFIGURATION_LAYERS=xcsxcu:file:///$I/share/registry xcsxcu:file:///$W/unittest/registry" "-env:UNO_TYPES=file:///$I/program/types.rdb file:///$I/program/types/offapi.rdb" "-env:UNO_SERVICES=file:///$W/Rdb/ure/services.rdb file:///$W/ComponentTarget/configmgr/source/configmgr.component file:///$W/ComponentTarget/i18npool/util/i18npool.component file:///$W/ComponentTarget/ucb/source/core/ucb1.component file:///$W/ComponentTarget/ucb/source/ucp/file/ucpfile1.component file:///$W/ComponentTarget/framework/util/fwk.component file:///$W/ComponentTarget/sfx2/util/sfx.component" -env:URE_INTERNAL_LIB_DIR=file:///$I/program -env:LO_LIB_DIR=file:///$I/program -env:LO_JAVA_DIR=file:///$I/program/classes --protector $W/LinkTarget/Library/unoexceptionprotector.dll unoexceptionprotector --protector $W/LinkTarget/Library/unobootstrapprotector.dll unobootstrapprotector --protector $W/LinkTarget/Library/vclbootstrapprotector.dll vclbootstrapprotector "-env:CPPUNITTESTTARGET=$W/CppunitTest/vcl_lifecycle.test" ) > $W/CppunitTest/vcl_lifecycle.test.log 2>&1 warn:vcl.window:18848:3412:vcl/source/window/window.cxx:946: Window::Window(): pParent == NULL warn:vcl.opengl:18848:3412:vcl/opengl/win/WinDeviceInfo.cxx:506: use : warn:vcl.fonts:18848:3412:vcl/win/gdi/salfont.cxx:1300: WinSalGraphics::GetDevFontList(): enter LifecycleTest::testPostDispose finished in: 2ms LifecycleTest::testFocus finished in: 2ms LifecycleTest::testLeakage finished in: 1544ms LifecycleTest::testToolkit finished in: 2ms OK (10) warn:fwk.desktop:18848:3412:framework/source/services/desktop.cxx:1069: Desktop disposed before terminating it warn:fwk.desktop:18848:3412:framework/source/services/desktop.cxx:191: Desktop not terminated before being destructed Error: a unit test failed, please do one of: make CppunitTest_vcl_lifecycle CPPUNITTRACE=TRUE # which is a shortcut for the following line make CppunitTest_vcl_lifecycle CPPUNITTRACE="'C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/Common7/IDE/devenv.exe' /debugexe" # for interactive debugging in Visual Studio make CppunitTest_vcl_lifecycle CPPUNITTRACE="drmemory -free_max_frames 20" # for memory checking (install Dr.Memory first, and put it to your PATH) You can limit the execution to just one particular test by: make CppunitTest_vcl_lifecycle CPPUNIT_TEST_NAME="testXYZ" ...above mentioned params... C:/core/solenv/gbuild/CppunitTest.mk:116: recipe for target 'C:/core/workdir/CppunitTest/vcl_lifecycle.test' failed make[1]: *** [C:/core/workdir/CppunitTest/vcl_lifecycle.test] Error 1 make[1]: *** Waiting for unfinished jobs Creating library C:/core/workdir/LinkTarget/Library/iavmedia.lib and object C:/core/workdir/LinkTarget/Library/iavmedia.exp Creating library C:/core/workdir/LinkTarget/Library/idbp.lib and object C:/core/workdir/LinkTarget/Library/idbp.exp Creating library C:/core/workdir/LinkTarget/Library/ixo.lib and object C:/core/workdir/LinkTarget/Library/ixo.exp Makefile:286: recipe for target 'build' failed make: *** [build] Error 2 -- Sent from: http://document-foundation-mail-archive.969070.n3.nabble.com/Dev-f1639786.html ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: Segmentation fault when compiling
Hi, On which env and version are you? 2 things: 1) bt you can try to retrieve a backtrace by using "ulimit -c unlimited" and relaunch "make" or type "make CppunitTest_toolkit CPPUNITTRACE="gdb --args" then in gdb, just type "run" then "bt" to retrieve bt. If 1) gives nothing-> 2) build tools (at least on Linux since I don't know for the rest) Perhaps some build tools have upgraded on your machine (eg gcc) and some cache is wrong So I'll try this: "ccache -C" (to clean ccache) make clean (to remove any built part) ./g pull -r ./autogen.sh && make Hope it helps a bit Julien -- Sent from: http://document-foundation-mail-archive.969070.n3.nabble.com/Dev-f1639786.html ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice