You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by Michael Stevens <mi...@dianomi.com> on 2010/07/20 16:06:52 UTC

very easy to segfault embperl

Hi.

I was trying to test something else when I discovered this script is 
enough to segfault embperl:

use strict;
use Embperl;

my $output1;

my $input = "";

Embperl::Execute({
     inputfile => "blah",
     input => \$input,
     output => $output1,
     });

The mistake is that I'm providing $output1 and not \$output1, but a 
segfault seems like quite a harsh punishment!

-- 
Michael Stevens
Dianomi Ltd
18 Buckingham Gate
London SW1E 6LB

Tel: 020 7802 5530
Fax: 020 7630 7356
www.dianomi.com

The information in this message and any attachment is intended for the 
addressee and is confidential and may be subject to legal privilege. 
Dianomi Ltd, Registered Office: One America Square, Crosswall, London. 
EC3N 2SG. Registered in England and Wales with Company Registration 
Number 4513809. VAT registration number: 809754988

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


RE: very easy to segfault embperl

Posted by Gerald Richter - ECOS <ge...@ecos.de>.
Hi,

I ran accross this issue (with the path parameter) some days before on my own. I will fix it, so a error message is generated instead of a seg fault

Gerald


> -----Original Message-----
> From: Michael Stevens [mailto:michael.stevens@dianomi.com]
> Sent: Tuesday, July 20, 2010 4:07 PM
> To: embperl@perl.apache.org
> Subject: very easy to segfault embperl
> 
> Hi.
> 
> I was trying to test something else when I discovered this script is
> enough to segfault embperl:
> 
> use strict;
> use Embperl;
> 
> my $output1;
> 
> my $input = "";
> 
> Embperl::Execute({
>      inputfile => "blah",
>      input => \$input,
>      output => $output1,
>      });
> 
> The mistake is that I'm providing $output1 and not \$output1, but a
> segfault seems like quite a harsh punishment!
> 
> --
> Michael Stevens
> Dianomi Ltd
> 18 Buckingham Gate
> London SW1E 6LB
> 
> Tel: 020 7802 5530
> Fax: 020 7630 7356
> www.dianomi.com
> 
> The information in this message and any attachment is intended for the
> addressee and is confidential and may be subject to legal privilege.
> Dianomi Ltd, Registered Office: One America Square, Crosswall, London.
> EC3N 2SG. Registered in England and Wales with Company Registration
> Number 4513809. VAT registration number: 809754988
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
> For additional commands, e-mail: embperl-help@perl.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org