This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients matejcik, neologix, pitrou, vstinner
Date 2014-01-22.23:18:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1390432737.3.0.600719054837.issue20354@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2014-01-22 23:18:57vstinnersetrecipients: + vstinner, pitrou, matejcik, neologix
2014-01-22 23:18:57vstinnersetmessageid: <1390432737.3.0.600719054837.issue20354@psf.upfronthosting.co.za>
2014-01-22 23:18:57vstinnerlinkissue20354 messages
2014-01-22 23:18:57vstinnercreate