Subject: | Fwd: Text::Metaphone crashes on Linux |
Date: | Sat, 07 Jan 2012 15:01:39 -0800 |
To: | bug-Text-Metaphone [...] rt.cpan.org |
From: | Michael G Schwern <schwern [...] pobox.com> |
Message body is not shown because sender requested not to inline it.
Subject: | Text::Metaphone crashes on Linux |
Date: | Sat, 7 Jan 2012 12:38:26 -0500 |
To: | schwern [...] pobox.com |
From: | Roland Walker <walker [...] pobox.com> |
Hi,
There are some simple strings that crash Text::Metaphone on my Linux-based AWS instances. One example follows. The same strings do not cause issues on my OS X machines.
Thank you for your all of your great modules & happy new year.
Roland
: perl -MText::Metaphone -e 'Metaphone("jgVqiNdxNVLpVBxQBlxghDx")'
*** glibc detected *** perl: free(): invalid next size (fast): 0x00000000026730f0 ***
======= Backtrace: =========
/lib64/libc.so.6(+0x75146)[0x7f9a7355f146]
/usr/local/lib/perl5/site_perl/5.14.2/x86_64-linux/auto/Text/Metaphone/Metaphone.so(XS_Text__Metaphone_Metaphone+0xc7)[0x7f9a6d1f5ad7]
perl(Perl_pp_entersub+0x6a1)[0x48d601]
perl(Perl_runops_standard+0x13)[0x48bbc3]
perl(perl_run+0x288)[0x4307f8]
perl(main+0x10c)[0x41c15c]
/lib64/libc.so.6(__libc_start_main+0xfd)[0x7f9a73508cdd]
perl[0x41bf89]
======= Memory map: ========
00400000-0054b000 r-xp 00000000 ca:01 21837 /usr/local/bin/perl
0074a000-0074e000 rw-p 0014a000 ca:01 21837 /usr/local/bin/perl
0074e000-0074f000 rw-p 00000000 00:00 0
02663000-02709000 rw-p 00000000 00:00 0 [heap]
7f9a6cfde000-7f9a6cff4000 r-xp 00000000 ca:01 15 /lib64/libgcc_s-4.4.5-20110214.so.1
7f9a6cff4000-7f9a6d1f3000 ---p 00016000 ca:01 15 /lib64/libgcc_s-4.4.5-20110214.so.1
7f9a6d1f3000-7f9a6d1f4000 rw-p 00015000 ca:01 15 /lib64/libgcc_s-4.4.5-20110214.so.1
7f9a6d1f4000-7f9a6d1f6000 r-xp 00000000 ca:01 151953 /usr/local/lib/perl5/site_perl/5.14.2/x86_64-linux/auto/Text/Metaphone/Metaphone.so
7f9a6d1f6000-7f9a6d3f6000 ---p 00002000 ca:01 151953 /usr/local/lib/perl5/site_perl/5.14.2/x86_64-linux/auto/Text/Metaphone/Metaphone.so
7f9a6d3f6000-7f9a6d3f7000 rw-p 00002000 ca:01 151953 /usr/local/lib/perl5/site_perl/5.14.2/x86_64-linux/auto/Text/Metaphone/Metaphone.so
7f9a6d3f7000-7f9a73288000 r--p 00000000 ca:01 9373 /usr/lib/locale/locale-archive
7f9a73288000-7f9a732e5000 r-xp 00000000 ca:01 9910 /lib64/libfreebl3.so
7f9a732e5000-7f9a734e4000 ---p 0005d000 ca:01 9910 /lib64/libfreebl3.so
7f9a734e4000-7f9a734e6000 rw-p 0005c000 ca:01 9910 /lib64/libfreebl3.so
7f9a734e6000-7f9a734ea000 rw-p 00000000 00:00 0
7f9a734ea000-7f9a73670000 r-xp 00000000 ca:01 7609 /lib64/libc-2.12.so
7f9a73670000-7f9a7386f000 ---p 00186000 ca:01 7609 /lib64/libc-2.12.so
7f9a7386f000-7f9a73873000 r--p 00185000 ca:01 7609 /lib64/libc-2.12.so
7f9a73873000-7f9a73874000 rw-p 00189000 ca:01 7609 /lib64/libc-2.12.so
7f9a73874000-7f9a73879000 rw-p 00000000 00:00 0
7f9a73879000-7f9a7387b000 r-xp 00000000 ca:01 7641 /lib64/libutil-2.12.so
7f9a7387b000-7f9a73a7a000 ---p 00002000 ca:01 7641 /lib64/libutil-2.12.so
7f9a73a7a000-7f9a73a7b000 r--p 00001000 ca:01 7641 /lib64/libutil-2.12.so
7f9a73a7b000-7f9a73a7c000 rw-p 00002000 ca:01 7641 /lib64/libutil-2.12.so
7f9a73a7c000-7f9a73a83000 r-xp 00000000 ca:01 7613 /lib64/libcrypt-2.12.so
7f9a73a83000-7f9a73c83000 ---p 00007000 ca:01 7613 /lib64/libcrypt-2.12.so
7f9a73c83000-7f9a73c84000 r--p 00007000 ca:01 7613 /lib64/libcrypt-2.12.so
7f9a73c84000-7f9a73c85000 rw-p 00008000 ca:01 7613 /lib64/libcrypt-2.12.so
7f9a73c85000-7f9a73cb3000 rw-p 00000000 00:00 0
7f9a73cb3000-7f9a73d36000 r-xp 00000000 ca:01 7617 /lib64/libm-2.12.so
7f9a73d36000-7f9a73f35000 ---p 00083000 ca:01 7617 /lib64/libm-2.12.so
7f9a73f35000-7f9a73f36000 r--p 00082000 ca:01 7617 /lib64/libm-2.12.so
7f9a73f36000-7f9a73f37000 rw-p 00083000 ca:01 7617 /lib64/libm-2.12.so
7f9a73f37000-7f9a73f39000 r-xp 00000000 ca:01 7615 /lib64/libdl-2.12.so
7f9a73f39000-7f9a74139000 ---p 00002000 ca:01 7615 /lib64/libdl-2.12.so
7f9a74139000-7f9a7413a000 r--p 00002000 ca:01 7615 /lib64/libdl-2.12.so
7f9a7413a000-7f9a7413b000 rw-p 00003000 ca:01 7615 /lib64/libdl-2.12.so
7f9a7413b000-7f9a74151000 r-xp 00000000 ca:01 7619 /lib64/libnsl-2.12.so
7f9a74151000-7f9a74350000 ---p 00016000 ca:01 7619 /lib64/libnsl-2.12.so
7f9a74350000-7f9a74351000 r--p 00015000 ca:01 7619 /lib64/libnsl-2.12.so
7f9a74351000-7f9a74352000 rw-p 00016000 ca:01 7619 /lib64/libnsl-2.12.so
7f9a74352000-7f9a74354000 rw-p 00000000 00:00 0
7f9a74354000-7f9a74374000 r-xp 00000000 ca:01 7602 /lib64/ld-2.12.so
7f9a74566000-7f9a7456b000 rw-p 00000000 00:00 0
7f9a74571000-7f9a74573000 rw-p 00000000 00:00 0
7f9a74573000-7f9a74574000 r--p 0001f000 ca:01 7602 /lib64/ld-2.12.so
7f9a74574000-7f9a74575000 rw-p 00020000 ca:01 7602 /lib64/ld-2.12.so
7f9a74575000-7f9a74576000 rw-p 00000000 00:00 0
7fff273c8000-7fff273e9000 rw-p 00000000 00:00 0 [stack]
7fff273ff000-7fff27400000 r-xp 00000000 00:00 0 [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
Aborted
: perl -V
Summary of my perl5 (revision 5 version 14 subversion 2) configuration:
Platform:
osname=linux, osvers=2.6.35.14-95.38.amzn1.x86_64, archname=x86_64-linux
uname='linux ip-10-34-162-225 2.6.35.14-95.38.amzn1.x86_64 #1 smp thu aug 25 17:11:23 utc 2011 x86_64 x86_64 x86_64 gnulinux '
config_args='-des'
hint=recommended, useposix=true, d_sigaction=define
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='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.5 20110214 (Red Hat 4.4.5-6)', 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='cc', ldflags =' -fstack-protector -L/usr/local/lib'
libpth=/usr/local/lib /lib/../lib64 /usr/lib/../lib64 /lib /usr/lib /lib64 /usr/lib64 /usr/local/lib64
libs=-lnsl -ldb -ldl -lm -lcrypt -lutil -lc
perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
libc=/lib/libc-2.12.so, so=so, useshrplib=false, libperl=libperl.a
gnulibc_version='2.12'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
cccdlflags='-fPIC', lddlflags='-shared -O2 -L/usr/local/lib -fstack-protector'
Characteristics of this binary (from libperl):
Compile-time options: PERL_DONT_CREATE_GVSV PERL_MALLOC_WRAP
PERL_PRESERVE_IVUV USE_64_BIT_ALL USE_64_BIT_INT
USE_LARGE_FILES USE_PERLIO USE_PERL_ATOF
Built under linux
Compiled at Oct 6 2011 23:17:06
@INC:
/usr/local/lib/perl5/site_perl/5.14.2/x86_64-linux
/usr/local/lib/perl5/site_perl/5.14.2
/usr/local/lib/perl5/5.14.2/x86_64-linux
/usr/local/lib/perl5/5.14.2
.