FS#68421 - kicad 5.1.7 segfault , "Mismatch between the program and library build versions"
Attached to Project:
Community Packages
Opened by fenugrec (fenugrec) - Monday, 26 October 2020, 02:33 GMT
Last edited by Andreas Radke (AndyRTR) - Wednesday, 27 January 2021, 15:46 GMT
Opened by fenugrec (fenugrec) - Monday, 26 October 2020, 02:33 GMT
Last edited by Andreas Radke (AndyRTR) - Wednesday, 27 January 2021, 15:46 GMT
|
Details
Description:
Just tried kicad 5.1.7-1 and 5.1.7-2. On program startup , this warning prints on the consoel: ********** Warning: Mismatch between the program and library build versions detected. The library used 3.0 (wchar_t,compiler with C++ ABI 1013,wx containers,compatible with 2.8), and your program used 3.0 (wchar_t,compiler with C++ ABI 1014,wx containers,compatible with 2.8). ********** After a few operations in eeschema, kicad segfaults somewhere in gtk3 : ********** 0x00007ffff7e70f3e in () at /usr/lib/libwx_gtk3u_adv-3.0.so.0 #1 0x00007ffff7e727fe in () at /usr/lib/libwx_gtk3u_adv-3.0.so.0 #2 0x00007ffff685931e in () at /usr/lib/libgtk-3.so.0 #3 0x00007ffff685965a in gtk_tree_row_reference_free () at /usr/lib/libgtk-3.so.0 #4 0x00007ffff6866953 in () at /usr/lib/libgtk-3.so.0 #5 0x00007ffff68669c7 in gtk_tree_selection_unselect_all () at /usr/lib/libgtk-3.so.0 #6 0x00007ffff7e753c2 in wxDataViewCtrl::UnselectAll() () at /usr/lib/libwx_gtk3u_adv-3.0.so.0 #7 0x00007fffd217b21e in () at /usr/bin/_eeschema.kiface #8 0x00007fffd20cbdab in () at /usr/bin/_eeschema.kiface #9 0x00007fffd20cc0cb in () at /usr/bin/_eeschema.kiface #10 0x00007ffff74d24c1 in wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) () at /usr/lib/libwx_baseu-3.0.so.0 #11 0x00007ffff74d284b in wxEvtHandler::SearchDynamicEventTable(wxEvent&) () at /usr/lib/libwx_baseu-3.0.so.0 #12 0x00007ffff74d28e1 in wxEvtHandler::TryHereOnly(wxEvent&) () at /usr/lib/libwx_baseu-3.0.so.0 #13 0x00007ffff74d2994 in wxEvtHandler::ProcessEventLocally(wxEvent&) () at /usr/lib/libwx_baseu-3.0.so.0 --Type <RET> for more, q to quit, c to continue without paging--#14 0x00007ffff74d2a32 in wxEvtHandler::ProcessEvent(wxEvent&) () at /usr/lib/libwx_baseu-3.0.so.0 #15 0x00007ffff74d27c7 in wxEvtHandler::SafelyProcessEvent(wxEvent&) () at /usr/lib/libwx_baseu-3.0.so.0 #16 0x00007ffff7a27c54 in wxTextEntryBase::SendTextUpdatedEvent(wxWindow*) () ************* Relevant libraries (I think mainly these): wxgtk3 3.0.5.1-1 gtk3 1:3.24.23-4 What other mismatch could there possibly be ? |
This task depends upon
Closed by Andreas Radke (AndyRTR)
Wednesday, 27 January 2021, 15:46 GMT
Reason for closing: Fixed
Additional comments about closing: 5.1.8-1
Wednesday, 27 January 2021, 15:46 GMT
Reason for closing: Fixed
Additional comments about closing: 5.1.8-1
14:45:15: Warning: Mismatch between the program and library build versions detected.
The library used 3.0 (wchar_t,compiler with C++ ABI 1013,wx containers,compatible with 2.8),
and your program used 3.0 (wchar_t,compiler with C++ ABI 1014,wx containers,compatible with 2.8).
Instead, pcbnew crashes:
14:23:43: Warning: Mismatch between the program and library build versions detected.
The library used 3.0 (wchar_t,compiler with C++ ABI 1013,wx containers,compatible with 2.8),
and your program used 3.0 (wchar_t,compiler with C++ ABI 1014,wx containers,compatible with 2.8).
(pcbnew:81792): Gdk-ERROR **: 14:23:43.669: The program 'pcbnew' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadValue (integer parameter out of range for operation)'.
(Details: serial 349 error_code 2 request_code 151 (GLX) minor_code 24)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the GDK_SYNCHRONIZE environment
variable to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)
Trace/breakpoint trap (core dumped)
[phantom@phantom ~]$ pcbnew -v
14:44:44: Warning: Mismatch between the program and library build versions detected.
The library used 3.0 (wchar_t,compiler with C++ ABI 1013,wx containers,compatible with 2.8),
and your program used 3.0 (wchar_t,compiler with C++ ABI 1014,wx containers,compatible with 2.8).
I recompiled kicad myself, but got the same error.
the problem seems to be that kicad was compiled with gcc10, wxgtk with gcc9. @aquilarubra: If you compile kicad with gcc9, at least the mismatch error is gone. But it's not helping too much against the crashes.
Recompiling wxgkt might have downsides for other programs.
[1] https://wiki.archlinux.org/index.php/Debug_-_Getting_Traces
# glxinfo
name of display: :0.0
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 151 (GLX)
Minor opcode of failed request: 24 (X_GLXCreateNewContext)
Value in failed request: 0x0
Serial number of failed request: 99
Current serial number in output stream: 100
```
Warning: Mismatch between the program and library build versions detected.
The library used 3.0 (wchar_t,compiler with C++ ABI 1013,wx containers,compatible with 2.8),
and your program used 3.0 (wchar_t,compiler with C++ ABI 1014,wx containers,compatible with 2.8).
```
But I haven't been able to trigger a segfault (yet).
```
kicad Error
/usr/lib/kicad/plugins/3d/libs3d_plugin_oce.so: undefined symbol: _ZN14Quantity_ColorC1Ev
```
I had the same problem and solved it by manually building and installing kicad 5.1.8-3 which can be found in the repo: https://github.com/archlinux/svntogit-community/blob/master/kicad/trunk/PKGBUILD
You can use this command to clone the relevant part of the repo: `asp checkout kicad`
https://www.archlinux.org/packages/community/x86_64/kicad/
On launch, terminal shows "The library used 3.0 (wchar_t, compiler with C++ ABI 1013, wx containers, compatible with 3.8), your program used 3.0 (wchar_t, compiler with C++ ABI 1014, wx containers, compatible with 2.8)"
When starting the pcb editor, a popup comes up that says: "Mismatch between the program and library build versions detected. The library used 3.0 (wchar_t, compiler with C++ ABI 1013, wx containers, compatible with 3.8), and wxPython used 3.0 (wchar_t, compiler with C++ ABI 1014, wx containers, compatible with 2.8)"
I'm not seeing any of the other issues reported in this thread (crashes, undefined symbols).
Rebuilding wxgtk3 from official pkgbuild resolves the issue. I reported a bug against the wxgtk3 package but it was closed as not-a-bug. Not sure if this rises to the level of something that would trigger a rebuild of the wxgtk3 package, but apparently not.
Or use the archlinux mailing list : https://lists.archlinux.org/listinfo/
@gkeeth: why did they deny the rebuild?