Segmentation fault when starting simulation

Bug #1821201 reported by Christian
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KiCad
Expired
Undecided
Unassigned

Bug Description

MacOS 10.14.3 and KiCad 5.1.0 10.14 with demo sallen_key
crashes hard when pressing run icon in simulator window.

Process: kicad [782]
Path: /private/var/folders/*/kicad.app/Contents/MacOS/kicad
Identifier: org.kicad-pcb.kicad
Version: ??? (???)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: kicad [782]
User ID: 501

Date/Time: 2019-03-21 17:00:47.700 +0100
OS Version: Mac OS X 10.14.3 (18D109)
Report Version: 12

Time Awake Since Boot: 1200 seconds

System Integrity Protection: enabled

Notes: Translocated Process

Crashed Thread: 8

Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY

Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [782]

Tags: macos
Revision history for this message
Christian (eldtursar) wrote :
tags: added: macos
Revision history for this message
Wayne Stambaugh (stambaughw) wrote :

I tested this on windows and linux without issue so it appears to be specific to macos. Would one of our macos devs please confirm?

Changed in kicad:
status: New → Incomplete
Revision history for this message
Seth Hillbrand (sethh) wrote :

Works for me here. @Christian, please post your version information from KiCad->About KiCad->Copy Version Information

Application: kicad
Version: (5.1.0-0), release build
Libraries:
    wxWidgets 3.0.4
    libcurl/7.54.0 LibreSSL/2.6.4 zlib/1.2.11 nghttp2/1.24.1
Platform: Mac OS X (Darwin 18.2.0 x86_64), 64 bit, Little endian, wxMac
Build Info:
    wxWidgets: 3.0.4 (UTF-8,STL containers,compatible with 2.8)
    Boost: 1.68.0
    OpenCASCADE Community Edition: 6.9.1
    Curl: 7.54.0
    Compiler: Clang 9.0.0 with C++ ABI 1002

Build settings:
    USE_WX_GRAPHICS_CONTEXT=ON
    USE_WX_OVERLAY=ON
    KICAD_SCRIPTING=ON
    KICAD_SCRIPTING_MODULES=ON
    KICAD_SCRIPTING_PYTHON3=OFF
    KICAD_SCRIPTING_WXPYTHON=ON
    KICAD_SCRIPTING_WXPYTHON_PHOENIX=OFF
    KICAD_SCRIPTING_ACTION_MENU=ON
    BUILD_GITHUB_PLUGIN=ON
    KICAD_USE_OCE=ON
    KICAD_USE_OCC=OFF
    KICAD_SPICE=ON

Revision history for this message
Christian (eldtursar) wrote : Re: [Bug 1821201] Re: Segmentation fault when starting simulation
Download full text (3.2 KiB)

Hi

Here it is…

Best regards
Christian

Application: kicad
Version: (5.1.0-0), release build
Libraries:
    wxWidgets 3.0.4
    libcurl/7.54.0 LibreSSL/2.6.4 zlib/1.2.11 nghttp2/1.24.1
Platform: Mac OS X (Darwin 18.2.0 x86_64), 64 bit, Little endian, wxMac
Build Info:
    wxWidgets: 3.0.4 (UTF-8,STL containers,compatible with 2.8)
    Boost: 1.68.0
    OpenCASCADE Community Edition: 6.9.1
    Curl: 7.54.0
    Compiler: Clang 9.0.0 with C++ ABI 1002

Build settings:
    USE_WX_GRAPHICS_CONTEXT=ON
    USE_WX_OVERLAY=ON
    KICAD_SCRIPTING=ON
    KICAD_SCRIPTING_MODULES=ON
    KICAD_SCRIPTING_PYTHON3=OFF
    KICAD_SCRIPTING_WXPYTHON=ON
    KICAD_SCRIPTING_WXPYTHON_PHOENIX=OFF
    KICAD_SCRIPTING_ACTION_MENU=ON
    BUILD_GITHUB_PLUGIN=ON
    KICAD_USE_OCE=ON
    KICAD_USE_OCC=OFF
    KICAD_SPICE=ON

> 22 mars 2019 kl. 14:42 skrev Seth Hillbrand <email address hidden>:
>
> Works for me here. @Christian, please post your version information
> from KiCad->About KiCad->Copy Version Information
>
> Application: kicad
> Version: (5.1.0-0), release build
> Libraries:
> wxWidgets 3.0.4
> libcurl/7.54.0 LibreSSL/2.6.4 zlib/1.2.11 nghttp2/1.24.1
> Platform: Mac OS X (Darwin 18.2.0 x86_64), 64 bit, Little endian, wxMac
> Build Info:
> wxWidgets: 3.0.4 (UTF-8,STL containers,compatible with 2.8)
> Boost: 1.68.0
> OpenCASCADE Community Edition: 6.9.1
> Curl: 7.54.0
> Compiler: Clang 9.0.0 with C++ ABI 1002
>
> Build settings:
> USE_WX_GRAPHICS_CONTEXT=ON
> USE_WX_OVERLAY=ON
> KICAD_SCRIPTING=ON
> KICAD_SCRIPTING_MODULES=ON
> KICAD_SCRIPTING_PYTHON3=OFF
> KICAD_SCRIPTING_WXPYTHON=ON
> KICAD_SCRIPTING_WXPYTHON_PHOENIX=OFF
> KICAD_SCRIPTING_ACTION_MENU=ON
> BUILD_GITHUB_PLUGIN=ON
> KICAD_USE_OCE=ON
> KICAD_USE_OCC=OFF
> KICAD_SPICE=ON
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1821201
>
> Title:
> Segmentation fault when starting simulation
>
> Status in KiCad:
> Incomplete
>
> Bug description:
> MacOS 10.14.3 and KiCad 5.1.0 10.14 with demo sallen_key
> crashes hard when pressing run icon in simulator window.
>
>
> Process: kicad [782]
> Path: /private/var/folders/*/kicad.app/Contents/MacOS/kicad
> Identifier: org.kicad-pcb.kicad
> Version: ??? (???)
> Code Type: X86-64 (Native)
> Parent Process: ??? [1]
> Responsible: kicad [782]
> User ID: 501
>
> Date/Time: 2019-03-21 17:00:47.700 +0100
> OS Version: Mac OS X 10.14.3 (18D109)
> Report Version: 12
>
> Time Awake Since Boot: 1200 seconds
>
> System Integrity Protection: enabled
>
> Notes: Translocated Process
>
> Crashed Thread: 8
>
> Exception Type: EXC_BAD_ACCESS (SIGSEGV)
> Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000
> Exception Note: EXC_CORPSE_NOTIFY
>
> Termination Signal: Segmentation fault: 11
> Termination Reason: Namespace SIGNAL, Code 0xb
> Terminating Process: exc handler [782]
>
> To manage notifications about ...

