Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

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

Report information
The Basics
Id: 62309
Status: open
Priority: 0/
Queue: YAML-LibYAML

People
Owner: Nobody in particular
Requestors: halfcountplus [...] intergate.com
Cc:
AdminCc:

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



Subject: perl_libyaml.c throws assertion on Load/LoadFile
Date: Wed, 20 Oct 2010 09:17:50 -0400
To: bug-YAML-LibYAML [...] rt.cpan.org
From: MK <halfcountplus [...] intergate.com>
A hash ref is saved thus: YAML::XS::DumpFile($filepath, $hashref); This 1000 byte file looks fine and dandy to me, but reloading it: $Config = YAML::XS::LoadFile($filepath); Generates: Assertion ((key_node)->sv_flags & 0x00000400) failed: file "perl_libyaml.c", line 265 at /usr/local/lib64/perl5/site_perl/5.10.0/x86_64-linux-thread-multi/YAML/XS.pm line 48, <$IN> line 1. This is version 0.34, which I've used casually before and never had an issue. The same thing happens via Dump to string/Load to string, appropriately enough, since YAML::XS::LoadFile just slurps and uses YAML::XS::LibYAML::Load, which leads to the Assertion: /* Get each key string and value node and put them in the hash */ while ((key_node = load_node(loader))) { assert(SvPOK(key_node)); <--------------- value_node = load_node(loader); hv_store_ent( hash, key_node, value_node, 0 ); } -- MK <halfcountplus@intergate.com>
Do you run perl in taint mode (with -T)?
On Wed Dec 29 09:59:45 2010, https://id.rambler.ru/users/bgp4 wrote: Show quoted text
> Do you run perl in taint mode (with -T)?
I think 'no'. Today I get 4 FAIL CPAM reports, all of them failing at LoadFile method, it so sad :( This is link to failed reports http://www.cpantesters.org/distro/C/Config-Merge- Dynamic.html? grade=3&perlmat=1&patches=1&oncpan=1&distmat=1&perlver=ALL&osname=ALL&version =0.141 And this is example of error string from tests # Error was: Error loading config file t/data/result.yaml: # # Assertion ((key_node)->sv_flags & 0x00040000) failed: file "perl_libyaml.c", line 298 at /usr/local/lib/perl5/site_perl/5.8.9/i686-linux-thread-multi-64int-ld/YAML/XS.pm line 48, <$IN> line 1. I think something wrong here.