Skip Menu |

This queue is for tickets about the Inline-Python CPAN distribution.

Report information
The Basics
Id: 41100
Status: resolved
Priority: 0/
Queue: Inline-Python

People
Owner: Nobody in particular
Requestors: dekimsey [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 0.26
Fixed in: (no value)



Subject: Segmentation fault when returning unicode values
Inline::Python will seg fault when attempting to return a unicode string from python back into perl. Attached is the reportbug information as per documentation. Essentially the test code is the following: 11 use strict; 12 use warnings; 13 use Inline 'REPORTBUG'; 14 use Inline Python => <<'END'; 15 def broken(): 16 return u"Hello\n" 17 18 def working(): 19 return "Hello\n" 20 END 21 22 print "The sub working() will work...\n"; 23 print working(); 24 print "The sub broken() will not...\n"; 25 print broken(); Segmentation fault occurs at line 25.
Subject: Inline.REPORTBUG.tar.gz
Download Inline.REPORTBUG.tar.gz
application/x-gzip 9.6k

Message body not shown because it is not plain text.

On Thu Nov 20 11:06:42 2008, http://dekimsey.myopenid.com/ wrote: Show quoted text
> Inline::Python will seg fault when attempting to return a unicode > string from python back into perl.
Thanks for this perfect bug report! The bug should be fixed in 0.27 on it's way to the CPAN mirrors. I added your testcase as t/20unicode.t. If you could please test with your code.
On Thu Nov 20 13:06:57 2008, NINE wrote: Show quoted text
> On Thu Nov 20 11:06:42 2008, http://dekimsey.myopenid.com/ wrote:
> > Inline::Python will seg fault when attempting to return a unicode > > string from python back into perl.
> > Thanks for this perfect bug report! The bug should be fixed in 0.27
on Show quoted text
> it's way to the CPAN mirrors. I added your testcase as t/20unicode.t. > > If you could please test with your code.
Yup, works just fine now. Thanks for your prompt fix! (Took awhile for the cpan mirror I had to pick it up.) -- Danny.
Wonderful. Thanks for confirmation.