Skip Menu |

This queue is for tickets about the UML-Sequence CPAN distribution.

Report information
The Basics
Id: 21042
Status: resolved
Priority: 0/
Queue: UML-Sequence

People
Owner: PHILCROW [...] cpan.org
Requestors: NKH [...] cpan.org
Cc:
AdminCc:

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



Subject: Can't coerce array into hash at /usr/lib64/perl5/site_perl/5.8.8/UML/Sequence.pm line 148.

Message body is not shown because it is too large.

Subject: Re: [rt.cpan.org #21042] Can't coerce array into hash at /usr/lib64/perl5/site_perl/5.8.8/UML/Sequence.pm line 148.
Date: Thu, 17 Aug 2006 15:02:18 -0700 (PDT)
To: bug-UML-Sequence [...] rt.cpan.org
From: Phil Crow <philcrow2000 [...] yahoo.com>
I could not reproduce the problem. Perhaps you could reduce your script to a small example you could share? Also, it looks like you made three tickets. Could you delete or close two of them? Phil --- via RT <bug-UML-Sequence@rt.cpan.org> wrote: Show quoted text
> > Thu Aug 17 06:28:04 2006: Request 21042 was acted > upon. > Transaction: Ticket created by NKH > Queue: UML-Sequence > Subject: Can't coerce array into hash at > /usr/lib64/perl5/site_perl/5.8.8/UML/Sequence.pm > line 148. > Broken in: 0.06 > Severity: Critical > Owner: Nobody > Requestors: NKH@cpan.org > Status: new > Ticket <URL: > http://rt.cpan.org/Ticket/Display.html?id=21042 > > > > I can't attach the script itself. The error is quite > obvious but if > necessary, I'll try to get a simplified example. > > nadim@Korba /devel/Qix/Qix_link_generator $ perl -V > Summary of my perl5 (revision 5 version 8 subversion > 8) configuration: > Platform: > osname=linux, osvers=2.6.16, > archname=x86_64-linux > uname='linux korba 2.6.16 #6 smp mon may 15 > 16:52:20 cest 2006 > x86_64 amd athlon(tm) 64 x2 dual core processor > 3800+ gnulinux ' > config_args='-des -Darchname=x86_64-linux > -Dcccdlflags=-fPIC > -Dccdlflags=-rdynamic -Dcc=x86_64-pc-linux-gnu-gcc > -Dprefix=/usr > -Dvendorprefix=/usr -Dsiteprefix=/usr -Dlocincpth= > -Doptimize=-march=k8 > -O2 -pipe -Duselargefiles -Dd_semctl_semun > -Dscriptdir=/usr/bin > -Dman1dir=/usr/share/man/man1 > -Dman3dir=/usr/share/man/man3 > -Dinstallman1dir=/usr/share/man/man1 > -Dinstallman3dir=/usr/share/man/man3 -Dman1ext=1 > -Dman3ext=3pm > -Dinc_version_list=5.8.0 5.8.0/x86_64-linux 5.8.2 > 5.8.2/x86_64-linux > 5.8.4 5.8.4/x86_64-linux 5.8.5 5.8.5/x86_64-linux > 5.8.6 > 5.8.6/x86_64-linux 5.8.7 5.8.7/x86_64-linux > -Dcf_by=Gentoo -Ud_csh > -Dusenm -Di_ndbm -Di_gdbm -Di_db > -Dusrinc=/usr/include/gentoo-multilib/amd64 > -Dlibpth=/usr/local/lib64 > /lib64 /usr/lib64' > hint=recommended, useposix=true, > d_sigaction=define > usethreads=undef use5005threads=undef > useithreads=undef > usemultiplicity=undef > useperlio=define d_sfio=undef > uselargefiles=define usesocks=undef > use64bitint=define use64bitall=define > uselongdouble=undef > usemymalloc=n, bincompat5005=undef > Compiler: > cc='x86_64-pc-linux-gnu-gcc', ccflags > ='-fno-strict-aliasing -pipe > -Wdeclaration-after-statement -D_LARGEFILE_SOURCE > -D_FILE_OFFSET_BITS=64', > optimize='-march=k8 -O2 -pipe', > cppflags='-fno-strict-aliasing -pipe > -Wdeclaration-after-statement' > ccversion='', gccversion='3.4.5 (Gentoo 3.4.5, > ssp-3.4.5-1.0, > pie-8.7.9)', gccosandvers='' > intsize=4, longsize=8, ptrsize=8, doublesize=8, > byteorder=12345678 > d_longlong=define, longlongsize=8, > d_longdbl=define, longdblsize=16 > ivtype='long', ivsize=8, nvtype='double', > nvsize=8, Off_t='off_t', > lseeksize=8 > alignbytes=8, prototype=define > Linker and Libraries: > ld='x86_64-pc-linux-gnu-gcc', ldflags =' > -L/usr/local/lib64' > libpth=/usr/local/lib64 /lib64 /usr/lib64 > libs=-lpthread -lnsl -lndbm -lgdbm -ldb -ldl -lm > -lcrypt -lutil -lc > perllibs=-lpthread -lnsl -ldl -lm -lcrypt -lutil > -lc > libc=/lib/libc-2.4.so, so=so, useshrplib=false, > libperl=libperl.a > gnulibc_version='2.4' > Dynamic Linking: > dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, > ccdlflags='-rdynamic' > cccdlflags='-fPIC', lddlflags='-shared > -L/usr/local/lib64' > > > Characteristics of this binary (from libperl): > Compile-time options: PERL_MALLOC_WRAP > USE_64_BIT_ALL USE_64_BIT_INT > USE_LARGE_FILES USE_PERLIO > Built under linux > Compiled at Jun 8 2006 08:39:13 > @INC: > /etc/perl > /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux > /usr/lib64/perl5/vendor_perl/5.8.8 > /usr/lib64/perl5/vendor_perl > /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux > /usr/lib64/perl5/site_perl/5.8.8 > /usr/lib64/perl5/site_perl/5.8.7 > /usr/lib64/perl5/site_perl/5.8.7/x86_64-linux > /usr/lib64/perl5/site_perl > /usr/lib64/perl5/5.8.8/x86_64-linux > /usr/lib64/perl5/5.8.8 > /usr/local/lib/site_perl > > > nadim@Korba /devel/Qix/Qix_link_generator $ > genericseq.pl > UML::Sequence::PerlSeq qix.methods qix_links.pl > -input qix_ota_tool.ods > -e nadim -output xxx_ods -f -v > qix_links.xml > *** glibc detected *** perl: double free or > corruption (out): > 0x00002ae917839e80 *** > ======= Backtrace: ========= > /lib/libc.so.6[0x2ae91767b6ad] > /lib/libc.so.6(__libc_free+0x6c)[0x2ae91767ccac] >
/usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux/auto/XML/Parser/Expat/Expat.so(XS_XML__Parser__Expat_ParserFree+0x68)[0x2ae9182a1668] Show quoted text
> perl(Perl_pp_entersub+0x1fc)[0x478b0c] > perl(Perl_runops_standard+0xe)[0x4718be] > perl(Perl_call_sv+0x6bc)[0x42451c] > perl(Perl_sv_clear+0x185)[0x47b4d5] > perl(Perl_sv_free+0xd1)[0x47bb81] > perl(Perl_sv_clear+0x49a)[0x47b7ea] > perl(Perl_sv_free+0xd1)[0x47bb81] > perl(Perl_hv_free_ent+0x35)[0x46c9a5] > perl[0x46cea3] > perl(Perl_hv_undef+0x28)[0x46e508] > perl(Perl_sv_clear+0x4e5)[0x47b835] > perl(Perl_sv_free+0xd1)[0x47bb81] > perl(Perl_sv_clear+0x49a)[0x47b7ea] > perl(Perl_sv_free+0xd1)[0x47bb81] > perl(Perl_av_undef+0x47)[0x46ffb7] > perl(Perl_sv_clear+0x4f6)[0x47b846] > perl(Perl_sv_free+0xd1)[0x47bb81] > perl(Perl_free_tmps+0x52)[0x498972] > perl(Perl_pp_dbstate+0x26a)[0x49fc6a] > perl(Perl_runops_standard+0xe)[0x4718be] > perl(perl_run+0x2f2)[0x424ef2] > perl(main+0xbe)[0x41ebee] >
/lib/libc.so.6(__libc_start_main+0xf4)[0x2ae91762f134] Show quoted text
> perl[0x41ea99] > ======= Memory map: ======== > 00400000-004fd000 r-xp 00000000 09:01 2085843 > > /usr/bin/perl5.8.8 > 005fc000-00609000 rw-p 000fc000 09:01 2085843 > > /usr/bin/perl5.8.8 > 00609000-016a7000 rw-p 00609000 00:00 0 > > [heap] > 3352f00000-3352f21000 r-xp 00000000 09:01 35220 > > /usr/lib64/libexpat.so.0.5.0 > 3352f21000-3353020000 ---p 00021000 09:01 35220 > > /usr/lib64/libexpat.so.0.5.0 > 3353020000-3353023000 rw-p 00020000 09:01 35220 > > /usr/lib64/libexpat.so.0.5.0 > 2ae916e37000-2ae916e52000 r-xp 00000000 09:01 > 2313979 > /lib64/ld-2.4.so > 2ae916e52000-2ae916e53000 rw-p 2ae916e52000 00:00 0 > 2ae916e53000-2ae916e54000 r--p 00000000 09:01 > 1667993 > /usr/lib64/locale/en_US/LC_IDENTIFICATION > 2ae916e54000-2ae916e55000 r--p 00000000 09:01 > 1667992 > /usr/lib64/locale/en_US/LC_MEASUREMENT > 2ae916e55000-2ae916e56000 r--p 00000000 09:01 > 1667991 > /usr/lib64/locale/en_US/LC_TELEPHONE > 2ae916e56000-2ae916e57000 r--p 00000000 09:01 > 1667978 > /usr/lib64/locale/en_US/LC_ADDRESS > 2ae916e57000-2ae916e58000 r--p 00000000 09:01 > 1667925 > /usr/lib64/locale/en_US/LC_NAME > 2ae916e58000-2ae916e59000 r--p 00000000 09:01 > 1668025 > /usr/lib64/locale/sv_SE/LC_PAPER > 2ae916e59000-2ae916e5a000 r--p 00000000 09:01 > 1661403 >
=== message truncated === Show quoted text
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Show quoted text
> I could not reproduce the problem. Perhaps you could > reduce your script to a small example you could share?
Unfortunately, a HD crash had the best of my code and example. line 148 is called from new(). I didn't call new but used the attached script as described in the perl.com article. I hope this helps. Show quoted text
> Also, it looks like you made three tickets. Could you > delete or close two of them?
RT web interface can be quite frustrating when the system is loaded =). I removed the extra entries
Subject: Re: [rt.cpan.org #21042] Can't coerce array into hash at /usr/lib64/perl5/site_perl/5.8.8/UML/Sequence.pm line 148.
Date: Fri, 8 Sep 2006 15:54:44 -0700 (PDT)
To: bug-UML-Sequence [...] rt.cpan.org
From: Phil Crow <philcrow2000 [...] yahoo.com>
I finally realized the error of my ways. My test (which isn't in the suite) only called methods in the methods list, which kept it out of the code where your problem occurred. I've updated the test (which still isn't in the suite) and corrected the bug. A new version is on the way to CPAN. I tried to resolve the bug in rt, but the rt system is itself broken. When I clicked resolve, it spewed an error that looked to have come from a Mason template. Thanks for sticking with this bug until I could see it. Phil --- via RT <bug-UML-Sequence@rt.cpan.org> wrote: Show quoted text
> > Queue: UML-Sequence > Ticket <URL: > http://rt.cpan.org/Ticket/Display.html?id=21042 > > >
> > I could not reproduce the problem. Perhaps you
> could
> > reduce your script to a small example you could
> share? > Unfortunately, a HD crash had the best of my code > and example. > > line 148 is called from new(). I didn't call new but > used the attached > script as described in the perl.com article. I hope > this helps. > >
> > Also, it looks like you made three tickets. Could
> you
> > delete or close two of them?
> RT web interface can be quite frustrating when the > system is loaded =). > I removed the extra entries >
Show quoted text
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
I added a check for the type of the methods method return value. Both hashes and arrays are supposed to be allowed, but only hashes were working.