Mailing List Archive

[Bug 68763] New: ring warnings with CFLAGS=-fsanitize=undefined
https://bz.apache.org/bugzilla/show_bug.cgi?id=68763

Bug ID: 68763
Summary: ring warnings with CFLAGS=-fsanitize=undefined
Product: Apache httpd-2
Version: 2.5-HEAD
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Core
Assignee: bugs@httpd.apache.org
Reporter: covener@gmail.com
Target Milestone: ---

clang with CFLAGS=-fsanitize=undefined complains about a few things at startup
and shutdown (with apr 1.7.4 and clang 1:14.0-55~exp2)


mpm_common.c:480:19: runtime error: member access within null pointer of type
'struct mpm_gen_info_t'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior mpm_common.c:480:19 in
mpm_common.c:485:16: runtime error: member access within null pointer of type
'struct mpm_gen_info_t'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior mpm_common.c:485:16 in
[Tue Mar 12 18:05:04.747718 2024] [core:trace4] [pid 256504] mpm_common.c(462):
end of generation 0
mpm_common.c:466:5: runtime error: member access within null pointer of type
'struct mpm_gen_info_t'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior mpm_common.c:466:5 in
mpm_common.c:466:5: runtime error: member access within null pointer of type
'struct mpm_gen_info_t'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior mpm_common.c:466:5 in
mpm_common.c:466:5: runtime error: member access within null pointer of type
'struct mpm_gen_info_t'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior mpm_common.c:466:5 in
mpm_common.c:466:5: runtime error: member access within null pointer of type
'struct mpm_gen_info_t'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior mpm_common.c:466:5 in

mpm_fdqueue.c:364:5: runtime error: member access within null pointer of type
'struct timer_event_t'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior mpm_fdqueue.c:364:5 in
mpm_fdqueue.c:445:9: runtime error: member access within null pointer of type
'struct timer_event_t'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior mpm_fdqueue.c:445:9 in
mpm_fdqueue.c:450:13: runtime error: member access within null pointer of type
'struct timer_event_t'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior mpm_fdqueue.c:450:13 in

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org