Read more...

Revision history for this message
Christian (eldtursar) wrote :

Hi

as requested

Application: kicad
Version: (5.1.0-0), release build
Libraries:
    wxWidgets 3.0.4
    libcurl/7.54.0 LibreSSL/2.6.4 zlib/1.2.11 nghttp2/1.24.1
Platform: Mac OS X (Darwin 18.2.0 x86_64), 64 bit, Little endian, wxMac
Build Info:
    wxWidgets: 3.0.4 (UTF-8,STL containers,compatible with 2.8)
    Boost: 1.68.0
    OpenCASCADE Community Edition: 6.9.1
    Curl: 7.54.0
    Compiler: Clang 9.0.0 with C++ ABI 1002

Build settings:
    USE_WX_GRAPHICS_CONTEXT=ON
    USE_WX_OVERLAY=ON
    KICAD_SCRIPTING=ON
    KICAD_SCRIPTING_MODULES=ON
    KICAD_SCRIPTING_PYTHON3=OFF
    KICAD_SCRIPTING_WXPYTHON=ON
    KICAD_SCRIPTING_WXPYTHON_PHOENIX=OFF
    KICAD_SCRIPTING_ACTION_MENU=ON
    BUILD_GITHUB_PLUGIN=ON
    KICAD_USE_OCE=ON
    KICAD_USE_OCC=OFF
    KICAD_SPICE=ON

Revision history for this message
Seth Hillbrand (sethh) wrote :

@Christian- Did you run this from the disk image?

This line says that the application was not copied to the Applications folder:

"Notes: Translocated Process"

