Community
Participate
Working Groups
If the Registry module is used but no loggers are created, Registry_addModule() will derefernce a NULL pointer trying to assign a default diags mask to the legacy "module".
The person who fix verifies needs to add tests for the Registry module. File new bug to run xdc.runtime tests on x86 Linux target.
fixed in 3.21 and 3.20 streams (r1138 and r1139) Registry.c used desc->mask = *Module__DGSMASK; when it should have used desc->mask = Registry_Module_getMask();
*** Bug 314926 has been marked as a duplicate of this bug. ***
Verified by code inspection in xdc-w10. Also added a new test to the regresstest tree, RegistryNullLogger. However, this test case doesn't throw any errors when run on a typical target--dereferencing null is harmless. This test would need to be run on a target such as x86 which will complain when null is dereferenced.
An embedded test can verify that the mask matches the mask of the Registry module. The de-reference of NULL will almost certainly put garbage into the registered module's diags mask.
Shipped in XDCtools 3.20.04