Bug 692287

Summary: Segmentation fault whenever converting Lua values to Python (and vice versa)
Product: [Fedora] Fedora Reporter: Michel Alexandre Salim <michel>
Component: lunatic-pythonAssignee: Gwyn Ciesla <gwync>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 15CC: gwync, iwelkers
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: lunatic-python-1.0.1-0.5.20090917bzr.fc15 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-08-03 02:33:46 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
Patch for fixing segfaults on 64-bit systems none

Description Michel Alexandre Salim 2011-03-30 22:57:18 UTC
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.

Comment 1 Michel Alexandre Salim 2011-03-30 23:15:33 UTC
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.

Comment 2 iwelkers 2011-07-23 11:40:34 UTC
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

Comment 3 iwelkers 2011-07-23 11:42:24 UTC
Created attachment 514817 [details]
Patch for fixing segfaults on 64-bit systems

The patch from dne trunk for Fedora.

Comment 4 Fedora Update System 2011-07-25 13:18:11 UTC
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

Comment 5 Fedora Update System 2011-07-26 03:34:01 UTC
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).

Comment 6 Fedora Update System 2011-08-03 02:33:41 UTC
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.