Segmentation fault after upgrading from ubuntu 14.04 to 16.04

Good morning,

after upgrading from ubuntu 14.04 to ubuntu 16.04, I am not been able to run kicad anymore :frowning:
When I start kicad from command line I gain a “Segmentation Fault” error.

So, I tried to uninstall kicad, wxwidgets, I remove and reinserted the repository, reinstalled but no way, It does
not work.

I installed from:
add-apt-repository ppa:js-reynaud/kicad-4

I tried to solve the segmentation fault by inspecting the core file. Seems to be a problem in wxThings, as reported below:
Program terminated with signal SIGSEGV, Segmentation fault.

#0  0x00007f9d0c78241c in std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_M_erase(unsigned long, unsigned long) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
(gdb) where
#0  0x00007f9d0c78241c in std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_M_erase(unsigned long, unsigned long) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#1  0x00007f9d0caa7799 in std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::erase (
    __n=18446744073709551615, __pos=0, this=0x6d9258) at /usr/include/c++/5/bits/basic_string.h:1460
#2  wxString::erase (n=18446744073709551615, pos=0, this=0x6d9258) at ../include/wx/string.h:2846
#3  wxString::clear (this=0x6d9258) at ../include/wx/string.h:2867
#4  wxFileName::Clear (this=0x6d91d8) at ../src/common/filename.cpp:602
#5  0x000000000045c274 in ?? ()
#6  0x000000000045a8a4 in ?? ()
#7  0x00000000004217cf in ?? ()
#8  0x000000000048538d in ?? ()
#9  0x00007f9d0bb6a7bf in __libc_start_main (main=0x421700, argc=1, argv=0x7ffdc7e17bb8, init=0x485340, fini=<optimized out>, 
    rtld_fini=<optimized out>, stack_end=0x7ffdc7e17ba8) at ../csu/libc-start.c:247
#10 0x0000000000425d87 in ?? ()

I miss KIcad :frowning: could you please help??
Thanks in advance for your time and consideration.
-g

http://ppa.launchpad.net/js-reynaud/kicad-4/ubuntu is my ppa. I am also on ubuntu 16.04. Kicad version
Application: kicad
Version: 4.0.4+e1-6308~48~ubuntu16.04.1-stable release build
wxWidgets: Version 3.0.2 (debug,wchar_t,compiler with C++ ABI 1009,GCC 5.4.0,wx containers,compatible with 2.8)
Platform: Linux 4.4.0-36-generic x86_64, 64 bit, Little endian, wxGTK
Boost version: 1.58.0
USE_WX_GRAPHICS_CONTEXT=OFF
USE_WX_OVERLAY=OFF
KICAD_SCRIPTING=ON
KICAD_SCRIPTING_MODULES=ON
KICAD_SCRIPTING_WXPYTHON=ON
USE_FP_LIB_TABLE=HARD_CODED_ON
BUILD_GITHUB_PLUGIN=ON

Works without issues, checkout whether the URL is correct which has extra ubuntu at the end compared to what you have typed

Are you on 32 or 64 bit Ubuntu? I have noticed that there have been problems with 32 bit (i386) building in the PPAs

Hi, this is what I did:

- uninstalled kicad
- removed repository
- update
- added new repository
- update
- install kicad

and I always get segmentation fault :(

Reading symbols from kicad...(no debugging symbols found)...done.
[New LWP 894]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `kicad'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007ff2aebdc41c in std::__cxx11::basic_string<wchar_t,
std::char_traits<wchar_t>, std::allocator<wchar_t> >::_M_erase(unsigned
long, unsigned long) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
(gdb) where
#0  0x00007ff2aebdc41c in std::__cxx11::basic_string<wchar_t,
std::char_traits<wchar_t>, std::allocator<wchar_t> >::_M_erase(unsigned
long, unsigned long) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#1  0x00007ff2aef01799 in std::__cxx11::basic_string<wchar_t,
std::char_traits<wchar_t>, std::allocator<wchar_t> >::erase (
    __n=18446744073709551615, __pos=0, this=0x6d9258) at
/usr/include/c++/5/bits/basic_string.h:1460
#2  wxString::erase (n=18446744073709551615, pos=0, this=0x6d9258) at
../include/wx/string.h:2846
#3  wxString::clear (this=0x6d9258) at ../include/wx/string.h:2867
#4  wxFileName::Clear (this=0x6d91d8) at ../src/common/filename.cpp:602
#5  0x000000000045c274 in ?? ()
#6  0x000000000045a8a4 in ?? ()
#7  0x00000000004217cf in ?? ()
#8  0x000000000048538d in ?? ()
#9  0x00007ff2adfc47bf in __libc_start_main (main=0x421700, argc=1,
argv=0x7ffeca8d8ad8, init=0x485340, fini=<optimized out>,
    rtld_fini=<optimized out>, stack_end=0x7ffeca8d8ac8) at
../csu/libc-start.c:247
#10 0x0000000000425d87 in ?? ()

I did try with kicad from official ubuntu repository, and I always get
segmentation fault.
I don’t know what to do.
-g

Hello, segfault problem persists :frowning:

Could the problem be the fact I have gcc5.4.0 installed, instead of gcc4.x.x???
-g

But you aren’t compiling KiCad yourself are you?
You haven’t said if you have 32 bit or 64 bit Ubuntu

This looks more like a wx clash
My PC has both wx 2.8.12.1 and 3.0.2.0

It is a 64 bit edition.
I am using apt-get install …
-g

I always install synaptic package manager and add the PPA like this