Message208864
Oops, the original code is:
---
/* Pack the frame_t structure to reduce the memory footprint on 64-bit
architectures: 12 bytes instead of 16. This optimization might produce
SIGBUS on architectures not supporting unaligned memory accesses (64-bit
IPS CPU?): on such architecture, the structure must not be packed. */
#pragma pack(4)
typedef struct
#ifdef __GNUC__
__attribute__((packed))
#endif
{
PyObject *filename;
int lineno;
} frame_t;
---
"#pragma pack(4)" is for Microsoft Visual Studio. For GCC, there is already the "__attribute__((packed))" line. See attached workaround tracemalloc_gcov.patch. But I would interested to understand why it does crash. It might be a GCC or gcov bug. |
|
Date |
User |
Action |
Args |
2014-01-22 23:18:57 | vstinner | set | recipients:
+ vstinner, pitrou, matejcik, neologix |
2014-01-22 23:18:57 | vstinner | set | messageid: <1390432737.3.0.600719054837.issue20354@psf.upfronthosting.co.za> |
2014-01-22 23:18:57 | vstinner | link | issue20354 messages |
2014-01-22 23:18:57 | vstinner | create | |
|