Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Convert-ASN1 CPAN distribution.

Report information
The Basics
Id: 7454
Status: resolved
Priority: 0/
Queue: Convert-ASN1

People
Owner: Nobody in particular
Requestors: rcnavas [...] telemovil.com
Cc:
AdminCc:

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

Attachments


Subject: Convert::ASN1->prepare_file() always parse different data on same file...
I made a test perl script just to load an ASN.1 spec file using $asn->prepare_file() then i execute $asn->dump just to see the compiled tree as parsed by Convert::ASN1... The weird thing is that everytime I run the script, it returns different parsed data!!??... once in a while after running it several times, it returns the whole parsed tree... I found out this while trying to debug my script with real data... it seems almost random. I thought it could be perl/MacOS X related... but then I transfered the script and asn1 file to a Linux (Fedora Core 2) machine, and the problem persisted. I included the script and asn1 file, to test just run: perl asn1filter.pl -s DP6.asn1 -D the output will be from $asn->dump after doing a $asn->prepare_file() from the file specified on the -s switch. My information: Convert::ASN1 version 0.18 uname -a Darwin rcnavas-powerbook.local 7.5.0 Darwin Kernel Version 7.5.0: Thu Aug 5 19:26:16 PDT 2004; root:xnu/xnu-517.7.21.obj~3/RELEASE_PPC Power Macintosh powerpc perl -v This is perl, v5.8.1-RC3 built for darwin-thread-multi-2level Thanks in advance for any insight...
Download ASN1test.zip
application/zip 1.6k

Message body not shown because it is not plain text.

From: Graham Barr <gbarr [...] pobox.com>
Subject: Re: [cpan #7454] Convert::ASN1->prepare_file() always parse different data on same file...
Date: Tue, 24 Aug 2004 11:37:15 +0100
To: bug-Convert-ASN1 [...] rt.cpan.org
RT-Send-Cc:
On 24 Aug 2004, at 09:31, Guest via RT wrote: Show quoted text
> the output will be from $asn->dump after doing a $asn->prepare_file() > from the file specified on the -s switch.
Try using dump_all. The order will be different each time because hash order is not always the same on each run of perl. Graham.