Author thatiparthy
Recipients thatiparthy
Date 2021-07-22.07:16:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1626938169.25.0.820707570973.issue44707@roundup.psfhosted.org>
In-reply-to
Content
After seeing this issue https://bugs.python.org/issue44698, I wanted to run clang on the main branch (c878f5d81772dc6f718d6608c78baa4be9a4f176) with an undefined option enabled.

Is the following a bug or false positive?

Objects/listobject.c:527:24: runtime error: applying zero offset to null pointer
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior Objects/listobject.c:527:24 in


Steps to reproduce.
1. export CC="/usr/bin/clang -fsanitize=undefined"
2. ./configure --with-pydebug --with-openssl=$(brew --prefix openssl)
3. make -j

Meta :
➜ clang --version
Apple clang version 12.0.5 (clang-1205.0.22.9)
Target: x86_64-apple-darwin20.6.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

➜ uname -a
Darwin Srinivass-MBP.Dlink 20.6.0 Darwin Kernel Version 20.6.0: Wed Jun 23 00:26:31 PDT 2021; root:xnu-7195.141.2~5/RELEASE_X86_64 x86_64
History
Date User Action Args
2021-07-22 07:16:09thatiparthysetrecipients: + thatiparthy
2021-07-22 07:16:09thatiparthysetmessageid: <1626938169.25.0.820707570973.issue44707@roundup.psfhosted.org>
2021-07-22 07:16:09thatiparthylinkissue44707 messages
2021-07-22 07:16:08thatiparthycreate