Bug#574156: Bug#572515: Perl-Debug output

2010-11-06 Thread Niko Tyni
retitle 574156 Data::Dumper crash with invalid utf8
thanks

On Sat, Nov 06, 2010 at 02:15:14PM +0200, Niko Tyni wrote:
> On Tue, Mar 16, 2010 at 07:21:07PM +0100, Patrick Matthäi wrote:
> > retitle #511080 Illegal mix of collations
> > reopen #572515
> > severity #572515 normal
> > clone #572515
> > reassign -1 perl
> > merge #511080 #572515
> > thanks
> 
> > it is a bug in both, otrs and perl itself.
> > Dumper.pm shouldn't crash.
> 
> A test case would have helped. I was able to come up with
> 
> perl -w -MData::Dumper -MEncode -e 'my $a=("A"x400)  . 
> "ab\x{fc}\x{67}\x{bc}de"; Encode::_utf8_on($a); Dumper $a'
> 
> which crashes for me with perl but not debugperl.
> 
> Using the internal function Encode::_utf8_on(), particularly with invalid
> input, is asking for trouble, but I'll see what I can do.

Oops, that went to a wrong bug. Sorry, Patrick. Resending and retitling.
-- 
Niko Tyni   nt...@debian.org



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#572515: Perl-Debug output

2010-11-06 Thread Niko Tyni
On Tue, Mar 16, 2010 at 07:21:07PM +0100, Patrick Matthäi wrote:
> retitle #511080 Illegal mix of collations
> reopen #572515
> severity #572515 normal
> clone #572515
> reassign -1 perl
> merge #511080 #572515
> thanks

> it is a bug in both, otrs and perl itself.
> Dumper.pm shouldn't crash.

A test case would have helped. I was able to come up with

perl -w -MData::Dumper -MEncode -e 'my $a=("A"x400)  . 
"ab\x{fc}\x{67}\x{bc}de"; Encode::_utf8_on($a); Dumper $a'

which crashes for me with perl but not debugperl.

Using the internal function Encode::_utf8_on(), particularly with invalid
input, is asking for trouble, but I'll see what I can do.
-- 
Niko Tyni   nt...@debian.org



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#572515: Perl-Debug output

2010-03-16 Thread Patrick Matthäi

retitle #511080 Illegal mix of collations
reopen #572515
severity #572515 normal
clone #572515
reassign -1 perl
merge #511080 #572515
thanks

Hi,

it is a bug in both, otrs and perl itself.
Dumper.pm shouldn't crash.
Also your problem is reported in bug #511080 and #573951

Am 16.03.2010 13:39, schrieb Peter Grap:

Hi,

this is the output of perl-debug.


perl -d /usr/share/otrs/bin/otrs.RebuildConfig.pl

Loading DB routines from perl5db.pl version 1.32
Editor support available.

Enter h or `h h' for help, or `man perldebug' for more help.

