Comment 0 for bug 1835296

Revision history for this message
Christian Conkle (conklech) wrote :

Running the 20190703 nightly MacOS build (which I believe has the new ngspice-30 library, although I don't know how to check), simulating the laser_driver or sallen_key demo project causes a hard crash of the entire KiCad application. In particular, pressing "Run/Stop Simulation" causes a segmentation fault in libngspice.0.dylib. Stack trace and version information below.

The other two demo simulation projects (rectifier, pspice) do not crash, and seem to give sensible simulation results.

The most obvious difference between the crashing (laser_driver, sallen_key) and working (rectifier, pspice) projects is that the crashing projects include external spice model libraries (e.g. ad8009.lib in laser_driver) and the working projects use only internal modules. My own projects seem to crash if they include external models, but I haven't systematically tested.

Please let me know if I can provide any additional information.

Stack trace:

Crashed Thread: 13

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

...

Thread 13 Crashed:
0 libngspice.0.dylib 0x000000011a962c5d MIFsetup + 109
1 libngspice.0.dylib 0x000000012623f3d6 CKTsetup + 214
2 libngspice.0.dylib 0x00000001262391b1 CKTdoJob + 961
3 libngspice.0.dylib 0x0000000125e48050 if_run + 1296
4 libngspice.0.dylib 0x0000000125e4513e dosim + 894
5 libngspice.0.dylib 0x0000000125e148cb docommand + 299
6 libngspice.0.dylib 0x0000000125e13ece doblock + 126
7 libngspice.0.dylib 0x0000000125e13ca3 cp_evloop + 2547
8 libngspice.0.dylib 0x0000000125e0a531 _thread_run + 65
9 libsystem_pthread.dylib 0x00007fff71c342eb _pthread_body + 126
10 libsystem_pthread.dylib 0x00007fff71c37249 _pthread_start + 66
11 libsystem_pthread.dylib 0x00007fff71c3340d thread_start + 13

Version information:

Application: Eeschema
Version: (5.1.0-1195-g72308fe16), debug build
Libraries:
    wxWidgets 3.0.4
    libcurl/7.54.0 LibreSSL/2.6.5 zlib/1.2.11 nghttp2/1.24.1
Platform: Mac OS X (Darwin 18.6.0 x86_64), 64 bit, Little endian, wxMac
Build Info:
    wxWidgets: 3.0.4 (wchar_t,STL containers,compatible with 2.8)
    Boost: 1.69.0
    OpenCASCADE Community Edition: 6.9.1
    Curl: 7.54.0
    Compiler: Clang 9.0.0 with C++ ABI 1002

Build settings:
    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