#!/usr/bin/env perl
use warnings;
use strict;
use 5.012;
use XML::LibXML::Reader;
my $reader = XML::LibXML::Reader->new( location => 'http://www.heise.de/' ) or die $!;
while ( $reader->read ) {
say $reader->name;
}
このスクリプトからの出力の最後に、次のエラーメッセージが表示されます。
*glibcが検出されました* perl:munmap_chunk():無効なポインター:0x0000000000b362e0 *** =======バックトレース:=========
/lib64/libc.so.6 [0x7fb84952fc76]
...
= ======メモリマップ:========
00400000-0053d000 r-xp 00000000 08:01 182002 / usr / local / bin / perl
.. ..
これはバグによるものですか?
perl -V:
私のperl5(リビジョン5バージョン12サブバージョン0)構成の要約:
プラットフォーム:
osname = linux、osvers = 2.6.31.12-0.2-desktop、archname = x86_64-linux uname ='linux linux1 2.6.31.12-0.2-desktop#1 smp preempt 2010-03-16 21:25:39 +0100 x86_64 x86_64 x86_64 gnulinux'config_args ='-Dnoextensions = ODBM_File'ヒント=推奨、useposix = true、d_sigaction = define useithreads = undef、usemultiplicity = undef useperlio = define、d_sfio = undef、uselargefiles = define、usesocks = undef = define、uselongdouble = undef usemymalloc = n、bincompat5005 = undef
コンパイラ:
cc ='cc'、ccflags ='-fno-strict-aliasing -pipe -fstack-protector -I / usr / local / include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS = 64'、optimize ='-O2'、cppflags ='-fno- strict-aliasing -pipe -fstack-protector -I / usr / local / include'ccversion =''、gccversion ='4.4.1 [gcc-4_4-branch Revision 150839]'、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
リンカーとライブラリ:
ld ='cc'、ldflags ='-fstack-protector -L / usr / local / lib'libpth = / usr / local / lib / lib / usr / lib / lib64 / usr / lib64 / usr / local / lib64 libs = -lnsl -ldl -lm -lcrypt -lutil -lc perllibs = -lnsl -ldl -lm -lcrypt -lutil -lc libc = / lib / libc-2.10.1.so、so = so、useshrplib = false、libperl = libperl .a gnulibc_version = '2.10.1'ダイナミックリンク:dlsrc = dl_dlopen.xs、dlext = so、d_dlsymun = undef、ccdlflags ='-Wl、-E' cccdlflags ='-fPIC'、lddlflags ='-shared -O2- L / usr / local / lib -fstack-protector '
このバイナリの特徴(libperlから):コンパイル時のオプション:PERL_DONT_CREATE_GVSV PERL_MALLOC_WRAP USE_64_BIT_ALL USE_64_BIT_INT USE_LARGE_FILES USE_PERLIO USE_PERL_ATOFlinux
で構築2010年4月15日13:25:46@INC: 0 / x86_64-linux /usr/local/lib/perl5/site_perl/5.12.0/usr/local/lib/perl5/5.12.0/x86_64-linux/usr/local/lib/perl5/5.12.0。