Yade cannot startup. Segmentation fault. 0x00007fffdbce42a9 in GlobalError::PushToStack() () from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.5.0

Asked by Christopher Cheung

Hi, everyone

The system I use is Ubuntu18.04 LTS and python3.6 .

I am still able to compile the yade code without error-crash . However, after compiling Yade myself, I cannot start it. So I use GDB for debugging. I got the message:

(gdb) file python3
Reading symbols from python3...Reading symbols from /usr/lib/debug/.build-id/7e/344558c44917d45fc0b07da78718ab97be17dd.debug...done.
done.

(gdb) run yade-2019-08-25.git-0f74746
Starting program: /usr/bin/python3 yade-2019-08-25.git-0f74746
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Welcome to Yade 2019-08-25.git-0f74746
Using python version: 3.6.8 (default, Aug 20 2019, 17:12:48)
[GCC 8.3.0]

Program received signal SIGSEGV, Segmentation fault.
0x00007fffdbce42a9 in GlobalError::PushToStack() ()
   from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.5.0

I don't know how to solve this problem, could you give me some hints?

Thanks
Christopher

Question information

Language:
English Edit question
Status:
Expired
For:
Yade Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Robert Caulk (rcaulk) said :
#1

>However, after compiling Yade myself, I cannot start it.

Ok. It would be (very) helpful to know what happens when you try to start yade normally. Is there an error? If so, what is that error?

Please and thank you for reviewing [1].

Cheers,

Robert

[1]https://www.yade-dem.org/wiki/Howtoask

Revision history for this message
Jérôme Duriez (jduriez) said :
#2

Instead / In addition to gdb, consider also compile your YADE version with -DDEBUG=ON in cmake, and look at / show us the trace you get launching YADE

Revision history for this message
Launchpad Janitor (janitor) said :
#3

This question was expired because it remained in the 'Needs information' state without activity for the last 15 days.

Revision history for this message
Anton Gladky (gladky-anton) said :
#4

Looks like a similar error here was described [1]. Did you install self-comiled boost?
Anyway, you can try to fix it here [2].

[1] https://stackoverflow.com/questions/57064962/boost-python-own-module-throws-segmentation-fault-globalerrorpushtostack
[2] https://gitlab.com/yade-dev/trunk/blob/master/cMake/YadePythonHelpers.cmake#L59

Revision history for this message
Jérôme Duriez (jduriez) said :
#5

A similar discussion my continue at https://answers.launchpad.net/yade/+question/688649