Bug 629990 - python module loader overrides/blocks application signal handlers
Summary: python module loader overrides/blocks application signal handlers
Keywords:
Status: CLOSED DUPLICATE of bug 629973
Alias: None
Product: Fedora
Classification: Fedora
Component: libpeas
Version: 14
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Bastien Nocera
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-09-03 13:00 UTC by Daniel Berrangé
Modified: 2010-09-03 13:09 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-09-03 13:09:15 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Demo program (897 bytes, text/plain)
2010-09-03 13:00 UTC, Daniel Berrangé
no flags Details
Demo plugin source file (380 bytes, text/plain)
2010-09-03 13:01 UTC, Daniel Berrangé
no flags Details
Demo plugin metadata file (78 bytes, text/plain)
2010-09-03 13:01 UTC, Daniel Berrangé
no flags Details

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 ***


Note You need to log in before you can comment on or make changes to this bug.