pcbnew crashes when creating text

Bug #1782547 reported by serjioss
22
This bug affects 3 people
Affects Status Importance Assigned to Milestone
KiCad
Fix Released
Critical
Maciej Suminski

Bug Description

) Run PCBnew and edit a board
2) Click the Place >> Text menu item (or click on the corresponding toolbar button)
3) Click anywhere on the board
Kicad full crash.

kicad[6507]: segfault at 7f0149aadb78 ip 00007f4d79da53a3 sp 00007ffc49aad000 error 6 in libstdc++.so.6.0.25[7f4d79c67000+17e000]

Application: kicad
Version: 6.0.0-rc1-unknown-829ba27~65~ubuntu18.04.1, release build
Libraries:
    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-24-generic x86_64, 64 bit, Little endian, wxGTK
Build Info:
    wxWidgets: 3.0.4 (wchar_t,wx containers,compatible with 2.8) GTK+ 2.24
    Boost: 1.65.1
    OpenCASCADE Community Edition: 6.9.1
    Curl: 7.58.0
    Compiler: GCC 7.3.0 with C++ ABI 1011

Build settings:
    USE_WX_GRAPHICS_CONTEXT=OFF
    USE_WX_OVERLAY=OFF
    KICAD_SCRIPTING=ON
    KICAD_SCRIPTING_MODULES=ON
    KICAD_SCRIPTING_WXPYTHON=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
Jeff Young (jeyjey) wrote :

We've had a couple of reports of this (both on GTK), but I can't reproduce it on OSX.

Did someone already fix this, or is it GTK-specific?

Revision history for this message
Hildo Guillardi Júnior (hildogjr) wrote :

Not fixed yet, but I just tested on GTK: https://bugs.launchpad.net/kicad/+bug/1782659 (duplicate).

Jeff Young (jeyjey)
Changed in kicad:
status: New → Confirmed
importance: Undecided → Critical
Revision history for this message
Seth Hillbrand (sethh) wrote :

Can't recreate in the current master under Linux. I think it was fixed in 887ee4693

@hildogjr- Can you try current master and see if you still experience it?

Changed in kicad:
status: Confirmed → Incomplete
Revision history for this message
serjioss (sivantsov) wrote : Re: [Bug 1782547] Re: pcbnew crashes when creating text

last current version crash after text place in newpcb..

(last work version is 201807130010+eaf938c~65~ubuntu18.04.1)

small video for crash
https://drive.google.com/open?id=1TZ_9HkOxk65qpot6WbMsVB3IipSv2C7x

Application: kicad
Version: 6.0.0-rc1-unknown-829ba27~65~ubuntu18.04.1, release build
Libraries:
     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-24-generic x86_64, 64 bit, Little endian, wxGTK
Build Info:
     wxWidgets: 3.0.4 (wchar_t,wx containers,compatible with 2.8) GTK+ 2.24
     Boost: 1.65.1
     OpenCASCADE Community Edition: 6.9.1
     Curl: 7.58.0
     Compiler: GCC 7.3.0 with C++ ABI 1011

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

20.07.2018 09:58, Seth Hillbrand пишет:
> Can't recreate in the current master under Linux. I think it was fixed
> in 887ee4693
>
> @hildogjr- Can you try current master and see if you still experience
> it?
>
> ** Changed in: kicad
> Status: Confirmed => Incomplete

Revision history for this message
Jeff Young (jeyjey) wrote :

If anybody can reproduce this on a debug build, a stack trace would be much appreciated....

Changed in kicad:
status: Incomplete → In Progress
assignee: nobody → Maciej Suminski (orsonmmz)
Revision history for this message
Nick Østergaard (nickoe) wrote :

@serjioss, please try to get a backtrace with gdb.

Changed in kicad:
status: In Progress → Fix Committed
Revision history for this message
Hildo Guillardi Júnior (hildogjr) wrote :

@nick

Using the Nightly 0f 2018-07-20 on Ubuntu 16.04:

gdb kicad
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from kicad...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/bin/kicad
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe63bf700 (LWP 11949)]
[New Thread 0x7fffe5bbe700 (LWP 11950)]
[New Thread 0x7fffe53bd700 (LWP 11951)]
[New Thread 0x7fffd771f700 (LWP 11968)]
[New Thread 0x7fffd6f1e700 (LWP 11969)]
[Thread 0x7fffd6f1e700 (LWP 11969) exited]
[New Thread 0x7fffd6f1e700 (LWP 11972)]
[New Thread 0x7fffc516c700 (LWP 11973)]
[New Thread 0x7fffc496b700 (LWP 11974)]

Thread 1 "kicad" received signal SIGSEGV, Segmentation fault.
0x00007fffd53a0713 in ?? () from /usr/bin/_pcbnew.kiface

Revision history for this message
Hildo Guillardi Júnior (hildogjr) wrote :

Or running direct Pcbnew:

