Skip Menu |

This queue is for tickets about the Apache-SessionX CPAN distribution.

Report information
The Basics
Id: 26533
Status: open
Priority: 0/
Queue: Apache-SessionX

People
Owner: Nobody in particular
Requestors: CHORNY [...] cpan.org
Cc:
AdminCc:

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



Subject: DB_File test hangs on Win32
Apache::Session 1.82_03. ActiveState perl v5.8.7 built for MSWin32-x86-multi-thread. ** Testing configuration 'DB_File': DB_File... [skip] #22 c concurrent access... Can't use string ("") as a subroutine ref while "strict refs" in use at C:\cpan\8\Apache-SessionX-2.01\blib\lib/Apache/SessionX.pm line 129. Can't use string ("") as a subroutine ref while "strict refs" in use at C:\cpan\8\Apache-SessionX-2.01\blib\lib/Apache/SessionX.pm line 129. Can't use string ("") as a subroutine ref while "strict refs" in use at C:\cpan\8\Apache-SessionX-2.01\blib\lib/Apache/SessionX.pm line 129. Can't use string ("") as a subroutine ref while "strict refs" in use at C:\cpan\8\Apache-SessionX-2.01\blib\lib/Apache/SessionX.pm line 129. Can't use string ("") as a subroutine ref while "strict refs" in use at C:\cpan\8\Apache-SessionX-2.01\blib\lib/Apache/SessionX.pm line 129. [hangs here] -- Alexandr Ciornii, http://chorny.net
Subject: DB_File test hangs on Win32
Apache::Session 1.82_03. ActiveState perl v5.8.7 built for MSWin32-x86-multi-thread. ** Testing configuration 'DB_File': DB_File... [skip] #22 c concurrent access... Can't use string ("") as a subroutine ref while "strict refs" in use at C:\cpan\8\Apache-SessionX-2.01\blib\lib/Apache/SessionX.pm line 129. Can't use string ("") as a subroutine ref while "strict refs" in use at C:\cpan\8\Apache-SessionX-2.01\blib\lib/Apache/SessionX.pm line 129. Can't use string ("") as a subroutine ref while "strict refs" in use at C:\cpan\8\Apache-SessionX-2.01\blib\lib/Apache/SessionX.pm line 129. Can't use string ("") as a subroutine ref while "strict refs" in use at C:\cpan\8\Apache-SessionX-2.01\blib\lib/Apache/SessionX.pm line 129. Can't use string ("") as a subroutine ref while "strict refs" in use at C:\cpan\8\Apache-SessionX-2.01\blib\lib/Apache/SessionX.pm line 129. [hangs here] -- Alexandr Ciornii, http://chorny.net
Subject: DB_File test hangs on Win32
Apache::Session 1.82_03. ActiveState perl v5.8.7 built for MSWin32-x86-multi-thread. ** Testing configuration 'DB_File': DB_File... [skip] #22 c concurrent access... Can't use string ("") as a subroutine ref while "strict refs" in use at C:\cpan\8\Apache-SessionX-2.01\blib\lib/Apache/SessionX.pm line 129. Can't use string ("") as a subroutine ref while "strict refs" in use at C:\cpan\8\Apache-SessionX-2.01\blib\lib/Apache/SessionX.pm line 129. Can't use string ("") as a subroutine ref while "strict refs" in use at C:\cpan\8\Apache-SessionX-2.01\blib\lib/Apache/SessionX.pm line 129. Can't use string ("") as a subroutine ref while "strict refs" in use at C:\cpan\8\Apache-SessionX-2.01\blib\lib/Apache/SessionX.pm line 129. Can't use string ("") as a subroutine ref while "strict refs" in use at C:\cpan\8\Apache-SessionX-2.01\blib\lib/Apache/SessionX.pm line 129. [hangs here] -- Alexandr Ciornii, http://chorny.net
Sorry for duplicates, I got "Internal Server Error". I've merged all into one. -- Alexandr Ciornii, http://chorny.net
Subject: RE: [rt.cpan.org #26531] DB_File test hangs on Win32
Date: Thu, 26 Apr 2007 14:17:50 +0200
To: bug-Apache-SessionX [...] rt.cpan.org
From: "Gerald Richter - ECOS GmbH" <richter [...] ecos.de>
Hi, DB_File is not supported on Windows, but other Storages work Sorry Gerald ------------------------------------------------------------------------ -- Gerald Richter ECOS electronic communication services GmbH ******************* SECURING YOUR NETWORK ******************** Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz E-Mail: richter@ecos.de Voice: +49 6133 939-122 WWW: http://www.BB-5000.info Fax: +49 6133 939-333 Sitz der Gesellschaft: Dienheim; AG Mainz HRB 6889; GF: W.Heck, G.Richter ------------------------------------------------------------------------ -- Show quoted text
> -----Original Message----- > From: Alexandr Ciornii via RT > [mailto:bug-Apache-SessionX@rt.cpan.org] > Sent: Saturday, April 21, 2007 12:37 PM > To: undisclosed-recipients:; > Subject: [rt.cpan.org #26531] DB_File test hangs on Win32 > > > Sat Apr 21 06:22:23 2007: Request 26531 was acted upon. > Transaction: Ticket created by CHORNY > Queue: Apache-SessionX > Subject: DB_File test hangs on Win32 > Broken in: 2.01 > Severity: Important > Owner: Nobody > Requestors: CHORNY@cpan.org > Status: new > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=26531 > > > > Apache::Session 1.82_03. > ActiveState perl v5.8.7 built for MSWin32-x86-multi-thread. > > ** Testing configuration 'DB_File': DB_File... > > [skip] > > #22 c concurrent access... > Can't use string ("") as a subroutine ref while > "strict refs" in use at > C:\cpan\8\Apache-SessionX-2.01\blib\lib/Apache/SessionX.pm line 129. > Can't use string ("") as a subroutine ref while "strict refs" > in use at > C:\cpan\8\Apache-SessionX-2.01\blib\lib/Apache/SessionX.pm line 129. > Can't use string ("") as a subroutine ref while "strict refs" > in use at > C:\cpan\8\Apache-SessionX-2.01\blib\lib/Apache/SessionX.pm line 129. > Can't use string ("") as a subroutine ref while "strict refs" > in use at > C:\cpan\8\Apache-SessionX-2.01\blib\lib/Apache/SessionX.pm line 129. > Can't use string ("") as a subroutine ref while "strict refs" > in use at > C:\cpan\8\Apache-SessionX-2.01\blib\lib/Apache/SessionX.pm line 129. > > [hangs here] > > > -- > Alexandr Ciornii, http://chorny.net > > > ** Virus checked by BB-5000 Mailfilter ** > !DSPAM:416,4629ebc0158967261978028! > >
** Virus checked by BB-5000 Mailfilter **
From: CHORNY [...] cpan.org
On Apr 26 08:19:08 2007, richter AT ecos.de wrote: Show quoted text
> DB_File is not supported on Windows, but other Storages work
Wrote two patches. SessionX.pm - internal check to handle "Can't use string ("") as a subroutine ref". test.pl - Perl on Windows now supports alarm. And Windows shell does not support `testcount.pl &`, so this test should be skipped. -- Alexandr Ciornii, http://chorny.net
--- SessionX.pm.dist Thu Nov 10 07:20:07 2005 +++ SessionX.pm Sat Apr 28 17:52:44 2007 @@ -126,6 +126,7 @@ if (!$session_id && $self -> {idfrom}) { + die "No generator provided" unless $self->{generate}; $session_id = $self->{data}->{_session_id} = &{$self->{generate}}($self, $self -> {idfrom}) ; }
--- test.pl.dist Sat Apr 28 18:29:45 2007 +++ test.pl Sat Apr 28 18:31:17 2007 @@ -9,9 +9,9 @@ BEGIN { eval "use Time::HiRes qw(gettimeofday tv_interval) ;" ; } use strict ; -use vars qw(@tests %stdargs $timeout $errors $numprocs $win32) ; +use vars qw(@tests %stdargs $timeout $errors $numprocs $has_alarm) ; -$win32 = ($Config{osname} =~ /win32/i) ; +$has_alarm = defined $Config{d_alarm}?1:0; if (@ARGV) { @@ -137,9 +137,9 @@ { local $SIG{ALRM} = sub { Error ("Time out. Locking not working properly") } ; - alarm $timeout if (!$win32) ; + alarm $timeout if ($has_alarm) ; dosimpletest (@_) ; - alarm 0 if (!$win32) ; + alarm 0 if ($has_alarm) ; } @@ -265,9 +265,9 @@ { local $SIG{ALRM} = sub { Error ("Time out. Locking not working properly") } ; - alarm $timeout if (!$win32) ; + alarm $timeout if ($has_alarm) ; dopersisttest (@_) ; - alarm 0 if (!$win32) ; + alarm 0 if ($has_alarm) ; } @@ -299,9 +299,9 @@ { local $SIG{ALRM} = sub { Error ("Time out. Locking not working properly") ; } ; - alarm $timeout if (!$win32) ; + alarm $timeout if ($has_alarm) ; dofailtest (@_) ; - alarm 0 if (!$win32) ; + alarm 0 if ($has_alarm) ; } sub preopen @@ -337,7 +337,11 @@ my $cnt ; printf ('#%02d %-30s', $num, "$msg...\n") ; + return '' if $^O eq 'MSWin32'; + #This test is OS-specific, it executes `testcount.pl &` + local $SIG{ALRM} = sub { Error ("Time out.");die; }; + alarm $timeout*10 if ($has_alarm) ; my %sess ; my $obj ; eval { $obj = tie (%sess, 'Apache::SessionX', undef, { %stdargs, 'config' => $cfg, lazy => 1, create_unknown => 1, Transaction => 1}) or die ("Cannot tie to Apache::SessionX") ; } ; @@ -379,6 +383,7 @@ print "\n" ; Error ("Count is $cnt should be " . ($numprocs * 10) . ". Looks like locking doesn't work correct") ; + alarm 0 if ($has_alarm) ; } @@ -464,6 +469,7 @@ if ($errors) { print "Found $errors ERRORS\n" ; + die; #Installation tools will be able to detect FAIL } else {
Subject: RE: [rt.cpan.org #26533] DB_File test hangs on Win32
Date: Fri, 4 May 2007 05:42:05 +0200
To: bug-Apache-SessionX [...] rt.cpan.org
From: "Gerald Richter - ECOS GmbH" <richter [...] ecos.de>
Thanks for the patches. I will include them in the next release Gerald ------------------------------------------------------------------------ -- Gerald Richter ECOS electronic communication services GmbH ******************* SECURING YOUR NETWORK ******************** Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz E-Mail: richter@ecos.de Voice: +49 6133 939-122 WWW: http://www.BB-5000.info Fax: +49 6133 939-333 Sitz der Gesellschaft: Dienheim; AG Mainz HRB 6889; GF: W.Heck, G.Richter ------------------------------------------------------------------------ -- Show quoted text
> -----Original Message----- > From: Alexandr Ciornii via RT > [mailto:bug-Apache-SessionX@rt.cpan.org] > Sent: Saturday, April 28, 2007 7:14 PM > To: undisclosed-recipients:; > Subject: [rt.cpan.org #26533] DB_File test hangs on Win32 > > > Queue: Apache-SessionX > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=26533 > > > On Apr 26 08:19:08 2007, richter AT ecos.de wrote: >
> > DB_File is not supported on Windows, but other Storages work
> > Wrote two patches. > SessionX.pm - internal check to handle "Can't use string ("") > as a subroutine ref". > test.pl - Perl on Windows now supports alarm. And Windows > shell does not support `testcount.pl &`, so this test should > be skipped. > > -- > Alexandr Ciornii, http://chorny.net > > > > ** Virus checked by BB-5000 Mailfilter ** > !DSPAM:416,463380ff133688185619625! > >
** Virus checked by BB-5000 Mailfilter **