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 alllexx
Recipients alllexx
Date 2015-01-28.15:49:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1422460145.75.0.667594511432.issue23340@psf.upfronthosting.co.za>
In-reply-to
Content
I run Python on an arm-brcm-linux-uclibcgnueabi router. Python was cross-compiled using hndtools-arm-linux-2.6.36-uclibc-4.5.3 toolchain. While trying to use deluge, I realised that there's something wrong with handling C++ exceptions in C++ extension modules: they're not being caught at all. I tested whether C++ exception handling works on my system in general, and concluded it does work fine. I then wrote a simple C++ extension module with a try-catch block in the init function, that has a "throw 1" in the try section and a "catch (...)" section (see module.cpp), and I got "terminate called after throwing an instance of 'int'" when trying to load the module. Tested this with Python 2.7.9 and 3.4.2, however I had similar issues with other versions, such as 2.7.3 and 2.6.9.

I'm not sure whether this is a Python issue, or a specific build issue, but I'm stuck here and any help is greatly appreciated!
History
Date User Action Args
2015-01-28 15:49:05alllexxsetrecipients: + alllexx
2015-01-28 15:49:05alllexxsetmessageid: <1422460145.75.0.667594511432.issue23340@psf.upfronthosting.co.za>
2015-01-28 15:49:05alllexxlinkissue23340 messages
2015-01-28 15:49:05alllexxcreate