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 wfspotz
Recipients wfspotz
Date 2009-12-03.16:47:25
SpamBayes Score 1.4302838e-06
Marked as misclassified No
Message-id <1259858848.42.0.339728371454.issue7428@psf.upfronthosting.co.za>
In-reply-to
Content
I develop python extension modules for Trilinos, a large scientific 
computing project:

    http://trilinos.sandia.gov

Unit testing my extension modules under Mac OS X, I came across the 
following error messages after upgrading from gcc 4.0 to basically any 
higher version:

  python(65587) malloc: *** error for object 0x1715674: Non-aligned 
pointer being freed

Debugging the problem (which occurs for me in several places in several 
test scripts), the error was always being raised in the built-in C++ 
method

  ostream::operator<<(int)

which indicated to me that the problem was really probably somewhere 
else, and just being triggered in the ostream operator.

Trying to isolate the problem in a smaller script, I was unable to 
reproduce the error until I added

  import optparse

By the same token, I was able to eliminate the problem in my test 
scripts by getting rid of "import optparse".  I have changed these 
scripts now to use getopt, and they are running without error, but I 
thought I would report this strange behavior.

I realize after all of this that the problem might not actually be with 
optparse, but it sure seems like a likely culprit.  I would be happy to 
work with someone to try to reproduce the error, and then hopefully 
such a python expert would be able to find the actual issue.
History
Date User Action Args
2009-12-03 16:47:28wfspotzsetrecipients: + wfspotz
2009-12-03 16:47:28wfspotzsetmessageid: <1259858848.42.0.339728371454.issue7428@psf.upfronthosting.co.za>
2009-12-03 16:47:27wfspotzlinkissue7428 messages
2009-12-03 16:47:25wfspotzcreate