Skip Menu |

This queue is for tickets about the YAML-Tiny CPAN distribution.

Report information
The Basics
Id: 31262
Status: resolved
Priority: 0/
Queue: YAML-Tiny

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

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



Subject: Endless loop with self-refential structure
[Tested with YAML::Tiny 1.21] When trying to dump self-refential data, YAML::Tiny goes into an endless loop eating lots of memory. Here's a test script. Be prepared to hit CTRL-C or set resource limits before starting the script: use YAML::Tiny qw(Dump); #use YAML qw(Dump); #use YAML::Syck qw(Dump); my $x = {foo => "bla"}; $x->{self} = $x; warn Dump($x); __END__ YAML and YAML::Syck work OK with the sample data. Regards, Slaven
This was resolved in 1.23