Skip Menu |

This queue is for tickets about the Text-Aspell CPAN distribution.

Report information
The Basics
Id: 15060
Status: resolved
Priority: 0/
Queue: Text-Aspell

People
Owner: Nobody in particular
Requestors: hpg.perl [...] hallweb.com
Cc:
AdminCc:

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



Subject: Text-Aspell test fail and segmentation fault on FC4
Problem with Text-Aspell-0.05 "make" compiles without errors or warnings. # make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/01-use.....ok t/02-pod.....skipped all skipped: Test::Pod 1.14 required t/05-core....dubious Test returned status 0 (wstat 11, 0xb) DIED. FAILED tests 2-17 Failed 16/17 tests, 5.88% okay Failed Test Stat Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------------- t/05-core.t 0 11 17 32 188.24% 2-17 1 test skipped. Failed 1/3 test scripts, 66.67% okay. 16/18 subtests failed, 11.11% okay. make: *** [test_dynamic] Error 255 Program: use Text::Aspell; my $speller = Text::Aspell->new; yields "Segmentation fault" on second line FC4 (2.6.12-1.1456_FC4) running on Dell Pentium III box gcc (GCC) 4.0.1 aspell-en-0.51-12 aspell-devel-0.50.5-6 aspell-0.50.5-6 Perl 5.8.6 The shell command "aspell" runs fine.
From: Scott Godin
On Fri Oct 14 12:29:42 2005, guest wrote: Show quoted text
> Problem with Text-Aspell-0.05 > > "make" compiles without errors or warnings. > > # make test > PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" > "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t > t/01-use.....ok > t/02-pod.....skipped > all skipped: Test::Pod 1.14 required > t/05-core....dubious > Test returned status 0 (wstat 11, 0xb) > DIED. FAILED tests 2-17 > Failed 16/17 tests, 5.88% okay > Failed Test Stat Wstat Total Fail Failed List of Failed > ----------------------------------------------------------------------
--------- Show quoted text
> t/05-core.t 0 11 17 32 188.24% 2-17 > 1 test skipped. > Failed 1/3 test scripts, 66.67% okay. 16/18 subtests failed, 11.11% > okay. > make: *** [test_dynamic] Error 255 > > Program: > use Text::Aspell; > my $speller = Text::Aspell->new; > yields "Segmentation fault" on second line > > FC4 (2.6.12-1.1456_FC4) running on Dell Pentium III box > gcc (GCC) 4.0.1 > aspell-en-0.51-12 > aspell-devel-0.50.5-6 > aspell-0.50.5-6 > Perl 5.8.6 > > The shell command "aspell" runs fine.
I can confirm with the following: aspell-0.50.5-6 aspell-en-0.51-12 aspell-devel-0.50.5-6 gcc-4.0.2-8.fc4 perl-5.8.6-15 kernel-2.6.15-1.1831_FC4 shell aspell works perfectly. clean build dir? 3:24pm {17} localhost:/root/.cpan/build/Text-Aspell-0.05># perl -Mblib - MText::Aspell -e '$speller = Text::Aspell->new;' Segmentation fault (core dumped) I'm attaching the corefile in hopes that it provides some insight.
Download text-aspell-cores.tgz
application/x-gzip 950.4k

Message body not shown because it is not plain text.

