Summary: | Cannot use python scripting when compiling from source | ||
---|---|---|---|
Product: | [Applications] kig | Reporter: | Maurizio Paolini <maurizio.paolini> |
Component: | general | Assignee: | David E. Narvaez <david.narvaez> |
Status: | REOPENED --- | ||
Severity: | normal | CC: | lueck, pino, rdieter |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | kig file exposing the problem |
Description
Maurizio Paolini
2017-12-26 10:23:11 UTC
with kig master build from sources i have no crash here Given the known issues Fedora causes with their Python setup (see bug 335965), you will have to open this bug with Fedora first and if they can confirm this is not because of their setup then we'll look into that. (In reply to David E. Narvaez from comment #2) > Given the known issues Fedora causes with their Python setup (see bug > 335965), you will have to open this bug with Fedora first and if they can > confirm this is not because of their setup then we'll look into that. Allright... I was unsure about where to file the bug, I decided for bugs.kde.org because I see the problem for a source-compiled (from git master) version of kig, however everything else is "fedora 27". For example "boost-python" is boost-python-1.64.0-4.fc27.i686. Here is the reference of the bug entry in bugzilla.redhat.com: https://bugzilla.redhat.com/show_bug.cgi?id=1529346 dup of bug #335965 Poke, there's a fix available, https://git.reviewboard.kde.org/r/126549/ *** This bug has been marked as a duplicate of bug 335965 *** (In reply to Rex Dieter from comment #4) > dup of bug #335965 > > Poke, there's a fix available, > https://git.reviewboard.kde.org/r/126549/ > > *** This bug has been marked as a duplicate of bug *** Actually, this is a distinct issue. Applying the patch that solves bug 335965 does not solve this problem (present also for scripts that do not use Math my apologies, reopening Created attachment 109867 [details]
kig file exposing the problem
This kig file contains a very simple python script depending upon
a numeric label:
def calc( arg1 ):
x = arg1.coordinate().x
return DoubleObject (x)
This problem seems to appear when compiling from git sources when compiled against boost-devel-1.63.0 or later. In this version of boost the file /usr/include/boost/python/object_core.hpp contains an assert at line 425: ----------------------------------------------- inline api::object_base::~object_base() { assert( Py_REFCNT(m_ptr) > 0 ); Py_DECREF(m_ptr); } ----------------------------------------------- that fails. It took long to track the problem because the kig package compiled in a rpm fedora package is compiled with build flag -DNDEBUG which disables asserts. Can you reproduce the problem bu opening the kig file provided as attachment? |