apache / apache/logging-log4cxx
debug mode log4cxx.dll crash
- Dominant language
- C++
- Stars
- 301
- Forks
- 142
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 29
Description
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>::deallocate(std::allocator & _Al, std::_Container_proxy * const _Ptr, const unsigned __int64 _Count) 行 670 C++
log4cxx.dll!std::_Deallocate_plain>(std::allocator & _Al, std::_Container_proxy * const _Ptr) 行 984 C++
log4cxx.dll!std::_Delete_plain_internal>(std::allocator & _Al, std::_Container_proxy * const _Ptr) 行 997 C++
log4cxx.dll!std::string::~basic_string,std::allocator>() 行 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::WideLife(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 }
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the Windows 11 x64 debug initialization crash with VS2022, vcpkg, and log4cxx 1.5.0, then inspect log4cxx::helpers::Class::registerClass() around the reported registry assignment and the debug CRT stack. Done means identifying and addressing the debug-only crash, with initialization verified in both debug and release builds.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100