in reply to Re: Apartment Threading in Perl
in thread Apartment Threading in Perl

Hmm, I'm running a similar setup, tho your perl -V report and the directory path seem out of sync (one is 5.8.4, the other is 5.8.6 ? And the AS build is 810, which I think was the original 5.8.6, but they later released an update build 811)

Could you just run the t/01test.t standalone ? (You'll have to go ahead and "nmake install" to run it). That might expose more info about whats going wrong.

In the meantime, I'll give it a shot on OS X, and maybe Solaris. Alas, my Linux (Fedora Core 4) has exhibited bizarre behavior w/ recent perl versions. FWIW: here's my perl info:

D:\Perl\Thread-Apartment-0.10\t>perl -v This is perl, v5.8.6 built for MSWin32-x86-multi-thread (with 3 registered patches, see perl -V for more detail) Copyright 1987-2004, Larry Wall Binary build 811 provided by ActiveState Corp. http://www.ActiveState. +com ActiveState is a division of Sophos. Built Dec 13 2004 09:52:01
Thanks for testing.

Update:

Just tested on OS X 10.3.9 w/ AS 5.8.7, and it ran swimmingly. Perhaps its a AS 5.8.4 issue ? Tho the fact that you presumably were able to test Thread;:Queue::Duplex prior to install is curious...

Update 2:

Tested on Solaris 10 w/ perl 5.8.6, also runs swimmingly.

Replies are listed 'Best First'.
Re^3: Apartment Threading in Perl
by BrowserUk (Patriarch) on Sep 02, 2005 at 16:47 UTC

    Okay. I reverted to my 5.8.4 installation, and rebuilt from scratch and then ran the 01test.t with the same result. A segfault when running either test 9 or 10. I looked into 01test.t, but couldn't easily work out which test corresponded to which number as several are commented out, and it's not obvious from teh data logged exactly which test (9 or 10) is actually giving the segfault?

    P:\packages\Thread-Apartment-0.10>perl -V Summary of my perl5 (revision 5 version 8 subversion 4) configuration: Platform: osname=MSWin32, osvers=4.0, archname=MSWin32-x86-multi-thread uname='' config_args='undef' hint=recommended, useposix=true, d_sigaction=undef usethreads=undef use5005threads=undef useithreads=define usemultip +licity=define useperlio=define d_sfio=undef uselargefiles=define usesocks=undef use64bitint=undef use64bitall=undef uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='cl', ccflags ='-nologo -Gf -W3 -MD -Zi -DNDEBUG -O1 -DWIN32 -D +_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -DNO_HASH_SEED -DPERL_IMPLICI +T_CON optimize='-MD -Zi -DNDEBUG -O1', cppflags='-DWIN32' ccversion='', gccversion='', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234 d_longlong=undef, longlongsize=8, d_longdbl=define, longdblsize=10 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='__int64 +', lseeksize=8 alignbytes=8, prototype=define Linker and Libraries: ld='link', ldflags ='-nologo -nodefaultlib -debug -opt:ref,icf -l +ibpath:"c:\Perl\lib\CORE" -machine:x86' libpth=C:\PROGRA~1\MICROS~3\VC98\lib libs= oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib + comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib netap +i32.l perllibs= oldnames.lib kernel32.lib user32.lib gdi32.lib winspool +.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib n +etapi libc=msvcrt.lib, so=dll, useshrplib=yes, libperl=perl58.lib gnulibc_version='undef' Dynamic Linking: dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' ' cccdlflags=' ', lddlflags='-dll -nologo -nodefaultlib -debug -opt: +ref,icf -libpath:"c:\Perl\lib\CORE" -machine:x86' Characteristics of this binary (from libperl): Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES PERL +_IMPLICIT_CONTEXT PERL_IMPLICIT_SYS Locally applied patches: ActivePerl Build 810 22751 Update to Test.pm 1.25 21540 Fix backward-compatibility issues in if.pm Built under MSWin32 Compiled at Jun 1 2004 11:52:21 @INC: c:/Perl/lib c:/Perl/site/lib . P:\packages\Thread-Apartment-0.10>nmake realclean Microsoft (R) Program Maintenance Utility Version 8.00.40607.16 Copyright (C) Microsoft Corporation. All rights reserved. C:\Perl\bin\perl.exe -MExtUtils::Command -e rm_rf ./blib Makef +ile.aperl blib\arch\auto\Thread\Apartment/extralibs.all blib\arch\aut +o\Thr C:\Perl\bin\perl.exe -MExtUtils::Command -e mv Makefile Makefi +le.old > NUL C:\Perl\bin\perl.exe -MExtUtils::Command -e rm_f *.pdb C:\Perl\bin\perl.exe -MExtUtils::Command -e rm_rf blib\lib\aut +o\Thread\Apartment blib\arch\auto\Thread\Apartment C:\Perl\bin\perl.exe -MExtUtils::Command -e rm_rf Thread-Apart +ment-0.10 C:\Perl\bin\perl.exe -MExtUtils::Command -e rm_f blib\lib\Thr +ead\Apartment\Common.pm blib\lib\Thread\Apartment\Server.pm Makefile. +old b C:\Perl\bin\perl.exe -MExtUtils::Command -e rm_f blib\lib\Thre +ad\Apartment\IOServer.pm Makefile P:\packages\Thread-Apartment-0.10>makefile main::CheckModule() called too early to check prototype at P:\packages +\Thread-Apartment-0.10\Makefile.PL line 41. Configuring Thread::Apartment ... Checking for Thread::Queue::Duplex, 0.14 or later ... ok Checking for Storable, 2.15 or later ... ok Checking for Class::ISA, 0.32 or later ... ok Checking for Class::Inspector, 1.08 or later ... ok Checking if your kit is complete... Looks good Writing Makefile for Thread::Apartment P:\packages\Thread-Apartment-0.10>nmake test Microsoft (R) Program Maintenance Utility Version 8.00.40607.16 Copyright (C) Microsoft Corporation. All rights reserved. cp lib/Thread/Apartment.pm blib\lib\Thread\Apartment.pm cp lib/Thread/Apartment/Client.pm blib\lib\Thread\Apartment\Client.pm cp lib/Thread/Apartment/Common.pm blib\lib\Thread\Apartment\Common.pm cp lib/Thread/Apartment/IOServer.pm blib\lib\Thread\Apartment\IOServer +.pm cp lib/Thread/Apartment/Server.pm blib\lib\Thread\Apartment\Server.pm cp lib/Thread/Apartment/Closure.pm blib\lib\Thread\Apartment\Closure.p +m C:\Perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harn +ess(0, 'blib\lib', 'blib\arch')" t\01test.t t\01test....Note: some tests have significant delays... t\01test....dubious Test returned status 5 (wstat 1280, 0x500) DIED. FAILED tests 10-125 Failed 116/125 tests, 7.20% okay Failed Test Stat Wstat Total Fail Failed List of Failed ---------------------------------------------------------------------- +--------- t\01test.t 5 1280 125 232 185.60% 10-125 Failed 1/1 test scripts, 0.00% okay. 116/125 subtests failed, 7.20% ok +ay. NMAKE : fatal error U1077: 'C:\Perl\bin\perl.exe' : return code '0x2' Stop. P:\packages\Thread-Apartment-0.10>C:\Perl\bin\perl.exe "-MExtUtils::Co +mmand::MM" "-e" "test_harness(0, 'blib\lib', 'blib\arch')" t\01test.t t\01test....Note: some tests have significant delays... t\01test....dubious Test returned status 5 (wstat 1280, 0x500) DIED. FAILED tests 10-125 Failed 116/125 tests, 7.20% okay Failed Test Stat Wstat Total Fail Failed List of Failed ---------------------------------------------------------------------- +--------- t\01test.t 5 1280 125 232 185.60% 10-125 Failed 1/1 test scripts, 0.00% okay. 116/125 subtests failed, 7.20% ok +ay.

    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
    "Science is about questioning the status quo. Questioning authority".
    The "good enough" maybe good enough for the now, and perfection maybe unobtainable, but that should not preclude us from striving for perfection, when time, circumstance or desire allow.