Bug 1223870 - ndbkit Python plugins don't load properly
Summary: ndbkit Python plugins don't load properly
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libguestfs
Version: unspecified
Hardware: Unspecified
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Richard W.M. Jones
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-05-21 15:07 UTC by William Speirs
Modified: 2015-05-21 16:42 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-05-21 16:42:08 UTC
Embargoed:


Attachments (Terms of Use)
diff of main.c (405 bytes, patch)
2015-05-21 15:07 UTC, William Speirs
no flags Details | Diff

Description William Speirs 2015-05-21 15:07:36 UTC
Created attachment 1028256 [details]
diff of main.c

Description of problem:
If you write a "complex" Python plugin for nbdkit it will not load shared libraries properly.

Version-Release number of selected component (if applicable):
nbdkit v1.1.9


How reproducible:
Just try and run a Python script that requires a shared library.


Additional info:

This can be fixed by changing the flags used in the dlopen call from RTLD_LOCAL to RTLD_GLOBAL

Comment 1 Richard W.M. Jones 2015-05-21 16:42:08 UTC
Looks good - I have pushed your patch upstream:

https://github.com/libguestfs/nbdkit/commit/77f4982e65840b6edff5e97d3dbdf140f7e3229b


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