Revision history for this message
Christian (eldtursar) wrote :

Hi

No, it is in the application folder but one level down i.e. /Applications/Cad/KiCad

I tried to move it up again to the application folder but it gives the same result.

I have tried to reset the paths to default in launchctl also, but it did not make any change.

I will also try to start from another user account to see if there is something that
are in my .bashrc etc. that could upset your installation

best regards
christian

> 22 mars 2019 kl. 17:28 skrev Seth Hillbrand <email address hidden>:
>
> @Christian- Did you run this from the disk image?
>
> This line says that the application was not copied to the Applications
> folder:
>
> "Notes: Translocated Process"
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1821201
>
> Title:
> Segmentation fault when starting simulation
>
> Status in KiCad:
> Incomplete
>
> Bug description:
> MacOS 10.14.3 and KiCad 5.1.0 10.14 with demo sallen_key
> crashes hard when pressing run icon in simulator window.
>
>
> Process: kicad [782]
> Path: /private/var/folders/*/kicad.app/Contents/MacOS/kicad
> Identifier: org.kicad-pcb.kicad
> Version: ??? (???)
> Code Type: X86-64 (Native)
> Parent Process: ??? [1]
> Responsible: kicad [782]
> User ID: 501
>
> Date/Time: 2019-03-21 17:00:47.700 +0100
> OS Version: Mac OS X 10.14.3 (18D109)
> Report Version: 12
>
> Time Awake Since Boot: 1200 seconds
>
> System Integrity Protection: enabled
>
> Notes: Translocated Process
>
> Crashed Thread: 8
>
> Exception Type: EXC_BAD_ACCESS (SIGSEGV)
> Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000
> Exception Note: EXC_CORPSE_NOTIFY
>
> Termination Signal: Segmentation fault: 11
> Termination Reason: Namespace SIGNAL, Code 0xb
> Terminating Process: exc handler [782]
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/kicad/+bug/1821201/+subscriptions

Revision history for this message
Christian (eldtursar) wrote :

Hi

Regarding translocated, this must be the gatekeeper security that does that

see for example

https://www.synack.com/2016/12/16/untranslocating-apps/ <https://www.synack.com/2016/12/16/untranslocating-apps/>

best regards
christian

> 22 mars 2019 kl. 17:28 skrev Seth Hillbrand <email address hidden>:
>
> @Christian- Did you run this from the disk image?
>
> This line says that the application was not copied to the Applications
> folder:
>
> "Notes: Translocated Process"
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1821201
>
> Title:
> Segmentation fault when starting simulation
>
> Status in KiCad:
> Incomplete
>
> Bug description:
> MacOS 10.14.3 and KiCad 5.1.0 10.14 with demo sallen_key
> crashes hard when pressing run icon in simulator window.
>
>
> Process: kicad [782]
> Path: /private/var/folders/*/kicad.app/Contents/MacOS/kicad
> Identifier: org.kicad-pcb.kicad
> Version: ??? (???)
> Code Type: X86-64 (Native)
> Parent Process: ??? [1]
> Responsible: kicad [782]
> User ID: 501
>
> Date/Time: 2019-03-21 17:00:47.700 +0100
> OS Version: Mac OS X 10.14.3 (18D109)
> Report Version: 12
>
> Time Awake Since Boot: 1200 seconds
>
> System Integrity Protection: enabled
>
> Notes: Translocated Process
>
> Crashed Thread: 8
>
> Exception Type: EXC_BAD_ACCESS (SIGSEGV)
> Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000
> Exception Note: EXC_CORPSE_NOTIFY
>
> Termination Signal: Segmentation fault: 11
> Termination Reason: Namespace SIGNAL, Code 0xb
> Terminating Process: exc handler [782]
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/kicad/+bug/1821201/+subscriptions

Revision history for this message
Seth Hillbrand (sethh) wrote :

@Christian-

Sounds like yet another issue with Mac Translocation tracking. Unfortunately, apart from digging around in system internals, the best way to fix this is to delete your existing KiCad folder, delete the .dmg and empty trash.

