Skip Menu |

This queue is for tickets about the Catalyst-Plugin-Unicode-Encoding CPAN distribution.

Report information
The Basics
Id: 50201
Status: resolved
Priority: 0/
Queue: Catalyst-Plugin-Unicode-Encoding

People
Owner: Nobody in particular
Requestors: bartleby_the_scrivener [...] gmx.de
Cc:
AdminCc:

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



Subject: segmentation fault
Date: Mon, 5 Oct 2009 10:11:02 +0200
To: bug-Catalyst-Plugin-Unicode-Encoding [...] rt.cpan.org
From: Kurt vom Walde <bartleby_the_scrivener [...] gmx.de>
Catalyst 5.80013 Perl 5.10.0 Ubuntu 9.04 This is not a very usefull bugreport, but I think you should know: Enabling Catalyst::Plugin::Unicode::Encoding gives me a segmentation fault, a soon as I try to load any Action via the Development Server. The Server starts up fine though. Greetings, KvW
Subject: Re: [rt.cpan.org #50201] segmentation fault
Date: Mon, 5 Oct 2009 09:20:56 +0100
To: bug-Catalyst-Plugin-Unicode-Encoding [...] rt.cpan.org
From: Tomas Doran <bobtfish [...] bobtfish.net>
On 5 Oct 2009, at 09:11, Kurt vom Walde via RT wrote: Show quoted text
> Catalyst 5.80013 > Perl 5.10.0 > Ubuntu 9.04 > > This is not a very usefull bugreport, but I think you should know: > Enabling Catalyst::Plugin::Unicode::Encoding gives me a segmentation > fault, a soon as I try to load any Action via the Development Server. > The Server starts up fine though.
I don't understand how the server can both segfault and start ok.. Can you possibly give us a trivial example app which causes the segfault and a gdb backtrace? Cheers t0m
Subject: Re: [rt.cpan.org #50201] segmentation fault
Date: Tue, 06 Oct 2009 21:42:40 +0200
To: bug-Catalyst-Plugin-Unicode-Encoding [...] rt.cpan.org
From: Kurt vom Walde <bartleby_the_scrivener [...] gmx.de>
Sorry for the delay. I can't give you a gdb backtrace unless you tell me how to do it. But I can give you a minimal example app (attached). The segfault occurs for me as soon as I call the test action from the root controller. It doesn't occur when I disable Unicode::Encoding I disable Static::Simple I don't attach the JQery library in the html wrapper Unfortunately I cannot provide more help - I'm no programmer and generally quite stupid. Greetings, KvW Am Montag, den 05.10.2009, 04:20 -0400 schrieb Tomas Doran via RT: Show quoted text
> <URL: http://rt.cpan.org/Ticket/Display.html?id=50201 > > > > On 5 Oct 2009, at 09:11, Kurt vom Walde via RT wrote:
> > Catalyst 5.80013 > > Perl 5.10.0 > > Ubuntu 9.04 > > > > This is not a very usefull bugreport, but I think you should know: > > Enabling Catalyst::Plugin::Unicode::Encoding gives me a segmentation > > fault, a soon as I try to load any Action via the Development Server. > > The Server starts up fine though.
> > I don't understand how the server can both segfault and start ok.. > > Can you possibly give us a trivial example app which causes the > segfault and a gdb backtrace? > > Cheers > t0m >
Download BugTest.tar.gz
application/x-compressed-tar 60.3k

Message body not shown because it is not plain text.

When the Catalyst http server itself serves the static files, they are going through Plugin::Unicode::Encoding and Encode::Encoding segfaults. This litte cod piece shows the behaviour too: #!/usr/bin/perl use strict; use warnings; use Encode; use IO::File; our $CHECK = Encode::FB_CROAK | Encode::LEAVE_SRC; my $encoding = Encode::find_encoding('UTF-8'); my $full_path = '/path/to/static/file.js'; my $fh = IO::File->new( $full_path, 'r' ) or die("Cannot open $full_path"); binmode $fh; # happens with and without binmode set $encoding->encode( $fh, $CHECK ); # this segfaults
Subject: Re: [rt.cpan.org #50201] segmentation fault
Date: Sun, 8 Nov 2009 14:48:52 +0100
To: bug-Catalyst-Plugin-Unicode-Encoding [...] rt.cpan.org
From: Kurt vom Walde <bartleby_the_scrivener [...] gmx.de>
I just realised that this bug is still marked as open: Since version 0.40 everything works fine for me. Thanks for this cool module KvW Am Fri, 16 Oct 2009 08:17:11 -0400 schrieb "Alexander Hartmaier via RT" <bug-Catalyst-Plugin-Unicode-Encoding@rt.cpan.org>: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=50201 > > > When the Catalyst http server itself serves the static files, they are > going through Plugin::Unicode::Encoding and Encode::Encoding > segfaults. > > This litte cod piece shows the behaviour too: > > #!/usr/bin/perl > use strict; > use warnings; > use Encode; > use IO::File; > > our $CHECK = Encode::FB_CROAK | Encode::LEAVE_SRC; > my $encoding = Encode::find_encoding('UTF-8'); > my $full_path = '/path/to/static/file.js'; > my $fh = IO::File->new( $full_path, 'r' ) or die("Cannot open > $full_path"); binmode $fh; # happens with and without binmode set > $encoding->encode( $fh, $CHECK ); # this segfaults