← Back to team overview

yade-users team mailing list archive

[Question #688649]: Another startup crash at GlobalError::PushToStack() () from */libapt-pkg.so.5.0

 

New question #688649 on Yade:
https://answers.launchpad.net/yade/+question/688649

Hi,

It seems I'm facing a similar issue than [*]. Here, it's about a local source code that I wrote during the late Python 2-era, and which I'm now trying to re-import into a more recent (Python 3) version of YADE source code.

Compilation is OK but I get segmentation fault launching YADE:

$ ./yade-2020.01aModified
Welcome to Yade 2020.01a  # It's a modified version, without my changes everything is OK
Using python version: 3.6.9 (default, Nov  7 2019, 10:44:02) 
[GCC 8.3.0]
Segmentation fault (core dumped)

Catchsegv or asan-enabled executables both point (among other things..) to the same error than [*], see e.g., for catchsegv Backtrace:
/usr/lib/x86_64-linux-gnu/libapt-pkg.so.5.0(_ZN11GlobalError11PushToStackEv+0x59)[0x7f3092cd02a9]
/usr/lib/x86_64-linux-gnu/libapt-pkg.so.5.0(_Z13pkgInitConfigR13Configuration+0xf92)[0x7f3092d54082]

Similar to [1] quoted in Anton's post # 4 of [*], I also have both Python2 and Python3 versions of various *boost-python* packages on my machine (all apt-installed).

However, I'm still puzzled in front of the situation (trying -DPYTHON_VERSION=3.6 at cmake did not help for instance ; I also did not really understand Anton's suggestion in [*]), and would appreciate very much if further comments/questions for clarification could be raised to my problem or to [*] ?


[*] https://answers.launchpad.net/yade/+question/684063
[1] https://stackoverflow.com/questions/57064962/boost-python-own-module-throws-segmentation-fault-globalerrorpushtostack

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.