Then, re-download the application and use the on-disk method to drag the KiCad folder into the /Applications folder (don't use a different window). Next, open the KiCad application (not eeschema or pcbnew). Then launch eeschema from inside KiCad.

This _should_ clear the flag and make the image read/write which will resolve your crash. Let us know if this procedure doesn't work.

Revision history for this message
Christian (eldtursar) wrote :
Download full text (3.2 KiB)

Hi again

I will try that when I get home and have a proper internet connection (i.e. not mobile 4G) to download again.

However I have:

1. removed kicad from my system by using the program "app cleaner" (dragged the main kicad app to it)

2. cleaned the attributes of the dmg file:
     xattr -c kicad-unified-5.1.0-10_14.dmg

    to get rid of the com.apple.quarantine attribute (well i.e. all of them)

3. opened the dmg and reinstalled as instructed

     which resulted in a new crash, spice2poly.cm?
     hmm… a closer look shows it references/finds another ngspice installation
     in my /Application folder. The official one.

4. removed the other ngspice installation in the /Application folder and
    it works..

 5. I have also reinstall ngspice in my /usr/local/bin which I run from python, mathematica etc. and it does not interfere.

In short….

A warning for apple's gatekeeper (install by drag only, no clicking around..) and a warning for the official ngspice installation in the Application folder
could be prudent perhaps…

Keep up the good work!

Best regards,
Christian

> 22 mars 2019 kl. 18:18 skrev Seth Hillbrand <email address hidden>:
>
> @Christian-
>
> Sounds like yet another issue with Mac Translocation tracking.
> Unfortunately, apart from digging around in system internals, the best
> way to fix this is to delete your existing KiCad folder, delete the .dmg
> and empty trash.
>
> Then, re-download the application and use the on-disk method to drag the
> KiCad folder into the /Applications folder (don't use a different
> window). Next, open the KiCad application (not eeschema or pcbnew).
> Then launch eeschema from inside KiCad.
>
> This _should_ clear the flag and make the image read/write which will
> resolve your crash. Let us know if this procedure doesn't work.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1821201
>
> Title:
> Segmentation fault when starting simulation
>
> Status in KiCad:
> Incomplete
>
> Bug description:
> MacOS 10.14.3 and KiCad 5.1.0 10.14 with demo sallen_key
> crashes hard when pressing run icon in simulator window.
>
>
> Process: kicad [782]
> Path: /private/var/folders/*/kicad.app/Contents/MacOS/kicad
> Identifier: org.kicad-pcb.kicad
> Version: ??? (???)
> Code Type: X86-64 (Native)
> Parent Process: ??? [1]
> Responsible: kicad [782]
> User ID: 501
>
> Date/Time: 2019-03-21 17:00:47.700 +0100
> OS Version: Mac OS X 10.14.3 (18D109)
> Report Version: 12
>
> Time Awake Since Boot: 1200 seconds
>
> System Integrity Protection: enabled
>
> Notes: Translocated Process
>
> Crashed Thread: 8
>
> Exception Type: EXC_BAD_ACCESS (SIGSEGV)
> Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000
> Exception Note: EXC_CORPSE_NOTIFY
>
> Termination Signal: Segmentation fault: 11
> Termination Reason: Namespace SIGNAL, Code 0xb
> Terminating Process: exc handler [782]
>
> To manage ...

Read more...

Revision history for this message
Christian (eldtursar) wrote :

Hi again

I will try that when I get home and have a proper internet connection (i.e. not mobile 4G) to download again.

However I have:

1. removed kicad from my system by using the program "app cleaner" (dragged the main kicad app to it)

2. cleaned the attributes of the dmg file:
     xattr -c kicad-unified-5.1.0-10_14.dmg

    to get rid of the com.apple.quarantine attribute (well i.e. all of them)

3. opened the dmg and reinstalled as instructed

     which resulted in a new crash, spice2poly.cm?
     hmm… a closer look shows it references/finds another ngspice installation
     in my /Application folder. The official one.

4. removed the other ngspice installation in the /Application folder and
    it works..

 5. I have also reinstall ngspice in my /usr/local/bin which I run from python, mathematica etc. and it does not interfere.

In short….

A warning for apple's gatekeeper (install by drag only, no clicking around..) and a warning for the official ngspice installation in the Application folder
could be prudent perhaps…

Keep up the good work!

Best regards,
Christian

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for KiCad because there has been no activity for 60 days.]

Changed in kicad:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.