473,394 Members | 2,071 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Python on mac - can't extend interpreter with "catch_exception_raise"wrapper.

Hi. I've run into a very strange problem with Python on the mac. I'm
trying to write a python script which will monitor an application for
exceptions. It turns out on a mac, to do this you want to use the Mach
IPC interface, see:

http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/
http://www.wodeveloper.com/omniLists.../msg00137.html

Once set up, you call the mach function exc_server which then calls
"catch_raise_exception" which you provide. This works great in C, so I
thought I'd wrap it for python. But, it turns out the python
interpreter already has a symbol named "catch_raise_exception", (in my
case at 0x2030 under gdb). The problem is when exc_server calls
catch_raise_exception it calls the one from the python binary and not
the one I provided and dies. Does anyone have any ideas on how to deal
with this perplexing problem?!?

Thanks!!!

Charlie
Dec 9 '06 #1
0 899

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Ryan Paul | last post by:
I've spent a lot of time using python, and personally, I feel like it is vastly superior when compared to languages like java, and c++, but there are still a few things that detract from its...
1
by: Donnie Leen | last post by:
I wrote a program embbed boost.python, each thread running a sub-interpreter, i made a module implement by boost.python, and i wish this module imported in each sub-interpreter, i find that the...
1
by: dataangel | last post by:
I'm writing a python app that works as a replacement for the menu that comes with most minimalist wms when you right click the root window. It's prettier and written completely in python. I'd...
12
by: Rex Eastbourne | last post by:
Hi, I'm interested in running a Python interpreter in Emacs. I have Python extensions for Emacs, and my python menu lists "C-c !" as the command to run the interpreter. Yet when I run it I get...
2
by: jvvhie | last post by:
Hello, I am writing a pure-Python game engine that interprets the code of game objects within the same process with the exec statement. My main goal is to make as much power available as possible...
1
by: Petr Prikryl | last post by:
Do you think that the following could became PEP (pre PEP). Please, read it, comment it, reformulate it,... Abstract Introduction of the mechanism for language extensions via modules...
6
by: tcfg | last post by:
dear all: I have searched the debug informations of many python's IDE, but I cannot find the method about debuging the extend module written in Visual studio 2008 on windows. The wingIDE tell...
3
by: Derek Martin | last post by:
On Wed, Aug 20, 2008 at 03:19:19PM -0400, joey boggs wrote: What is the problem you are trying to solve? Are you asking how to write a shell in Python? <pet peeve> You wouldn't... "setup"...
0
by: cnb | last post by:
how do I run the interpreter In emacs? pythonmode works but I cant start the interpreter. do I need to add it to my load-path? what should I add exactly then? python.exe or pythonw.exe?
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.