Bug 629990

Summary: python module loader overrides/blocks application signal handlers
Product: [Fedora] Fedora Reporter: Daniel Berrangé <berrange>
Component: libpeasAssignee: Bastien Nocera <bnocera>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 14CC: bnocera
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-09-03 13:09:15 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Demo program
none
Demo plugin source file
none
Demo plugin metadata file none

Description Daniel Berrangé 2010-09-03 13:00:36 UTC
Created attachment 442888 [details]
Demo program

Description of problem:
The python plugin loader for libpeas will mess with application signal handlers, in particular, breaking Ctrl-C.


Version-Release number of selected component (if applicable):
libpeas-0.5.4-1.fc14.x86_64

How reproducible:
Always, with python plugins

Steps to Reproduce:
1. gcc -Wall `pkg-config --libs --cflags libpeas-1.0` -o demo demo.c
2. ./peas
3. Ctrl-C
4. save 2nd attachment to plugins/hello/hello.py
5. save 3rd attachment to plugins/hello.demo-plugin
6. ./peas
7. Ctrl-C

Actual results:
Fails to interrupt in step 7

Expected results:
Signal handlers are not touched by libpeas.

Additional info:

Comment 1 Daniel Berrangé 2010-09-03 13:01:03 UTC
Created attachment 442889 [details]
Demo plugin source file

Comment 2 Daniel Berrangé 2010-09-03 13:01:22 UTC
Created attachment 442890 [details]
Demo plugin metadata file

Comment 3 Daniel Berrangé 2010-09-03 13:02:34 UTC
> 5. save 3rd attachment to plugins/hello.demo-plugin

Opps, typoed & missed a subdir, that should have said

5. save 3rd attachment to plugins/hello/hello.demo-plugin

Comment 4 Daniel Berrangé 2010-09-03 13:09:15 UTC

*** This bug has been marked as a duplicate of bug 629973 ***