|
From: TheFGFSEagle <the...@gm...> - 2023-07-17 20:00:25
|
Could someone take a look at fixing this ? I'm unable to use latest next
currently.
Am Mo., 17. Juli 2023 um 21:56 Uhr schrieb Florent Rougon <
f.r...@fr...>:
> Hi,
>
> TheFGFSEagle <the...@gm...> wrote:
>
> > Got the following stack trace with up-to-date git next:
>
> I got something similar while attempting (on next) to test my changes
> concerning the loading of airport XML extension files. The command was
> essentially
>
> fgfs --airport=LIPX --aircraft=ufo --disable-real-weather-fetch
> --disable-terrasync --disable-ai-traffic --developer=true --log-level=info
> --runway=04 --enable-freeze
>
> The crash is reproducible and triggered by the first assert() below
> (simgear/simgear/props/props.cxx:414):
>
> void acquire() override
> {
> assert(m_node);
> assert(!m_own);
> acquire_internal(*m_node, false /*shared*/);
> m_own = true;
> }
>
> Here is a backtrace:
>
> fgfs: .../simgear/simgear/props/props.cxx:414: virtual void
> SGPropertyLockExclusive::acquire(): Assertion `m_node' failed.
>
> Thread 1 "fgfs" received signal SIGABRT, Aborted.
> __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6,
>
> no_tid=no_tid@entry=0) at ./nptl/pthread_kill.c:44
> 44 ./nptl/pthread_kill.c: No such file or directory.
> (gdb) bt
> #0 __pthread_kill_implementation
> (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0)
> at ./nptl/pthread_kill.c:44
> #1 0x00007ffff2aa815f in __pthread_kill_internal
> (signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:78
> #2 0x00007ffff2a5a472 in __GI_raise (sig=sig@entry=6)
> at ../sysdeps/posix/raise.c:26
> #3 0x00007ffff2a444b2 in __GI_abort () at ./stdlib/abort.c:79
> #4 0x00007ffff2a443d5 in __assert_fail_base
> (fmt=0x7ffff2bb8dc8 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n",
> assertion=assertion@entry=0x555556b0bbb8 "m_node", file=file@entry=0x555556b0ba00
> ".../simgear/simgear/props/props.cxx", line=line@entry=414,
> function=function@entry=0x555556b0bb88 "virtual void
> SGPropertyLockExclusive::acquire()") at ./assert/assert.c:92
> #5 0x00007ffff2a533a2 in __assert_fail
> (assertion=0x555556b0bbb8 "m_node", file=0x555556b0ba00
> ".../simgear/simgear/props/props.cxx", line=414, function=0x555556b0bb88
> "virtual void SGPropertyLockExclusive::acquire()") at ./assert/assert.c:101
> #6 0x0000555556431159 in SGPropertyLockExclusive::acquire()
> (this=0x7fffffffb880)
> at .../simgear/simgear/props/props.cxx:414
> #7 0x0000555556431114 in SGPropertyLockExclusive::assign(SGPropertyNode
> const&) (this=0x7fffffffb880, node=...)
> at .../simgear/simgear/props/props.cxx:409
> #8 0x00005555564310ad in
> SGPropertyLockExclusive::SGPropertyLockExclusive(SGPropertyNode const&)
> (this=0x7fffffffb880, node=...)
> at .../simgear/simgear/props/props.cxx:402
> #9 0x000055555642e306 in SGPropertyNode::fireValueChanged() (this=0x0)
> at .../simgear/simgear/props/props.cxx:3805
> #10 0x00005555560c9082 in FGProperties::setFreeze(bool)
> (this=0x55555a19c0f0, f=true)
> at .../flightgear/src/Main/fg_props.cxx:234
> #11 0x00005555560cd7d6 in SGRawValueMethods<FGProperties,
> bool>::setValue(bool)
> (this=0x55555917ed80, value=true)
> at .../install-git.debug/include/simgear/props/props.hxx:615
> #12 0x0000555556431893 in
> SGPropertyNodeImpl::set_bool(SGPropertyLockExclusive&, SGPropertyNode&,
> bool) (exclusive=..., node=..., val=true)
> at .../simgear/simgear/props/props.cxx:1006
> #13 0x0000555556433c57 in
> SGPropertyNodeImpl::setBoolValue(SGPropertyLockExclusive&, SGPropertyNode&,
> bool) (exclusive=..., node=..., value=true)
> at .../simgear/simgear/props/props.cxx:1601
> #14 0x000055555642f7a9 in
> SGPropertyNode::setValue<bool>(SGPropertyLockExclusive&, bool const&,
> std::enable_if<simgear::props::PropertyTraits<bool>::Internal, void>::type*)
> (this=0x555558874990, exclusive=..., val=@0x7fffffffb9ff: true,
> dummy=0x0)
> at .../simgear/simgear/props/props.cxx:4297
> #15 0x0000555556436196 in SGPropertyNode::tie<bool>(SGRawValue<bool>
> const&, bool) (this=0x555558874990, rawValue=..., useDefault=true)
> at .../simgear/simgear/props/props.cxx:4217
> #16 0x000055555585efb4 in
> simgear::TiedPropertyList::Tie<bool>(SGSharedPtr<SGPropertyNode>,
> SGRawValue<bool> const&, bool)
> (this=0x55555a19c1e0, node=..., rawValue=..., useDefault=true)
> at .../install-git.debug/include/simgear/props/tiedpropertylist.hxx:52
> #17 0x00005555560ccd51 in simgear::TiedPropertyList::Tie<FGProperties,
> bool>(char const*, FGProperties*, bool (FGProperties::*)() const, void
> (FGProperties::*)(bool), bool)
> (this=0x55555a19c1e0, relative_path=0x555556acce60
> "/sim/freeze/master", obj=0x55555a19c0f0, getter=(bool
> (FGProperties::*)(const class FGProperties * const)) 0x5555560c9008
> <FGProperties::getFreeze() const>, setter=(void (FGProperties::*)(class
> FGProperties * const, bool)) 0x5555560c901e
> <FGProperties::setFreeze(bool)>, useDefault=true)
> at .../install-git.debug/include/simgear/props/tiedpropertylist.hxx:106
> #18 0x00005555560c9fcf in FGProperties::bind() (this=0x55555a19c0f0)
> at .../flightgear/src/Main/fg_props.cxx:421
> #19 0x0000555556485eac in operator()(SGSubsystem*) const
> (__closure=0x7fffffffc0e0, s=0x55555a19c0f0)
> at .../simgear/simgear/structure/subsystem_mgr.cxx:387
> #20 0x000055555649029a in std::__invoke_impl<void,
> SGSubsystemGroup::bind()::<lambda(SGSubsystem*)>&,
> SGSubsystem*>(std::__invoke_other, struct {...} &)
> (__f=...) at /usr/include/c++/12/bits/invoke.h:61
> #21 0x000055555648ee31 in std::__invoke_r<void,
> SGSubsystemGroup::bind()::<lambda(SGSubsystem*)>&, SGSubsystem*>(struct
> {...} &) (__fn=...)
> at /usr/include/c++/12/bits/invoke.h:111
> #22 0x000055555648dbec in std::_Function_handler<void(SGSubsystem*),
> SGSubsystemGroup::bind()::<lambda(SGSubsystem*)> >::_M_invoke(const
> std::_Any_data &, SGSubsystem *&&) (__functor=...,
> __args#0=@0x7fffffffc060: 0x55555a19c0f0)
> at /usr/include/c++/12/bits/std_function.h:290
> #23 0x00005555564917d7 in std::function<void
> (SGSubsystem*)>::operator()(SGSubsystem*) const (this=0x7fffffffc0e0,
> __args#0=0x55555a19c0f0)
> at /usr/include/c++/12/bits/std_function.h:591
> #24 0x0000555556485989 in SGSubsystemGroup::forEach(std::function<void
> (SGSubsystem*)>) (this=0x555558806030, f=...)
> at .../simgear/simgear/structure/subsystem_mgr.cxx:331
> #25 0x0000555556486087 in SGSubsystemGroup::bind() (this=0x555558806030)
> at .../simgear/simgear/structure/subsystem_mgr.cxx:384
> #26 0x0000555556489f59 in SGSubsystemMgr::bind() (this=0x555558805d80)
> at .../simgear/simgear/structure/subsystem_mgr.cxx:1020
> #27 0x00005555560de65e in fgIdleFunction() ()
> at .../flightgear/src/Main/main.cxx:394
> #28 0x000055555603c74e in fgOSMainLoop() ()
> at .../flightgear/src/Viewer/fg_os_osgviewer.cxx:464
> #29 0x00005555560e0987 in fgMainInit(int, char**)
> (argc=18, argv=0x7fffffffd9e8)
> at .../flightgear/src/Main/main.cxx:780
> #30 0x0000555556114671 in main(int, char**) (argc=18, argv=0x7fffffffd9e8)
> at .../flightgear/src/Main/bootstrap.cxx:371
>
> Regards
>
> --
> Florent
>
>
> _______________________________________________
> Flightgear-devel mailing list
> Fli...@li...
> https://lists.sourceforge.net/lists/listinfo/flightgear-devel
>
|