Message304988
"I tried to build CPython on 64-bit OpenBSD. It was built successfully, but tests crash."
It's the first time that anyone complains about _PyMem_DebugRawRealloc(). The behaviour seems to be very specific to OpenBSD.
Even if the current code is "weird", it works very well and is effecient.
I proposed attached PR 4119 which makes _PyMem_DebugRawRealloc() behaves correctly: erase bytes *before* calling realloc(), but keeps a copy if realloc() fails. My PR only changes the behaviour on OpenBSD. It keeps the current behaviour (erase bytes *after* realloc, if realloc succeeded) on other platforms for performance reasons. |
|
Date |
User |
Action |
Args |
2017-10-25 14:18:51 | vstinner | set | recipients:
+ vstinner, larry, serhiy.storchaka, davin |
2017-10-25 14:18:51 | vstinner | set | messageid: <1508941131.5.0.213398074469.issue31626@psf.upfronthosting.co.za> |
2017-10-25 14:18:51 | vstinner | link | issue31626 messages |
2017-10-25 14:18:51 | vstinner | create | |
|