gdb pcbnew
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from pcbnew...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/bin/pcbnew
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffeb5ac700 (LWP 12343)]
[New Thread 0x7fffeadab700 (LWP 12344)]
[New Thread 0x7fffea5aa700 (LWP 12345)]
[New Thread 0x7fffcee1e700 (LWP 12362)]
[New Thread 0x7fffce61d700 (LWP 12363)]
[New Thread 0x7fffcde1c700 (LWP 12364)]
[New Thread 0x7fffccd3b700 (LWP 12365)]
[New Thread 0x7fffc7fff700 (LWP 12366)]
[Thread 0x7fffccd3b700 (LWP 12365) exited]

Thread 1 "pcbnew" received signal SIGSEGV, Segmentation fault.
0x00007fffdad02713 in ?? () from /usr/bin/_pcbnew.kiface

Revision history for this message
serjioss (sivantsov) wrote :

GNU gdb (Ubuntu 8.1-0ubuntu3) 8.1.0.20180409-git
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from pcbnew...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/bin/pcbnew
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffdce76700 (LWP 15008)]
[New Thread 0x7fffdc675700 (LWP 15009)]
[New Thread 0x7fffdbe74700 (LWP 15010)]
[New Thread 0x7fffdb673700 (LWP 15011)]
[New Thread 0x7fffdae72700 (LWP 15012)]
[New Thread 0x7fffda671700 (LWP 15013)]
[New Thread 0x7fffd9e70700 (LWP 15014)]

Thread 1 "pcbnew" received signal SIGSEGV, Segmentation fault.
0x00007fffea14e1d2 in ?? () from /usr/bin/_pcbnew.kiface
(gdb)

20.07.2018 16:44, Hildo Guillardi Júnior пишет:
> gdb pcbnew

Revision history for this message
serjioss (sivantsov) wrote :

Starting program: /usr/bin/kicad
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe53df700 (LWP 15284)]
[New Thread 0x7fffe4bde700 (LWP 15285)]
[New Thread 0x7fffdffff700 (LWP 15286)]
[New Thread 0x7fffcecbe700 (LWP 15287)]
[New Thread 0x7fffce4bd700 (LWP 15288)]
[New Thread 0x7fffcdcbc700 (LWP 15289)]
[New Thread 0x7fffcd4bb700 (LWP 15290)]
[New Thread 0x7fffcccba700 (LWP 15291)]
[New Thread 0x7fffcc4b9700 (LWP 15292)]
[New Thread 0x7fffcbcb8700 (LWP 15293)]

Thread 1 "kicad" received signal SIGSEGV, Segmentation fault.
0x00007fffde33e1d2 in DIALOG_TEXT_PROPERTIES::TransferDataToWindow (
     this=0x7fffffffcd20)
     at ./kicad/pcbnew/dialogs/dialog_text_properties.cpp:239
239    ./kicad/pcbnew/dialogs/dialog_text_properties.cpp: Нет такого
файла или каталога.

20.07.2018 16:44, Hildo Guillardi Júnior пишет:
> Or running direct Pcbnew:
>
> gdb pcbnew
> GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1
> Copyright (C) 2016 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law. Type "show copying"
> and "show warranty" for details.
> This GDB was configured as "x86_64-linux-gnu".
> Type "show configuration" for configuration details.
> For bug reporting instructions, please see:
> <http://www.gnu.org/software/gdb/bugs/>.
> Find the GDB manual and other documentation resources online at:
> <http://www.gnu.org/software/gdb/documentation/>.
> For help, type "help".
> Type "apropos word" to search for commands related to "word"...
> Reading symbols from pcbnew...(no debugging symbols found)...done.
> (gdb) run
> Starting program: /usr/bin/pcbnew
> [Thread debugging using libthread_db enabled]
> Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
> [New Thread 0x7fffeb5ac700 (LWP 12343)]
> [New Thread 0x7fffeadab700 (LWP 12344)]
> [New Thread 0x7fffea5aa700 (LWP 12345)]
> [New Thread 0x7fffcee1e700 (LWP 12362)]
> [New Thread 0x7fffce61d700 (LWP 12363)]
> [New Thread 0x7fffcde1c700 (LWP 12364)]
> [New Thread 0x7fffccd3b700 (LWP 12365)]
> [New Thread 0x7fffc7fff700 (LWP 12366)]
> [Thread 0x7fffccd3b700 (LWP 12365) exited]
>
> Thread 1 "pcbnew" received signal SIGSEGV, Segmentation fault.
> 0x00007fffdad02713 in ?? () from /usr/bin/_pcbnew.kiface
>

Revision history for this message
Maciej Suminski (orsonmmz) wrote :

It should be fixed already. Let me know if you still face a problem after an update.

Revision history for this message
serjioss (sivantsov) wrote :

OK. Fixed. Work.

20.07.2018 17:32, Maciej Suminski пишет:
> It should be fixed already. Let me know if you still face a problem
> after an update.
>

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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