← Back to team overview

kicad-developers team mailing list archive

Re: 3D Viewer crushes whole KiCAD with this file

 

In response to a message written on 17.02.2015, 07:32, from Cirilo Bernardo:
The *.wrl file you attached works fine on my system; no crash even though
3DViewer will not display it for whatever reason.
Seems to be gcc version specific…
$  gdb kicad
GNU gdb (GDB) 7.8.1-1 (PLD Linux)
Copyright (C) 2014 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-pld-linux".
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...Reading symbols from /usr/lib/debug/usr/bin/kicad.debug...done.
done.
(gdb) start
Temporary breakpoint 1 at 0x4341d0: file /usr/src/debug/kicad-sources-BZR.5425-main/kicad/kicad.cpp, line 300.
Starting program: /usr/bin/kicad
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".

Temporary breakpoint 1, main (argc=1, argv=0x7fffffffdb08) at /usr/src/debug/kicad-sources-BZR.5425-main/kicad/kicad.cpp:300
300	IMPLEMENT_APP( APP_KICAD );
(gdb) continue
Continuing.
[New Thread 0x7fffdb2e5700 (LWP 7176)]
[New Thread 0x7fffdaae4700 (LWP 7177)]
[New Thread 0x7fffda2e3700 (LWP 7178)]
*** stack smashing detected ***: /usr/bin/kicad terminated

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff61006c8 in ?? () from /lib64/libgcc_s.so.1
(gdb) quit
A debugging session is active.

	Inferior 1 [process 7138] will be killed.

Quit anyway? (y or n) y
$  rpm -q gcc-c++
gcc-c++-4.9.2-6.x86_64

--
Best Regards,
LordBlick


Follow ups

References