<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 9 Aug 2019, at 5:07 am, Owen <<a href="mailto:owen.cook@gmx.com" class="">owen.cook@gmx.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class=""><br class=""><br class=""><blockquote type="cite" class="">Sent: Friday, August 09, 2019 at 10:08 AM<br class="">From: "Gregory Pittman" <<a href="mailto:gpittman@iglou.com" class="">gpittman@iglou.com</a>><br class="">To: <a href="mailto:scribus-dev@lists.scribus.net" class="">scribus-dev@lists.scribus.net</a><br class="">Subject: Re: [scribus-dev] crash of 1.5.6svn<br class=""><br class="">On 8/8/19 7:26 PM, Gregory Pittman wrote:<br class=""><blockquote type="cite" class="">On 8/8/19 5:57 PM, William Bader wrote:<br class=""><blockquote type="cite" class="">If you haven't done it already, try removing the objects and doing a fresh build.<br class="">If it still crashes, if you have Linux, try running it under gdb.<br class=""> gdb /path/to/scribus/executable<br class="">gdb might take a while to load everything. When you get a prompt, start scribus with the "run" command.<br class="">If it crashes and takes you back to a gdb prompt, use the "bt" command to get a stack backtrace.<br class="">If the stack trace doesn't show line numbers, do a fresh build adding -DCMAKE_BUILD_TYPE=Debug to your cmake options.<br class="">If it still doesn't show anything useful, try running it under valgrind.<br class=""> valgrind -v --tool=memcheck /path/to/scribus/executable<br class=""></blockquote><br class="">I tried nuking the contents of my build_dir and the install directory, reran cmake and make install, still crashes.<br class="">gdb told me I needed debug-infos on 208 packages so I installed those. <br class=""><br class="">here's what I get from bt:<br class=""><br class="">#0 0x00000000000336a6 in ?? ()<br class="">#1 0x00007fffd60fb582 in importpdf_getPlugin () at /home/gregp/development/Scribus15x/scribus/plugins/import/pdf/importpdfplugin.cpp:36<br class="">#2 0x0000000000886532 in PluginManager::loadPlugin (this=0x16511d0, pda=...) at /home/gregp/development/Scribus15x/scribus/pluginmanager.cpp:535<br class="">#3 0x0000000000883890 in PluginManager::initPlugin (this=0x16511d0, fileName=...) at /home/gregp/development/Scribus15x/scribus/pluginmanager.cpp:157<br class="">#4 0x0000000000883cde in PluginManager::initPlugs (this=0x16511d0) at /home/gregp/development/Scribus15x/scribus/pluginmanager.cpp:207<br class="">#5 0x0000000000a092a8 in ScribusCore::initScribusCore (this=0x17333a0, showSplash=true, showFontInfo=false, showProfileInfo=false, newGuiLanguage=...)<br class=""> at /home/gregp/development/Scribus15x/scribus/scribuscore.cpp:202<br class="">#6 0x0000000000a08cf1 in ScribusCore::startGUI (this=0x17333a0, showSplash=true, showFontInfo=false, showProfileInfo=false, newGuiLanguage=...)<br class=""> at /home/gregp/development/Scribus15x/scribus/scribuscore.cpp:118<br class="">#7 0x0000000000a05599 in ScribusQApp::init (this=0x7fffffffd970) at /home/gregp/development/Scribus15x/scribus/scribusapp.cpp:368<br class="">#8 0x000000000101e4e7 in mainApp (argc=1, argv=0x7fffffffdaf8) at /home/gregp/development/Scribus15x/scribus/main_nix.cpp:74<br class="">#9 0x000000000101e478 in main (argc=1, argv=0x7fffffffdaf8) at /home/gregp/development/Scribus15x/scribus/main_nix.cpp:53<br class=""><br class=""></blockquote><br class="">So now I've nuked my download directory, again nuked the build directory and the install directory. Now using revision 23119. Still crashes.<br class="">I note that, perhaps going along with the above bt output, the crash happens when the splash screen is showing various plugins being started.<br class=""></blockquote><br class=""><br class=""><br class=""><a href="https://bugs.scribus.net/view.php?id=6897" class="">https://bugs.scribus.net/view.php?id=6897</a> where it says,<br class=""><br class="">it is fixed by ensuring this line in CMakeCache.txt:<br class=""><br class="">CMAKE_EXE_LINKER_FLAGS:STRING=-Wl,-E<br class=""><br class=""><br class="">The string was empty so I added -Wl,-E and rebuilt<br class=""><br class=""><br class="">Hey presto, it all works.<br class=""><br class="">However, it seems that CMakeCache.txt is a generated file and whatever generates it needs to be fixed.<br class=""><br class=""><br class=""></div></div></blockquote></div><br class=""><div class="">Try with r23121.. its the only thing that’s possible but you might need to nuke your build directory and install directory.</div><div class=""><br class=""></div><div class="">As for the linker flags we have them applied with:</div><div class="">
<pre style="margin-top: 0px; margin-bottom: 0px;" class=""><!--StartFragment--><span style=" color:#808000;" class="">if</span><span style=" color:#c0c0c0;" class=""> </span>(<span style=" color:#000080;" class="">CMAKE_SYSTEM_NAME</span><span style=" color:#c0c0c0;" class=""> </span>STREQUAL<span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">"FreeBSD"</span><span style=" color:#c0c0c0;" class=""> </span>OR<span style=" color:#c0c0c0;" class=""> </span><span style=" color:#000080;" class="">CMAKE_SYSTEM_NAME</span><span style=" color:#c0c0c0;" class=""> </span>STREQUAL<span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">"OpenBSD"</span>)</pre>
<pre style="margin-top: 0px; margin-bottom: 0px;" class=""><span style=" color:#008000;" class="">#</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">Use</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">the</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">-E</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">/</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">--export-dynamic</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">flag</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">to</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">ensure</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">that</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">symbols</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">in</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">the</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">Scribus</span></pre>
<pre style="margin-top: 0px; margin-bottom: 0px;" class=""><span style=" color:#008000;" class="">#</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">binary</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">are</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">in</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">the</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">public</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">symbol</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">table</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">for</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">plugins.</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">The</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">symbols</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">must</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">also</span></pre>
<pre style="margin-top: 0px; margin-bottom: 0px;" class=""><span style=" color:#008000;" class="">#</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">be</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">set</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">as</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">SCRIBUS_API</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">if</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">we're</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">building</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">with</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">-fvisibility=hidden</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">.</span></pre>
<pre style="margin-top: 0px; margin-bottom: 0px;" class=""><span style=" color:#008000;" class="">#</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">Should</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">fix</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">bug</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">6897</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">.</span></pre>
<pre style="margin-top: 0px; margin-bottom: 0px;" class=""><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#808000;" class="">set_target_properties</span>(<span style=" color:#000080;" class="">${EXE_NAME}</span><span style=" color:#c0c0c0;" class=""> </span>PROPERTIES<span style=" color:#c0c0c0;" class=""> </span>LINK_FLAGS<span style=" color:#c0c0c0;" class=""> </span>-Wl,-E)</pre>
<pre style="margin-top: 0px; margin-bottom: 0px;" class=""><span style=" color:#808000;" class="">endif</span><span style=" color:#c0c0c0;" class=""> </span>()</pre>
<pre style="margin-top: 0px; margin-bottom: 0px;" class=""><span style=" color:#808000;" class="">if</span><span style=" color:#c0c0c0;" class=""> </span>(GCC<span style=" color:#c0c0c0;" class=""> </span>AND<span style=" color:#c0c0c0;" class=""> </span>NOT<span style=" color:#c0c0c0;" class=""> </span><span style=" color:#000080;" class="">WIN32</span>)</pre>
<pre style="margin-top: 0px; margin-bottom: 0px;" class=""><span style=" color:#008000;" class="">#</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">Use</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">the</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">-E</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">/</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">--export-dynamic</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">flag</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">to</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">ensure</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">that</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">symbols</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">in</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">the</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">Scribus</span></pre>
<pre style="margin-top: 0px; margin-bottom: 0px;" class=""><span style=" color:#008000;" class="">#</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">binary</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">are</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">in</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">the</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">public</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">symbol</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">table</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">for</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">plugins.</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">The</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">symbols</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">must</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">also</span></pre>
<pre style="margin-top: 0px; margin-bottom: 0px;" class=""><span style=" color:#008000;" class="">#</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">be</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">set</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">as</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">SCRIBUS_API</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">if</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">we're</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">building</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">with</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">-fvisibility=hidden</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">.</span></pre>
<pre style="margin-top: 0px; margin-bottom: 0px;" class=""><span style=" color:#008000;" class="">#</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">Should</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">fix</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">bug</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">6897</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">.</span></pre>
<pre style="margin-top: 0px; margin-bottom: 0px;" class=""><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#808000;" class="">set_target_properties</span>(<span style=" color:#000080;" class="">${EXE_NAME}</span><span style=" color:#c0c0c0;" class=""> </span>PROPERTIES<span style=" color:#c0c0c0;" class=""> </span>LINK_FLAGS<span style=" color:#c0c0c0;" class=""> </span>-Wl,-E)</pre>
<pre style="margin-top: 0px; margin-bottom: 0px;" class=""><span style=" color:#808000;" class="">endif</span><span style=" color:#c0c0c0;" class=""> </span>()<!--EndFragment--></pre><div class=""><br class=""></div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">but.. GCC might not be true on your system?</div><div class=""><br class=""></div><div class="">Craig</div></body></html>