drahnr / oregano

Schematic capture and circuit simulator
https://ahoi.io
GNU General Public License v2.0
214 stars 39 forks source link

oregano crash #217

Closed ghost closed 7 years ago

ghost commented 7 years ago

Steps to reproduce

  1. start oregano
  2. draw a schematic with PNP and NPN transistor
  3. click to run simulation

Expected behaviour

not crash Tell us what should happen crash.

XXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXX 0x5613dfee3f80 FALSE
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.
*** Error in `oregano': munmap_chunk(): invalid pointer: 0x00005613dd7c05fb ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x70bcb)[0x7f2504e33bcb]
/lib/x86_64-linux-gnu/libc.so.6(+0x76f96)[0x7f2504e39f96]
oregano(+0x7ca8c)[0x5613dd7a9a8c]
/lib/x86_64-linux-gnu/libglib-2.0.so.0(+0x4b123)[0x7f250761a123]
/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_dispatch+0x15a)[0x7f25076196aa]
/lib/x86_64-linux-gnu/libglib-2.0.so.0(+0x4aa60)[0x7f2507619a60]
/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_iteration+0x2c)[0x7f2507619b0c]
/usr/lib/x86_64-linux-gnu/libgio-2.0.so.0(g_application_run+0x20d)[0x7f250590c72d]
oregano(+0x2dad5)[0x5613dd75aad5]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf1)[0x7f2504de32b1]
oregano(+0x2d8ca)[0x5613dd75a8ca]
======= Memory map: ========
5613dd72d000-5613dd7dd000 r-xp 00000000 08:01 441172                     /usr/local/bin/oregano
5613dd9dd000-5613dd9de000 r--p 000b0000 08:01 441172                     /usr/local/bin/oregano
5613dd9de000-5613dd9eb000 rw-p 000b1000 08:01 441172                     /usr/local/bin/oregano
5613df5ca000-5613e0541000 rw-p 00000000 00:00 0                          [heap]
7f24d4000000-7f24d4022000 rw-p 00000000 00:00 0 
7f24d4022000-7f24d8000000 ---p 00000000 00:00 0 
7f24d8000000-7f24d8022000 rw-p 00000000 00:00 0 
7f24d8022000-7f24dc000000 ---p 00000000 00:00 0 
7f24dc000000-7f24dc022000 rw-p 00000000 00:00 0 
7f24dc022000-7f24e0000000 ---p 00000000 00:00 0 
7f24e0000000-7f24e0022000 rw-p 00000000 00:00 0 
7f24e0022000-7f24e4000000 ---p 00000000 00:00 0 
7f24e4000000-7f24e4022000 rw-p 00000000 00:00 0 
7f24e4022000-7f24e8000000 ---p 00000000 00:00 0 
7f24e9b8b000-7f24e9b8c000 ---p 00000000 00:00 0 
7f24e9b8c000-7f24ea38c000 rw-p 00000000 00:00 0 
7f24ea38c000-7f24ea38d000 ---p 00000000 00:00 0 
7f24ea38d000-7f24eab8d000 rw-p 00000000 00:00 0 
7f24eab8d000-7f24eab8e000 ---p 00000000 00:00 0 
7f24eab8e000-7f24eb38e000 rw-p 00000000 00:00 0 
7f24eb38e000-7f24eb38f000 ---p 00000000 00:00 0 
7f24eb38f000-7f24ebb8f000 rw-p 00000000 00:00 0 
7f24ebb8f000-7f24ebbc6000 r-xp 00000000 08:01 400618                     /usr/lib/x86_64-linux-gnu/libcroco-0.6.so.3.0.1
7f24ebbc6000-7f24ebdc6000 ---p 00037000 08:01 400618                     /usr/lib/x86_64-linux-gnu/libcroco-0.6.so.3.0.1
7f24ebdc6000-7f24ebdc9000 r--p 00037000 08:01 400618                     /usr/lib/x86_64-linux-gnu/libcroco-0.6.so.3.0.1
7f24ebdc9000-7f24ebdca000 rw-p 0003a000 08:01 400618                     /usr/lib/x86_64-linux-gnu/libcroco-0.6.so.3.0.1
7f24ebdca000-7f24ebdff000 r-xp 00000000 08:01 400654                     /usr/lib/x86_64-linux-gnu/librsvg-2.so.2.40.16
7f24ebdff000-7f24ebffe000 ---p 00035000 08:01 400654                     /usr/lib/x86_64-linux-gnu/librsvg-2.so.2.40.16
7f24ebffe000-7f24ebfff000 r--p 00034000 08:01 400654                     /usr/lib/x86_64-linux-gnu/librsvg-2.so.2.40.16
7f24ebfff000-7f24ec000000 rw-p 00035000 08:01 400654                     /usr/lib/x86_64-linux-gnu/librsvg-2.so.2.40.16
7f24ec000000-7f24ec022000 rw-p 00000000 00:00 0 
7f24ec022000-7f24f0000000 ---p 00000000 00:00 0 
7f24f0000000-7f24f0021000 rw-p 00000000 00:00 0 
7f24f0021000-7f24f4000000 ---p 00000000 00:00 0 
7f24f4000000-7f24f4022000 rw-p 00000000 00:00 0 
7f24f4022000-7f24f8000000 ---p 00000000 00:00 0 
7f24f8145000-7f24f8147000 r-xp 00000000 08:01 400656                     /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so
7f24f8147000-7f24f8346000 ---p 00002000 08:01 400656                     /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so
7f24f8346000-7f24f8347000 r--p 00001000 08:01 400656                     /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so
7f24f8347000-7f24f8348000 rw-p 00002000 08:01 400656                     /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so
7f24f8348000-7f24f83f5000 r--p 00000000 08:01 133031                     /usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf
7f24f83f5000-7f24f840f000 r--p 00000000 08:01 134603                     /usr/share/icons/Adwaita/icon-theme.cache
7f24f840f000-7f24f8430000 r--p 00000000 08:01 37429                      /usr/share/icons/mate/icon-theme.cache
7f24f8430000-7f24f8435000 r-xp 00000000 08:01 400584                     /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-png.so
7f24f8435000-7f24f8634000 ---p 00005000 08:01 400584                     /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-png.so
7f24f8634000-7f24f8635000 r--p 00004000 08:01 400584                     /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-png.so
7f24f8635000-7f24f8636000 rw-p 00005000 08:01 400584                     /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-png.so
7f24f8636000-7f24f8640000 r-xp 00000000 08:01 5632                       /lib/x86_64-linux-gnu/libnss_files-2.24.so
7f24f8640000-7f24f8840000 ---p 0000a000 08:01 5632                       /lib/x86_64-linux-gnu/libnss_files-2.24.so
7f24f8840000-7f24f8841000 r--p 0000a000 08:01 5632                       /lib/x86_64-linux-gnu/libnss_files-2.24.so
7f24f8841000-7f24f8842000 rw-p 0000b000 08:01 5632                       /lib/x86_64-linux-gnu/libnss_files-2.24.so
7f24f8842000-7f24f8848000 rw-p 00000000 00:00 0 
7f24f8848000-7f24f8853000 r-xp 00000000 08:01 5634                       /lib/x86_64-linux-gnu/libnss_nis-2.24.so
7f24f8853000-7f24f8a52000 ---p 0000b000 08:01 5634                       /lib/x86_64-linux-gnu/libnss_nis-2.24.so
7f24f8a52000-7f24f8a53000 r--p 0000a000 08:01 5634                       /lib/x86_64-linux-gnu/libnss_nis-2.24.so
7f24f8a53000-7f24f8a54000 rw-p 0000b000 08:01 5634                       /lib/x86_64-linux-gnu/libnss_nis-2.24.so
7f24f8a54000-7f24f8a68000 r-xp 00000000 08:01 5629                       /lib/x86_64-linux-gnu/libnsl-2.24.so
7f24f8a68000-7f24f8c68000 ---p 00014000 08:01 5629                       /lib/x86_64-linux-gnu/libnsl-2.24.so
7f24f8c68000-7f24f8c69000 r--p 00014000 08:01 5629                       /lib/x86_64-linux-gnu/libnsl-2.24.so
7f24f8c69000-7f24f8c6a000 rw-p 00015000 08:01 5629                       /lib/x86_64-linux-gnu/libnsl-2.24.so
7f24f8c6a000-7f24f8c6c000 rw-p 00000000 00:00 0 
7f24f8c6c000-7f24f8c73000 r-xp 00000000 08:01 5630                       /lib/x86_64-linux-gnu/libnss_compat-2.24.so
7f24f8c73000-7f24f8e72000 ---p 00007000 08:01 5630                       /lib/x86_64-linux-gnu/libnss_compat-2.24.so
7f24f8e72000-7f24f8e73000 r--p 00006000 08:01 5630                       /lib/x86_64-linux-gnu/libnss_compat-2.24.so
7f24f8e73000-7f24f8e74000 rw-p 00007000 08:01 5630                       /lib/x86_64-linux-gnu/libnss_compat-2.24.so
7f24f8e85000-7f24f8e86000 rw-p 00000000 00:00 0 
7f24f8e86000-7f24f8e8a000 r--p 00000000 08:01 400                        /usr/share/icons/hicolor/icon-theme.cache
7f24f8e8a000-7f24f928a000 rw-s 00000000 00:05 7503894                    /SYSV00000000 (deleted)
7f24f928a000-7f24f9343000 r--p 00000000 08:01 133032                     /usr/share/fonts/truetype/dejavu/DejaVuSans.ttf
7f24f9343000-7f24f9388000 rw-p 00000000 00:00 0 
7f24f9388000-7f24f9389000 r--p 00000000 08:01 441371                     /usr/local/share/icons/hicolor/icon-theme.cache
7f24f9389000-7f24f938b000 r--p 00000000 08:01 1974                       /usr/share/icons/menta/icon-theme.cache
7f24f938b000-7f24f938c000 r--s 00000000 08:01 262178                     /var/cache/fontconfig/588a141f52a60807c04143aedc63e678-le64.cache-4
7f24f938c000-7f24f9397000 r--s 00000000 08:01 261192                     /var/cache/fontconfig/945677eb7aeaf62f1d50efc3fb3ec7d8-le64.cache-4
7f24f9397000-7f24f9398000 r--s 00000000 08:01 302176                     /var/cache/fontconfig/4794a0821666d79190d59a36cb4f44b5-le64.cache-4
7f24f9398000-7f24f939e000 r--s 00000000 08:01 301702                     /var/cache/fontconfig/3047814df9a2f067bd2d96a2b9c36e5a-le64.cache-4
7f24f939e000-7f24f93a1000 r--s 00000000 08:01 296949                     /var/cache/fontconfig/e49e89034d371f0f9de17aab02136486-le64.cache-4
7f24f93a1000-7f24f93b4000 r--s 00000000 08:01 295620                     /var/cache/fontconfig/d52a8644073d54c13679302ca1180695-le64.cache-4
7f24f93b4000-7f24f93c0000 r--s 00000000 08:01 295497                     /var/cache/fontconfig/d589a48862398ed80a3d6066f4f56f4c-le64.cache-4
7f24f93c0000-7f24f93c4000 r--s 00000000 08:01 260463                     /var/cache/fontconfig/246184dc75a16901ca37d96895904249-le64.cache-4
7f24f93c4000-7f24f93c6000 r-xp 00000000 08:01 5641                       /lib/x86_64-linux-gnu/libutil-2.24.so
7f24f93c6000-7f24f95c5000 ---p 00002000 08:01 5641                       /lib/x86_64-linux-gnu/libutil-2.24.so
7f24f95c5000-7f24f95c6000 r--p 00001000 08:01 5641                       /lib/x86_64-linux-gnu/libutil-2.24.so
7f24f95c6000-7f24f95c7000 rw-p 00002000 08:01 5641                       /lib/x86_64-linux-gnu/libutil-2.24.so
7f24f95c7000-7f24f95fd000 r-xp 00000000 08:01 408885                     /usr/lib/x86_64-linux-gnu/gvfs/libgvfscommon.so
7f24f95fd000-7f24f97fd000 ---p 00036000 08:01 408885                     /usr/lib/x86_64-linux-gnu/gvfs/libgvfscommon.so
7f24f97fd000-7f24f9803000 r--p 00036000 08:01 408885                     /usr/lib/x86_64-linux-gnu/gvfs/libgvfscommon.so
7f24f9803000-7f24f9804000 rw-p 0003c000 08:01 408885                     /usr/lib/x86_64-linux-gnu/gvfs/libgvfscommon.so
7f24f9804000-7f24f9833000 r-xp 00000000 08:01 408910                     /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so
7f24f9833000-7f24f9a33000 ---p 0002f000 08:01 408910                     /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so
7f24f9a33000-7f24f9a35000 r--p 0002f000 08:01 408910                     /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so
7f24f9a35000-7f24f9a36000 rw-p 00031000 08:01 408910                     /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so
7f24f9a36000-7f24f9a37000 ---p 00000000 00:00 0 
7f24f9a37000-7f24fa237000 rw-p 00000000 00:00 0 
7f24fa237000-7f24fa238000 ---p 00000000 00:00 0 
7f24fa238000-7f24faa38000 rw-p 00000000 00:00 0 
7f24faa38000-7f24faa39000 ---p 00000000 00:00 0 
7f24faa39000-7f24fb239000 rw-p 00000000 00:00 0 
7f24fb239000-7f24fb245000 r-xp 00000000 08:01 404027                     /usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so
7f24fb245000-7f24fb444000 ---p 0000c000 08:01 404027                     /usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so
7f24fb444000-7f24fb445000 r--p 0000b000 08:01 404027                     /usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so
7f24fb445000-7f24fb446000 rw-p 0000c000 08:01 404027                     /usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so
7f24fb446000-7f24fb44c000 r-xp 00000000 08:01 400590                     /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-xpm.so
7f24fb44c000-7f24fb64b000 ---p 00006000 08:01 400590                     /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-xpm.so
7f24fb64b000-7f24fb64c000 r--p 00005000 08:01 400590                     /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-xpm.so
7f24fb64c000-7f24fb64d000 rw-p 00006000 08:01 400590                     /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-xpm.so
7f24fb64d000-7f24fb7eb000 r--p 00000000 08:01 390144                     /usr/lib/locale/locale-archive
7f24fb7eb000-7f24fb7fe000 r-xp 00000000 08:01 68                         /lib/x86_64-linux-gnu/libgpg-error.so.0.21.0
7f24fb7fe000-7f24fb9fd000 ---p 00013000 08:01 68                         /lib/x86_64-linux-gnu/libgpg-error.so.0.21.0
7f24fb9fd000-7f24fb9fe000 r--p 00012000 08:01 68                         /lib/x86_64-linux-gnu/libgpg-error.so.0.21.0
7f24fb9fe000-7f24fb9ff000 rw-p 00013000 08:01 68                         /lib/x86_64-linux-gnu/libgpg-error.so.0.21.0
7f24fb9ff000-7f24fbb06000 r-xp 00000000 08:01 136                        /lib/x86_64-linux-gnu/libgcrypt.so.20.1.6
7f24fbb06000-7f24fbd05000 ---p 00107000 08:01 136                        /lib/x86_64-linux-gnu/libgcrypt.so.20.1.6
7f24fbd05000-7f24fbd07000 r--p 00106000 08:01 136                        /lib/x86_64-linux-gnu/libgcrypt.so.20.1.6
7f24fbd07000-7f24fbd0e000 rw-p 00108000 08:01 136                        /lib/x86_64-linux-gnu/libgcrypt.so.20.1.6
7f24fbd0e000-7f24fbd1f000 r-xp 00000000 08:01 390303                     /usr/lib/x86_64-linux-gnu/liblz4.so.1.7.1
7f24fbd1f000-7f24fbf1e000 ---p 00011000 08:01 390303                     /usr/lib/x86_64-linux-gnu/liblz4.so.1.7.1
7f24fbf1e000-7f24fbf1f000 r--p 00010000 08:01 390303                     /usr/lib/x86_64-linux-gnu/liblz4.so.1.7.1
7f24fbf1f000-7f24fbf20000 rw-p 00011000 08:01 390303                     /usr/lib/x86_64-linux-gnu/liblz4.so.1.7.1
7f24fbf20000-7f24fbf24000 r-xp 00000000 08:01 139                        /lib/x86_64-linux-gnu/libuuid.so.1.3.0
7f24fbf24000-7f24fc123000 ---p 00004000 08:01 139                        /lib/x86_64-linux-gnu/libuuid.so.1.3.0
7f24fc123000-7f24fc124000 r--p 00003000 08:01 139                        /lib/x86_64-linux-gnu/libuuid.so.1.3.0
7f24fc124000-7f24fc125000 rw-p 00004000 08:01 139                        /lib/x86_64-linux-gnu/libuuid.so.1.3.0
7f24fc125000-7f24fc138000 r-xp 00000000 08:01 616                        /lib/x86_64-linux-gnu/libbsd.so.0.8.3
7f24fc138000-7f24fc338000 ---p 00013000 08:01 616                        /lib/x86_64-linux-gnu/libbsd.so.0.8.3
7f24fc338000-7f24fc339000 r--p 00013000 08:01 616                        /lib/x86_64-linux-gnu/libbsd.so.0.8.3
7f24fc339000-7f24fc33a000 rw-p 00014000 08:01 616                        /lib/x86_64-linux-gnu/libbsd.so.0.8.3
7f24fc33a000-7f24fc33b000 rw-p 00000000 00:00 0 
7f24fc33b000-7f24fc366000 r-xp 00000000 08:01 400644                     /usr/lib/x86_64-linux-gnu/libgraphite2.so.3.0.1

Actual behaviour

Tell us what happens instead

Configuration

Operating system: Debian 9.1

cat /etc/os-release |grep PRETTY_NAME
PRETTY_NAME="Debian GNU/Linux 9 (stretch)"

Versions

oregano --version
Oregano 0.84.10
 Website: https://ahoi.io/projects/oregano
 License: GPLv2/GPLv3
 Main Developer: Bernhard Schuster

ngspice --version
ngspice not installed
drahnr commented 7 years ago

Can you attach your schematic? Or a simplified version that still causes the crash?

Are you trying to run with gnucap?

gtrentalancia commented 7 years ago

It happened to me too, while using the gnucap engine. It crashed before displaying the simulation results.

Unfortunately, I don't know how to reproduce it...

gtrentalancia commented 7 years ago

Might (or might not) be fixed here:

https://github.com/gtrentalancia/oregano/commit/f8d98bd59b19588d53d907b30e3fa5b10565d383

Could you please test and report ?

drahnr commented 7 years ago

@szg0000 can you please retry at your earliest convenience? Closing, feel free to re-open if the issue persists.