https://bugs.openldap.org/show_bug.cgi?id=9377
Issue ID: 9377 Summary: Golang built-in race-detector tooling catching pointer arithmetic error on Win Product: LMDB Version: 0.9.25 Hardware: x86_64 OS: Windows Status: UNCONFIRMED Severity: normal Priority: --- Component: liblmdb Assignee: bugs@openldap.org Reporter: AskAlexSharov@gmail.com Target Milestone: ---
Detector of race-conditions which built into Golang tooling shows next error on Windows x86_64:
mdb.c:1487:7: char buf[MSGSIZE+PADSIZE], *ptr = buf; ^ fatal error: checkptr: pointer arithmetic computed bad pointer value
Link to CI where error is reproducible: https://github.com/ledgerwatch/lmdb-go/pull/8/checks?check_run_id=1312699178...
https://bugs.openldap.org/show_bug.cgi?id=9377
AskAlexSharov@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Golang built-in |Golang built-in |race-detector tooling |race-detector tooling |catching pointer arithmetic |catching pointer arithmetic |error on Win |error on Win2019
https://bugs.openldap.org/show_bug.cgi?id=9377
Howard Chu hyc@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID
--- Comment #1 from Howard Chu hyc@openldap.org --- (In reply to AskAlexSharov from comment #0)
Detector of race-conditions which built into Golang tooling shows next error on Windows x86_64:
mdb.c:1487:7: char buf[MSGSIZE+PADSIZE], *ptr = buf; ^ fatal error: checkptr: pointer arithmetic computed bad pointer value
Link to CI where error is reproducible: https://github.com/ledgerwatch/lmdb-go/pull/8/ checks?check_run_id=1312699178#step:6:17
The report is incorrect. There is no pointer arithmetic being performed on the line in question. The tool is clearly wrong. Closing this ITS.