Symbol editor: segfault duplicating pin

Bug #1830596 reported by Jorge Neiva on 2019-05-27
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Jeff Young

Bug Description

Came to report 2 bugs, probably it is related.

1º How to reproduce:

KiCad -> Symbol Editor -> select any symbol -> select one pin the duplicate

When place the application will be crached, but to close need to wait to "force quit"

2º How to reproduce:

KiCad -> Symbol Editor -> select any symbol -> select one pin -> right click to copy -> right click to paste -> then click "e" to edit

This time generates segmention fault

[ 1650.284393] kicad[6546]: segfault at 3000000075 ip 00007ff908fe076e sp 0000564b3676db30 error 4 in _eeschema.kiface[7ff908ca8000+8fe000]

$ coredumpctl dump
           PID: 6546 (kicad)
           UID: 1000 (xathar)
           GID: 1000 (xathar)
        Signal: 11 (SEGV)
     Timestamp: Mon 2019-05-27 09:22:49 WEST (5min ago)
  Command Line: /usr/lib/kicad-nightly/bin/kicad
    Executable: /usr/lib/kicad-nightly/bin/kicad
 Control Group: /user.slice/user-1000.slice/session-c2.scope
          Unit: session-c2.scope
         Slice: user-1000.slice
       Session: c2
     Owner UID: 1000 (xathar)
       Boot ID: a95da890fd2344de9fc99e8375c36ba4
    Machine ID: 82929df7ee394b73b81252fe3b4e5020
      Hostname: MSI-GP63-Leopard-8RE
       Storage: /var/lib/systemd/coredump/core.kicad.1000.a95da890fd2344de9fc99e8375c36ba4.6546.1558945369000000.lz4
       Message: Process 6546 (kicad) of user 1000 dumped core.

                Stack trace of thread 6546:
                #0 0x00007ff908fe076e n/a (_eeschema.kiface)
                #1 0x00007ff908f97cc9 n/a (_eeschema.kiface)
                #2 0x00007ff909175ae7 n/a (_eeschema.kiface)
                #3 0x00007ff90917563c n/a (_eeschema.kiface)
                #4 0x00007ff909354890 n/a (_eeschema.kiface)
                #5 0x00007ff9093b0531 make_fcontext (_eeschema.kiface)
Refusing to dump core to tty (use shell redirection or specify --output).

Kicad version:
Application: KiCad
Version: 6.0.0-unknown-b5c80fe~100~ubuntu18.04.1, release build
    wxWidgets 3.0.4
    libcurl/7.58.0 OpenSSL/1.1.0g zlib/1.2.11 libidn2/2.0.4 libpsl/0.19.1 (+libidn2/2.0.4) nghttp2/1.30.0 librtmp/2.3
Platform: Linux 4.15.0-50-generic x86_64, 64 bit, Little endian, wxGTK
Build Info:
    wxWidgets: 3.0.4 (wchar_t,wx containers,compatible with 2.8) GTK+ 3.22
    Boost: 1.65.1
    OpenCASCADE Community Edition: 6.9.1
    Curl: 7.58.0
    Compiler: GCC 7.4.0 with C++ ABI 1011

Build settings:

Jeff Young (jeyjey) wrote :

@Jorge, how old are your bits? I think this was fixed last Thursday....

Jeff Young (jeyjey) wrote :

@devs, in the version string "6.0.0-unknown-b5c80fe~100~ubuntu18.04.1" shouldn't b5c80fe refer to a git commit? My git doesn't seem to find it....

On my build (latest Kicad version) I am seeing the bug.

Application: Eeschema
Version: (5.1.0-736-g0e5cc54ec), release build
    wxWidgets 3.1.1
    libcurl/7.50.3 OpenSSL/1.0.2j zlib/1.2.8 libidn/1.33 libssh2/1.7.0 nghttp2/1.15.0 librtmp/2.3
Platform: Windows 7 (build 7601, Service Pack 1), 32 bit, Little endian, wxMSW
Build Info:
    wxWidgets: 3.1.1 (wchar_t,wx containers)
    Boost: 1.63.0
    OpenCASCADE Community Edition: 6.8.0
    Curl: 7.53.1
    Compiler: GCC 6.3.0 with C++ ABI 1010

Build settings:

Changed in kicad:
status: New → Confirmed
Jeff Young (jeyjey) wrote :

My bad. I was interpreting "duplicate" as a short-hand for copy/paste. Forgot there was actually a "duplicate" command. (It's hotkey is missing as well.)

Changed in kicad:
assignee: nobody → Jeff Young (jeyjey)
status: Confirmed → In Progress
importance: Undecided → Critical
Jeff Young (jeyjey) on 2019-05-27
summary: - Symbol editor: craches and segmention fault
+ Symbol editor: segfault duplicating pin
KiCad Janitor (kicad-janitor) wrote :

Fixed in revision d24a2afaca7e8b99ca4f938638fe644afc9db5a1

Changed in kicad:
status: In Progress → Fix Committed
tags: added: eeschema
Changed in kicad:
milestone: none → 6.0.0-rc1
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers