Thanks Jeremie, for walking me through how to collect the backtrace. I
think I managed to capture it this time.

On 2025-05-10 03:29:32, Anthony J. Bentley wrote:
> Sadeep Madurange writes:
> > I installed KiCad. When I open a schematic file, and click on "Place
> > Symbols", KiCad crashes while trying to load footprint libraries. I see
> > the following error in dmesg:
> >
> > ### AML PARSE ERROR (0x279a7): Undefined name:
> > \\_SB_.PCI0.RP09.PEGP.NVDN
> > error evaluating: \\_SB_.PCI0.LPCB.EC__._Q26
> > coredump of kicad(51397), write failed: errno 14
> 
> Can you install debug-kicad and gdb, run kicad from egdb, and provide
> a backtrace?

-- 
Sadeep Madurange
PGP: 103BF9E3E750BF7E
Already logging to gdb.txt.
Starting program: /usr/local/bin/kicad 
[Detaching after fork from child process 51811]
[New thread 466003 of process 19597]
[New thread 618111 of process 19597]
[New thread 273348 of process 19597]
[New thread 544741 of process 19597]
[New thread 522139 of process 19597]
[New thread 610110 of process 19597]
[New thread 311685 of process 19597]
[New thread 159722 of process 19597]
[New thread 159750 of process 19597]
[New thread 245881 of process 19597]
[New thread 229629 of process 19597]
[New thread 299535 of process 19597]
[New thread 262721 of process 19597]
[New thread 518443 of process 19597]
[New thread 282497 of process 19597]
[New thread 523255 of process 19597]
[New thread 458334 of process 19597]
[New thread 247183 of process 19597]
[New thread 493095 of process 19597]

Thread 5 received signal SIGSEGV, Segmentation fault.
[Switching to thread 544741 of process 19597]
0x00000b1844e799db in memcpy (dst0=0x0, src0=<optimized out>, length=80) at 
/usr/src/lib/libc/string/memcpy.c:103
warning: 103    /usr/src/lib/libc/string/memcpy.c: No such file or directory
#0  0x00000b1844e799db in memcpy (dst0=0x0, src0=<optimized out>, length=80) at 
/usr/src/lib/libc/string/memcpy.c:103
#1  0x00000b17a84962b0 in wxMBConv::FromWChar(char*, unsigned long, wchar_t 
const*, unsigned long) const () from /usr/local/lib/libwx_baseu-3.2.so.0.1
#2  0x00000b17a84a4438 in wxString::AsChar(wxMBConv const&) const () from 
/usr/local/lib/libwx_baseu-3.2.so.0.1
#3  0x00000b17a84adf8f in wxGetenv(wxString const&) () from 
/usr/local/lib/libwx_baseu-3.2.so.0.1
#4  0x00000b17a8520912 in wxGetEnv(wxString const&, wxString*) () from 
/usr/local/lib/libwx_baseu-3.2.so.0.1
#5  0x00000b17b1e51bdb in KIwxExpandEnvVars (str=..., aProject=0x0, aSet=0x0) 
at /usr/obj/ports/kicad-9.0.0/kicad-9.0.0/common/common.cpp:249
#6  0x00000b17b1e52aeb in ExpandEnvVarSubstitutions (aString=..., aProject=0x0) 
at /usr/obj/ports/kicad-9.0.0/kicad-9.0.0/common/common.cpp:360
#7  0x00000b17b1e8a436 in LIB_TABLE_ROW::GetFullURI (this=0x40, 
aSubstituted=<optimized out>) at 
/usr/obj/ports/kicad-9.0.0/kicad-9.0.0/common/lib_table_base.cpp:118
#8  0x00000b18af29f85d in FP_LIB_TABLE::FootprintEnumerate (this=<optimized 
out>, aFootprintNames=..., aNickname=..., aBestEfforts=<optimized out>) at 
/usr/obj/ports/kicad-9.0.0/kicad-9.0.0/common/fp_lib_table.cpp:314
#9  0x00000b18aea72e06 in std::__1::__function::__value_func<void 
()>::operator()[abi:v160006]() const (this=0xb1830aae180) at 
/usr/include/c++/v1/__functional/function.h:510
#10 std::__1::function<void()>::operator() (this=0xb1830aae180) at 
/usr/include/c++/v1/__functional/function.h:1156
#11 FOOTPRINT_LIST_IMPL::CatchErrors (this=0xb18afe5b510 <GFootprintList>, 
aFunc=...) at 
/usr/obj/ports/kicad-9.0.0/kicad-9.0.0/pcbnew/footprint_info_impl.cpp:80
#12 0x00000b18aea76692 in 
FOOTPRINT_LIST_IMPL::loadFootprints()::$_1::operator()() const (this=<optimized 
out>) at 
/usr/obj/ports/kicad-9.0.0/kicad-9.0.0/pcbnew/footprint_info_impl.cpp:192
#13 std::__1::__invoke[abi:v160006]<FOOTPRINT_LIST_IMPL::loadFootprints()::$_1 
const&>(FOOTPRINT_LIST_IMPL::loadFootprints()::$_1 const&) (__f=...) at 
/usr/include/c++/v1/__functional/invoke.h:394
#14 
std::__1::__apply_functor[abi:v160006]<FOOTPRINT_LIST_IMPL::loadFootprints()::$_1
 const, std::__1::tuple<> const, , std::__1::tuple<> 
>(FOOTPRINT_LIST_IMPL::loadFootprints()::$_1 const&, std::__1::tuple<> const&, 
std::__1::__tuple_indices<>, std::__1::tuple<>&&) (__f=..., __bound_args=..., 
__args=...) at /usr/include/c++/v1/__functional/bind.h:263
#15 
std::__1::__bind<FOOTPRINT_LIST_IMPL::loadFootprints()::$_1&>::operator()[abi:v160006]<>()
 const (this=<optimized out>) at /usr/include/c++/v1/__functional/bind.h:304
#16 
std::__1::__invoke[abi:v160006]<std::__1::__bind<FOOTPRINT_LIST_IMPL::loadFootprints()::$_1&>
 const&>(std::__1::__bind<FOOTPRINT_LIST_IMPL::loadFootprints()::$_1&> const&) 
(__f=...) at /usr/include/c++/v1/__functional/invoke.h:394
#17 
std::__1::invoke[abi:v160006]<std::__1::__bind<FOOTPRINT_LIST_IMPL::loadFootprints()::$_1&>
 const&>(std::__1::__bind<FOOTPRINT_LIST_IMPL::loadFootprints()::$_1&> const&) 
(__f=...) at /usr/include/c++/v1/__functional/invoke.h:539
#18 BS::thread_pool::submit<FOOTPRINT_LIST_IMPL::loadFootprints()::$_1&, , 
unsigned 
long>(FOOTPRINT_LIST_IMPL::loadFootprints()::$_1&)::{lambda()#1}::operator()() 
const (this=<optimized out>) at 
/usr/obj/ports/kicad-9.0.0/kicad-9.0.0/thirdparty/thread-pool/bs_thread_pool.hpp:492
#19 
std::__1::__invoke[abi:v160006]<BS::thread_pool::submit<FOOTPRINT_LIST_IMPL::loadFootprints()::$_1&,
 , unsigned 
long>(FOOTPRINT_LIST_IMPL::loadFootprints()::$_1&)::{lambda()#1}&>(FOOTPRINT_LIST_IMPL::loadFootprints()::$_1&)
 (__f=...) at /usr/include/c++/v1/__functional/invoke.h:394
#20 
std::__1::__apply_functor[abi:v160006]<BS::thread_pool::submit<FOOTPRINT_LIST_IMPL::loadFootprints()::$_1&,
 , unsigned long>(FOOTPRINT_LIST_IMPL::loadFootprints()::$_1&)::{lambda()#1}, 
std::__1::tuple<>, , std::__1::tuple<> 
>(FOOTPRINT_LIST_IMPL::loadFootprints()::$_1&, std::__1::tuple<>&, 
std::__1::__tuple_indices<>, std::__1::tuple<>&&) (__f=..., __bound_args=..., 
__args=...) at /usr/include/c++/v1/__functional/bind.h:263
#21 
std::__1::__bind<BS::thread_pool::submit<FOOTPRINT_LIST_IMPL::loadFootprints()::$_1&,
 , unsigned 
long>(FOOTPRINT_LIST_IMPL::loadFootprints()::$_1&)::{lambda()#1}>::operator()[abi:v160006]<>()
 (this=<optimized out>) at /usr/include/c++/v1/__functional/bind.h:295
#22 
std::__1::__invoke[abi:v160006]<std::__1::__bind<BS::thread_pool::submit<FOOTPRINT_LIST_IMPL::loadFootprints()::$_1&,
 , unsigned 
long>(FOOTPRINT_LIST_IMPL::loadFootprints()::$_1&)::{lambda()#1}>&>(FOOTPRINT_LIST_IMPL::loadFootprints()::$_1&)
 (__f=...) at /usr/include/c++/v1/__functional/invoke.h:394
#23 std::__1::__invoke_void_return_wrapper<void, 
true>::__call<std::__1::__bind<BS::thread_pool::submit<FOOTPRINT_LIST_IMPL::loadFootprints()::$_1&,
 , unsigned 
long>(FOOTPRINT_LIST_IMPL::loadFootprints()::$_1&)::{lambda()#1}>&>(std::__1::__bind<BS::thread_pool::submit<FOOTPRINT_LIST_IMPL::loadFootprints()::$_1&,
 , unsigned long>(FOOTPRINT_LIST_IMPL::loadFootprints()::$_1&)::{lambda()#1}>&) 
(__args=...) at /usr/include/c++/v1/__functional/invoke.h:487
#24 
std::__1::__function::__alloc_func<std::__1::__bind<BS::thread_pool::submit<FOOTPRINT_LIST_IMPL::loadFootprints()::$_1&,
 , unsigned long>(FOOTPRINT_LIST_IMPL::loadFootprints()::$_1&)::{lambda()#1}>, 
std::__1::allocator<std::__1::__bind<BS::thread_pool::submit<FOOTPRINT_LIST_IMPL::loadFootprints()::$_1&,
 , unsigned long>(FOOTPRINT_LIST_IMPL::loadFootprints()::$_1&)::{lambda()#1}> 
>, void ()>::operator()[abi:v160006]() (this=<optimized out>) at 
/usr/include/c++/v1/__functional/function.h:185
#25 
std::__1::__function::__func<std::__1::__bind<BS::thread_pool::submit<FOOTPRINT_LIST_IMPL::loadFootprints()::$_1&,
 , unsigned long>(FOOTPRINT_LIST_IMPL::loadFootprints()::$_1&)::{lambda()#1}>, 
std::__1::allocator<std::__1::__bind<BS::thread_pool::submit<FOOTPRINT_LIST_IMPL::loadFootprints()::$_1&,
 , unsigned long>(FOOTPRINT_LIST_IMPL::loadFootprints()::$_1&)::{lambda()#1}> 
>, void ()>::operator()() (this=0xb1804055900) at 
/usr/include/c++/v1/__functional/function.h:356
#26 0x00000b17b1ed7367 in std::__1::__function::__value_func<void 
()>::operator()[abi:v160006]() const (this=<optimized out>) at 
/usr/include/c++/v1/__functional/function.h:510
#27 std::__1::function<void()>::operator() (this=<optimized out>) at 
/usr/include/c++/v1/__functional/function.h:1156
#28 BS::thread_pool::worker (this=0xb1894ba0310) at 
/usr/obj/ports/kicad-9.0.0/kicad-9.0.0/thirdparty/thread-pool/bs_thread_pool.hpp:638
#29 0x00000b17b1ed7601 in std::__1::__invoke[abi:v160006]<void 
(BS::thread_pool::*)(), BS::thread_pool*, , void>(void 
(BS::thread_pool::*&&)(), BS::thread_pool*&&) (__f=<optimized out>, 
__a0=<optimized out>) at /usr/include/c++/v1/__functional/invoke.h:359
#30 
std::__1::__thread_execute[abi:v160006]<std::__1::unique_ptr<std::__1::__thread_struct,
 std::__1::default_delete<std::__1::__thread_struct> >, void 
(BS::thread_pool::*)(), BS::thread_pool*, 
2ul>(std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, 
std::__1::default_delete<std::__1::__thread_struct> >, void 
(BS::thread_pool::*)(), BS::thread_pool*>&, std::__1::__tuple_indices<2ul>) 
(__t=...) at /usr/include/c++/v1/thread:282
#31 
std::__1::__thread_proxy[abi:v160006]<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct,
 std::__1::default_delete<std::__1::__thread_struct> >, void 
(BS::thread_pool::*)(), BS::thread_pool*> >(void*) (__vp=0xb1894b98920) at 
/usr/include/c++/v1/thread:293
#32 0x00000b18243be502 in _rthread_start (v=0x40) at 
/usr/src/lib/librthread/rthread.c:96
#33 0x00000b1844ed8bea in __tfork_thread () at 
/usr/src/lib/libc/arch/amd64/sys/tfork_thread.S:87
Continuing.

Program terminated with signal SIGSEGV, Segmentation fault.
The program no longer exists.

Reply via email to