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