Skip to content

debug mode log4cxx.dll crash #557

@qq952670771

Description

@qq952670771

os : win11 x64 version:26100.1742
build tools : vs2022
mode : debug.
ouput type : dll
log4cxx version: 1.5.0

Automatically compile log4cxx.dll using vcpkg ,

The application crashed during initialization when it was running(debug mode).
In the release mode, it is normal.

This is the call stack information.


 	ucrtbased.dll!00007fffd83a0f54()	unkown
 	ucrtbased.dll!00007fffd839f495()	unkown
 	log4cxx.dll!operator delete(void * block) 行 38	C++
 	log4cxx.dll!operator delete(void * block, unsigned __int64 __formal) 行 32	C++
 	log4cxx.dll!std::_Deallocate<16,0>(void * _Ptr, unsigned __int64 _Bytes) 行 255	C++
 	log4cxx.dll!std::_Default_allocator_traits<std::allocator<std::_Container_proxy>>::deallocate(std::allocator<std::_Container_proxy> & _Al, std::_Container_proxy * const _Ptr, const unsigned __int64 _Count) 行 670	C++
 	log4cxx.dll!std::_Deallocate_plain<std::allocator<std::_Container_proxy>>(std::allocator<std::_Container_proxy> & _Al, std::_Container_proxy * const _Ptr) 行 984	C++
 	log4cxx.dll!std::_Delete_plain_internal<std::allocator<std::_Container_proxy>>(std::allocator<std::_Container_proxy> & _Al, std::_Container_proxy * const _Ptr) 行 997	C++
 	log4cxx.dll!std::string::~basic_string<char,std::char_traits<char>,std::allocator<char>>() 行 3275	C++
>	log4cxx.dll!log4cxx::helpers::Class::registerClass(const log4cxx::helpers::Class & newClass) 行 176	C++
 	log4cxx.dll!log4cxx::helpers::ClassRegistration::ClassRegistration(const log4cxx::helpers::Class &(*)() accessor) 行 27	C++
 	baseapp.exe!log4cxx::helpers::WideLife<log4cxx::helpers::ClassRegistration>::WideLife<log4cxx::helpers::ClassRegistration><log4cxx::helpers::Class const & (__cdecl&)(void)>(const log4cxx::helpers::Class &(*)() arg0) 行 50	C++
 	baseapp.exe!log4cxx::ScriptLevel::registerClass() 行 10	C++
 	baseapp.exe!log4cxx::classes::`dynamic initializer for 'ScriptLevelRegistration''() 行 10	C++
 	baseapp.exe!_initterm(void(*)() * first, void(*)() * last) 行 22	C++
 	[External code]	

173 bool Class::registerClass(const Class& newClass)
174  {
175     getRegistry()[StringHelper::toLowerCase(newClass.getName())] = &newClass;
176     return true;
177  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions