Hi,

We have some modules of our project implemented in python and some in C.
We use shared library objects to access C functions from python.

We need to catch the exceptions like segmentation fault occurring in the
C module in python and print the complete stack.

We tried 1) signal.signal(SIGSEGV, handler_function)   
        2)  try:
                call to C functions through shared object
            except:
                traceback.print_exc(file=sys.stdout)
We got this.
1) But it hangs the process.

2) It does not print the stack.

Can you please suggest some solutions ?

Thanks and Regards
Manish Kumar



The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email.
 
www.wipro.com
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to