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
Task Type Bug Report
Category Packages
Status Closed
Assigned To Kyle Keen (keenerd)
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

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
Comment by Fabrizio del Tin (aquilarubra) - Saturday, 31 October 2020, 14:00 GMT
I have the same issue. Kicad gives me just the warning, but runs:

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.
Comment by fenugrec (fenugrec) - Saturday, 31 October 2020, 14:06 GMT
@ aquilarubra, I recompiled wxgtk3 and solved some of the problems. I'm still getting an ABI mismatch with wxpython but it's crashing "less" . I was going to file an issue on the wxgtk3 package but I'm not sure how to tell them to reproduce the issue other than running kicad...
Comment by John Frown (hp_pepster) - Saturday, 31 October 2020, 14:15 GMT
Hi,

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.
Comment by loqs (loqs) - Saturday, 31 October 2020, 15:20 GMT
Can you produce a back trace with debug symbols [1] ?

[1] https://wiki.archlinux.org/index.php/Debug_-_Getting_Traces
Comment by John Frown (hp_pepster) - Saturday, 31 October 2020, 15:21 GMT
Sorry, browser bug
Comment by Fabrizio del Tin (aquilarubra) - Saturday, 31 October 2020, 16:29 GMT
It seems related to opengl.

# 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
Comment by Morten Linderud (Foxboron) - Monday, 16 November 2020, 17:47 GMT
Is this still an issue?
Comment by fenugrec (fenugrec) - Monday, 16 November 2020, 18:25 GMT
Hi, the warning is still produced with kicad 5.1.8-1
```
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).
Comment by Emil Fresk (korken89) - Tuesday, 17 November 2020, 07:24 GMT
Hi, I am getting the same warning, but also an error whenever I try to open 3D view or edit components:

```
kicad Error

/usr/lib/kicad/plugins/3d/libs3d_plugin_oce.so: undefined symbol: _ZN14Quantity_ColorC1Ev
```
Comment by Magnus Sörensen (r00tr4t) - Friday, 20 November 2020, 21:29 GMT
Me to have the same error.
Comment by Sven (svenschwermer) - Saturday, 21 November 2020, 14:14 GMT
Emil, Magnus,

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`
Comment by Emil Fresk (korken89) - Monday, 23 November 2020, 07:12 GMT
Thanks Sven, this removed the STEP rendering issue.
Comment by patrick (potomac) - Monday, 14 December 2020, 19:36 GMT
Error message is still here with kicad 5.1.8-3 from community repo :
https://www.archlinux.org/packages/community/x86_64/kicad/
Comment by Graham Keeth (gkeeth) - Tuesday, 15 December 2020, 17:02 GMT
I'm seeing this issue too with 5.1.8-3 from community.

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.
Comment by patrick (potomac) - Tuesday, 15 December 2020, 20:36 GMT
You can try again to open a bugreport for wxgtk3, in order to convince the maintainer to rebuild the package.

Or use the archlinux mailing list : https://lists.archlinux.org/listinfo/
Comment by Graham Keeth (gkeeth) - Tuesday, 15 December 2020, 21:13 GMT
I requested to reopen the issue but it was denied. Building wxgtk3 myself from the official pkgbuild resolves the mismatch issue and I'm not inclined to pursue it further.
Comment by Roland Singer (r0l1) - Monday, 11 January 2021, 14:36 GMT
I encountered the same problem.
@gkeeth: why did they deny the rebuild?

Loading...