[New-bugs-announce] [issue44707] runtime error: applying zero offset to null pointer in Objects/listobject.c

Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) report at bugs.python.org
Thu Jul 22 03:16:09 EDT 2021


New submission from Srinivas  Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) <thatiparthysreenivas at gmail.com>:

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

----------
messages: 397978
nosy: thatiparthy
priority: normal
severity: normal
status: open
title: runtime error: applying zero offset to null pointer in Objects/listobject.c

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44707>
_______________________________________


More information about the New-bugs-announce mailing list