[gstreamer-bugs] [Bug 599991] fails to load libpython

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Thu Aug 26 02:10:12 PDT 2010


https://bugzilla.gnome.org/show_bug.cgi?id=599991
  GStreamer | gst-python | 0.10.17

--- Comment #11 from Leo Singer <lsinger at caltech.edu> 2010-08-26 09:10:11 UTC ---
(In reply to comment #10)
> Say we link libgstpythonplugin to -lpython2.6. If you load it from a regular C
> app, that's fine, it will load libpython and work correctly.
> 
> But say you are working with a gst-python app and you load libgstpythonplugin.
> That will load libpython, resulting in two different instances of the python
> runtime loaded in memory - one loaded from the interpreter that is running your
> app, one loaded from libgstpythonplugin. That would break in unexpected ways,
> since the python runtime has significant global state (like the GIL).

The following is probably a stupid question.  Please bear with my ignorance of
how dynamic linking works.

Isn't the Python shell itself linked against libpython?  The Python
documentation says that Py_Initialize() "is a no-op when called for a second
time".

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.




More information about the Gstreamer-bugs mailing list