main::(/usr/share/otrs/bin/otrs.RebuildConfig.pl:34):
34: $VERSION = qw($Revision: 1.12 $) [1];
DB<1> n
main::(/usr/share/otrs/bin/otrs.RebuildConfig.pl:47):
47: my %CommonObject = ();
DB<1> n
main::(/usr/share/otrs/bin/otrs.RebuildConfig.pl:48):
48: $CommonObject{ConfigObject} = Kernel::Config->new();
DB<1> n
ERROR: Datei oder Verzeichnis nicht gefunden:
/usr/share/otrs/Kernel/Config/Files/ZZZAAuto.pm
main::(/usr/share/otrs/bin/otrs.RebuildConfig.pl:49):
49: $CommonObject{EncodeObject} =
Kernel::System::Encode->new(%CommonObject);
DB<1> n
main::(/usr/share/otrs/bin/otrs.RebuildConfig.pl:50):
50: $CommonObject{LogObject} = Kernel::System::Log->new(
51: LogPrefix => 'OTRS-otrs.RebuildConfig.pl',
52: %CommonObject,
53: );
DB<1> n
main::(/usr/share/otrs/bin/otrs.RebuildConfig.pl:54):
54: $CommonObject{TimeObject} = Kernel::System::Time->new(%CommonObject);
DB<1> n
main::(/usr/share/otrs/bin/otrs.RebuildConfig.pl:55):
55: $CommonObject{MainObject} = Kernel::System::Main->new(%CommonObject);
DB<1> n
main::(/usr/share/otrs/bin/otrs.RebuildConfig.pl:56):
56: $CommonObject{DBObject} = Kernel::System::DB->new(%CommonObject);
DB<1> n
main::(/usr/share/otrs/bin/otrs.RebuildConfig.pl:57):
57: $CommonObject{SysConfigObject} =
Kernel::System::Config->new(%CommonObject);
DB<1> n
ERROR: Datei oder Verzeichnis nicht gefunden:
/usr/share/otrs/Kernel/Config/Files/ZZZAAuto.pm
utf8 "\xF6" does not map to Unicode at
/usr/share/otrs/Kernel/System/Config.pm line 161, <$In> chunk 1.
at /usr/share/otrs/Kernel/System/Config.pm line 161
Kernel::System::Config::_Init('Kernel::System::Config=HASH(0x8b38d48)')
called at /usr/share/otrs/Kernel/System/Config.pm line 112
Kernel::System::Config::new('Kernel::System::Config', 'EncodeObject',
'Kernel::System::Encode=HASH(0x8a5b798)', 'ConfigObject',
'Kernel::Config=HASH(0x89d4670)', 'DBObject',
'Kernel::System::DB=HASH(0x8b39388)', 'TimeObject',
'Kernel::System::Time=HASH(0x8b392e8)', ...) called at
/usr/share/otrs/bin/otrs.RebuildConfig.pl line 57
main::(/usr/share/otrs/bin/otrs.RebuildConfig.pl:62):
62: print "otrs.RebuildConfig.pl  - OTRS rebuild
default config\n";
DB<1> n
otrs.RebuildConfig.pl  - OTRS rebuild default config
main::(/usr/share/otrs/bin/otrs.RebuildConfig.pl:63):
63: print "Copyright (C) 2001-2009 OTRS AG, http://otrs.org/\n";;
DB<1> n
Copyright (C) 2001-2009 OTRS AG, http://otrs.org/
main::(/usr/share/otrs/bin/otrs.RebuildConfig.pl:64):
64: if ( $CommonObject{SysConfigObject}->WriteDefault() ) {
DB<1> n
Malformed UTF-8 character (unexpected non-continuation byte 0x67,
immediately after start byte 0xfc) in subroutine entry at
/usr/lib/perl/5.10/Data/Dumper.pm line 190.
at /usr/lib/perl/5.10/Data/Dumper.pm line 190
Data::Dumper::Dump('Data::Dumper', 'ARRAY(0x95ff560)') called at
/usr/lib/perl/5.10/Data/Dumper.pm line 553
Data::Dumper::Dumper('HASH(0x8d40f00)') called at
/usr/share/otrs/Kernel/System/Main.pm line 694
Kernel::System::Main::Dump('Kernel::System::Main=HASH(0x8a5b7f8)',
'HASH(0x8d40f00)', 'ascii') called at
/usr/share/otrs/Kernel/System/Config.pm line 665
Kernel::System::Config::ConfigItemGet('Kernel::System::Config=HASH(0x8b38d48)',
'Name', 'Frontend::Output::FilterElementPre###FAQ', 'Default', 1) called
at /usr/share/otrs/Kernel/System/Config.pm line 277
Kernel::System::Config::WriteDefault('Kernel::System::Config=HASH(0x8b38d48)')
called at /usr/share/otrs/bin/otrs.RebuildConfig.pl line 64





--
/*
Mit freundlichem Gruß / With kind regards,
 Patrick Matthäi
 GNU/Linux Debian Developer

E-Mail: pmatth...@debian.org
patr...@linux-dev.org

Comment:
Always if we think we are right,
we were maybe wrong.
*/



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org