[redland-dev] [Redland Language Bindings 0000440]: Python "import RDF" gives "The process has forked and you cannot use this CoreFoundation functionality safely. You MUST exec()"

Mantis Bug Tracker mantis-bug-sender at librdf.org
Tue Apr 19 12:35:50 CEST 2011


The following issue has been SUBMITTED. 
====================================================================== 
http://bugs.librdf.org/mantis/view.php?id=440 
====================================================================== 
Reported By:                dbrnz
Assigned To:                
====================================================================== 
Project:                    Redland Language Bindings
Issue ID:                   440
Category:                   api
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Binding Language (java, perl, php, python, ruby, tcl): python 
====================================================================== 
Date Submitted:             2011-04-19 10:35
Last Modified:              2011-04-19 10:35
====================================================================== 
Summary:                    Python "import RDF" gives "The process has forked
and you cannot use this CoreFoundation functionality safely. You MUST exec()"
Description: 
I have a Python web-server application, built with web.py, that uses librdf. All
works well running directly under Python. However, attempting to run the
application under Apache/2.2.17 with mod_wsgi/3.3 and Python/2.7.1 results in
"The process has forked and you cannot use this CoreFoundation functionality
safely. You MUST exec()." errors. 

What might be being forked, presumably as part of librdf's initialisation? I
have configured librdf so only the memory triple store is enabled, trying to
eliminate backend database code.

Any and all clues appreciated!!

Steps to Reproduce: 
The following trivial mod_wsgi and web.py example works just fine until the
"import RDF" line is enabled. Apache's log file then has three lines of the
above error.


##############

import web
#import RDF  ## Error if RDF imported

urls = ( '/.*', 'hello', )

class hello:
    def GET(self):
        return "Hello, world."

application = web.application(urls, globals()).wsgifunc()

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-04-19 10:35 dbrnz          New Issue                                    
======================================================================



More information about the redland-dev mailing list