Hide Forgot
Description of problem: The examples in the Lunatic Python website no longer works; any attempt to convert a Lua value to Python and vice versa crashes see e.g. the first examples for "Lua inside Python" and "Python inside Lua": http://niemeyer.net/lunatic-python note that executing Python statements from Lua and vice versa works, as long as the values are not then converted to the equivalent in the other language. e.g. (in Lua) > require("python") > python.execute("print 42") 42 (in Python) >>> import lua >>> lg = lua.globals() >>> lua.execute("print(42)") 42 Version-Release number of selected component (if applicable): lunatic-python-1.0.1-0.4.20090917bzr.fc15.x86_64 (also the F14 version; discovered this when testing the Lua in F14's updates-testing) How reproducible: Always Steps to Reproduce: 1. Try the examples from the Lunatic Python website Actual results: Segfaults converting values between the two languages Expected results: Should work Additional info: PS thanks for picking Lunatic Python up -- I did the initial review request but then was otherwise occupied. Upstream development of Lunatic is, unfortunately, stalled (I've seen only one patch applied in the past two years), and last I checked, the various forks on Launchpad are diverging from each other; we should probably try and find a solution with upstream.
note: upstream's lp:lunatic-python commit 8 (merged into my lp:~hircus/lunatic-python/trunk branch, commit 10) fixes the segfault for integers, but still not for strings.
This is a bug on 64-bit systems: https://bugs.launchpad.net/lunatic-python/+bug/432319 The bug was fixed in dne trunk: http://bazaar.launchpad.net/~dne/lunatic-python/bugfixes/revision/15
Created attachment 514817 [details] Patch for fixing segfaults on 64-bit systems The patch from dne trunk for Fedora.
lunatic-python-1.0.1-0.5.20090917bzr.fc15 has been submitted as an update for Fedora 15. https://admin.fedoraproject.org/updates/lunatic-python-1.0.1-0.5.20090917bzr.fc15
Package lunatic-python-1.0.1-0.5.20090917bzr.fc15: * should fix your issue, * was pushed to the Fedora 15 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing lunatic-python-1.0.1-0.5.20090917bzr.fc15' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/lunatic-python-1.0.1-0.5.20090917bzr.fc15 then log in and leave karma (feedback).
lunatic-python-1.0.1-0.5.20090917bzr.fc15 has been pushed to the Fedora 15 stable repository. If problems still persist, please make note of it in this bug report.