From: Herald van der Breggen
Same problems on my system (FC5 / x86_64 on AMD64), however, there is no clean build: [build@duck Text-Aspell-0.05]$ make cp Aspell.pm blib/lib/Text/Aspell.pm /usr/bin/perl /usr/lib/perl5/vendor_perl/5.8.8/ExtUtils/xsubpp -noprototypes -typemap /usr/lib/perl5/5.8.8/ExtUtils/typemap -typemap typemap Aspell.xs > Aspell.xsc && mv Aspell.xsc Aspell.c gcc -c -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -DVERSION=\"0.05\" -DXS_VERSION=\"0.05\" -fPIC "-I/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE" Aspell.c Aspell.c: In functie ‘XS_Text__Aspell_fetch_option_keys’: Aspell.xs:486: let op: ‘self’ is used uninitialized in this function Aspell.c: In functie ‘XS_Text__Aspell_dictionary_info’: Aspell.xs:443: let op: ‘self’ is used uninitialized in this function Aspell.c: In functie ‘XS_Text__Aspell_list_dictionaries’: Aspell.xs:405: let op: ‘self’ is used uninitialized in this function Aspell.c: In functie ‘XS_Text__Aspell_errnum’: Aspell.xs:224: let op: ‘self’ is used uninitialized in this function Aspell.c: In functie ‘XS_Text__Aspell_clear_session’: Aspell.xs:379: let op: ‘self’ is used uninitialized in this function Aspell.c: In functie ‘XS_Text__Aspell_create_speller’: Aspell.xs:90: let op: ‘self’ is used uninitialized in this function Aspell.c: In functie ‘XS_Text__Aspell_errstr’: Aspell.xs:216: let op: ‘self’ is used uninitialized in this function Aspell.c: In functie ‘XS_Text__Aspell_get_option’: Aspell.xs:165: let op: ‘self’ is used uninitialized in this function Aspell.c: In functie ‘XS_Text__Aspell_print_config’: Aspell.xs:105: let op: ‘self’ is used uninitialized in this function Aspell.c: In functie ‘XS_Text__Aspell_DESTROY’: Aspell.xs:80: let op: ‘self’ is used uninitialized in this function Aspell.c: In functie ‘XS_Text__Aspell_get_option_as_list’: Aspell.xs:190: let op: ‘self’ is used uninitialized in this function Aspell.c: In functie ‘XS_Text__Aspell_check’: Aspell.xs:234: let op: ‘self’ is used uninitialized in this function Aspell.c: In functie ‘XS_Text__Aspell_suggest’: Aspell.xs:259: let op: ‘self’ is used uninitialized in this function Aspell.c: In functie ‘XS_Text__Aspell_add_to_personal’: Aspell.xs:290: let op: ‘self’ is used uninitialized in this function Aspell.c: In functie ‘XS_Text__Aspell_add_to_session’: Aspell.xs:312: let op: ‘self’ is used uninitialized in this function Aspell.c: In functie ‘XS_Text__Aspell_store_replacement’: Aspell.xs:337: let op: ‘self’ is used uninitialized in this function Aspell.c: In functie ‘XS_Text__Aspell_save_all_word_lists’: Aspell.xs:358: let op: ‘self’ is used uninitialized in this function Aspell.c: In functie ‘XS_Text__Aspell_set_option’: Aspell.xs:125: let op: ‘self’ is used uninitialized in this function Aspell.c: In functie ‘XS_Text__Aspell_remove_option’: Aspell.xs:146: let op: ‘self’ is used uninitialized in this function Running Mkbootstrap for Text::Aspell () chmod 644 Aspell.bs rm -f blib/arch/auto/Text/Aspell/Aspell.so gcc -shared Aspell.o -o blib/arch/auto/Text/Aspell/Aspell.so \ -laspell \ chmod 755 blib/arch/auto/Text/Aspell/Aspell.so cp Aspell.bs blib/arch/auto/Text/Aspell/Aspell.bs chmod 644 blib/arch/auto/Text/Aspell/Aspell.bs Manifying blib/man3/Text::Aspell.3pm [build@duck Text-Aspell-0.05]$ make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/01-use.....ok t/02-pod.....skipped all skipped: set TEST_POD to enable this test t/05-core....dubious Test returned status 0 (wstat 11, 0xb) DIED. FAILED tests 2-17 Failed 16/17 tests, 5.88% okay Failed Test Stat Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------------- t/05-core.t 0 11 17 32 188.24% 2-17 1 test skipped. Failed 1/3 test scripts, 66.67% okay. 16/18 subtests failed, 11.11% okay. make: *** [test_dynamic] Fout 255
From: AWKAY
The tests were failing on me as well. Specifically, test 17 in 05-core.t was seg-faulting. I looked at the Aspell.xs, and it seems to be dying on the PUSHs call in the list return of get_option_as_list. I changed the PUSHs to XPUSHs and that seemed to fix it.
On Wed Apr 19 21:02:10 2006, AWKAY wrote: Show quoted text
> The tests were failing on me as well. Specifically, test 17 in 05-core.t > was seg-faulting. I looked at the Aspell.xs, and it seems to be dying on > the PUSHs call in the list return of get_option_as_list. I changed the > PUSHs to XPUSHs and that seemed to fix it.
Yes, 0.06 now uses XPUSH and I've had a couple reports that the segfault has gone away. I'm not clear what was happening on those platforms where this segfault was showing up. I'd much rather know *why* that change fixes the segfault that just that it *does* fix the segfault.