You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@perl.apache.org by Eric Cholet <ch...@logilune.com> on 2005/01/05 16:46:09 UTC

t/perl/signals failure

1. Problem Description:

t/perl/signals....1..2
# Running under perl version 5.008001 for darwin
# Current time local: Wed Jan  5 16:33:45 2005
# Current time GMT:   Wed Jan  5 15:33:45 2005
# Using Test.pm version 1.24
# Using Apache/Test.pm version 1.19
FAILED before any test output arrived
Failed Test      Stat Wstat Total Fail  Failed  List of Failed
------------------------------------------------------------------------ 
-------
t/perl/signals.t               ??   ??       %  ??


% cat t/logs/error_log
[Wed Jan 05 16:33:43 2005] [info] Init: Initializing OpenSSL library
[Wed Jan 05 16:33:43 2005] [info] Init: Seeding PRNG with 0 bytes of  
entropy
[Wed Jan 05 16:33:43 2005] [info] Init: Generating temporary RSA  
private keys (512/1024 bits)
[Wed Jan 05 16:33:44 2005] [info] Init: Generating temporary DH  
parameters (512/1024 bits)
[Wed Jan 05 16:33:44 2005] [warn] Init: Session Cache is not configured  
[hint: SSLSessionCache]
[Wed Jan 05 16:33:44 2005] [info] Init: Initializing (virtual) servers  
for SSL
[Wed Jan 05 16:33:44 2005] [info] Server: Apache/2.0.53-dev, Interface:  
mod_ssl/2.0.53-dev, Library: OpenSSL/b
[Wed Jan 05 16:33:44 2005] [info] mod_unique_id: using ip addr  
195.80.154.45
END in modperl_extra.pl, pid=27326
Attempt to free unreferenced scalar at  
/System/Library/Perl/5.8.1/Test/Harness.pm line 48.
[Wed Jan 05 16:33:47 2005] [notice] Digest: generating secret for  
digest authentication ...
[Wed Jan 05 16:33:47 2005] [notice] Digest: done
[Wed Jan 05 16:33:47 2005] [info] Init: Initializing OpenSSL library
[Wed Jan 05 16:33:47 2005] [info] Init: Seeding PRNG with 0 bytes of  
entropy
[Wed Jan 05 16:33:47 2005] [info] Init: Generating temporary RSA  
private keys (512/1024 bits)
[Wed Jan 05 16:33:48 2005] [info] Init: Generating temporary DH  
parameters (512/1024 bits)
[Wed Jan 05 16:33:48 2005] [info] Init: Initializing (virtual) servers  
for SSL
[Wed Jan 05 16:33:48 2005] [info] Server: Apache/2.0.53-dev, Interface:  
mod_ssl/2.0.53-dev, Library: OpenSSL/b
[Wed Jan 05 16:33:48 2005] [info] mod_unique_id: using ip addr  
195.80.154.45
[Wed Jan 05 16:33:49 2005] [notice] Apache/2.0.53-dev (Unix) world  
domination series/2.0 mod_ssl/2.0.53-dev Os
[Wed Jan 05 16:33:49 2005] [info] Server built: Jan  4 2005 15:23:25
[Wed Jan 05 16:33:49 2005] [debug] prefork.c(955): AcceptMutex: sysvsem  
(default: sysvsem)
[Wed Jan 05 16:33:54 2005] [info] Child process pid=27346 is exiting
END in modperl_extra.pl, pid=27346
[Wed Jan 05 16:33:54 2005] [info] Child process pid=27336 is exiting
END in modperl_extra.pl, pid=27336
[Wed Jan 05 16:33:54 2005] [info] removed PID file  
/Users/eric/asf/modperl/src/mod_perl-2.0/t/logs/httpd.pid )
[Wed Jan 05 16:33:54 2005] [notice] caught SIGTERM, shutting down
END in modperl_extra.pl, pid=27331
Attempt to free unreferenced scalar at  
/System/Library/Perl/5.8.1/Test/Harness.pm line 48.


2. Used Components and their Configuration:

*** mod_perl version 1.9920

*** using  
/Users/eric/asf/modperl/src/mod_perl-2.0/lib/Apache/BuildConfig.pm

*** Makefile.PL options:
   MP_APR_LIB      => aprext
   MP_AP_PREFIX    => /Users/eric/asf/httpd/httpd-2.0-prefork
   MP_COMPAT_1X    => 1
   MP_GENERATE_XS  => 1
   MP_INST_APACHE2 => 1
   MP_LIBNAME      => mod_perl
   MP_USE_DSO      => 1


*** /Users/eric/asf/httpd/httpd-2.0-prefork/bin/httpd -V
Server version: Apache/2.0.53-dev
Server built:   Jan  4 2005 15:23:25
Server's Module Magic Number: 20020903:9
Architecture:   32-bit
Server compiled with....
  -D APACHE_MPM_DIR="server/mpm/prefork"
  -D APR_HAS_MMAP
  -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
  -D APR_USE_SYSVSEM_SERIALIZE
  -D APR_USE_PTHREAD_SERIALIZE
  -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
  -D APR_HAS_OTHER_CHILD
  -D AP_HAVE_RELIABLE_PIPED_LOGS
  -D HTTPD_ROOT="/Users/eric/asf/httpd/httpd-2.0-prefork"
  -D SUEXEC_BIN="/Users/eric/asf/httpd/httpd-2.0-prefork/bin/suexec"
  -D DEFAULT_PIDLOG="logs/httpd.pid"
  -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
  -D DEFAULT_LOCKFILE="logs/accept.lock"
  -D DEFAULT_ERRORLOG="logs/error_log"
  -D AP_TYPES_CONFIG_FILE="conf/mime.types"
  -D SERVER_CONFIG_FILE="conf/httpd.conf"


*** (apr|apu)-config linking info

  -L/Users/eric/asf/httpd/httpd-2.0-prefork/lib -lapr-0 -lresolv   
-lpthread
  -L/Users/eric/asf/httpd/httpd-2.0-prefork/lib -laprutil-0 -lexpat  
-liconv



*** /usr/bin/perl -V
Summary of my perl5 (revision 5.0 version 8 subversion 1 RC3)  
configuration:
   Platform:
     osname=darwin, osvers=7.0, archname=darwin-thread-multi-2level
     uname='darwin hampsten 7.0 darwin kernel version 6.0: fri jul 25  
16:58:41 pdt 2003;  
root:xnu-344.frankd.rootsxnu-344.frankd~objrelease_ppc power macintosh  
powerpc '
     config_args='-ds -e -Dprefix=/usr -Dccflags=-g  -pipe   
-Dldflags=-Dman3ext=3pm -Duseithreads -Duseshrplib'     
hint=recommended, useposix=true, d_sigaction=define
     usethreads=define use5005threads=undef useithreads=define  
usemultiplicity=define
     useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
     use64bitint=undef use64bitall=undef uselongdouble=undef
     usemymalloc=n, bincompat5005=undef
   Compiler:
     cc='cc', ccflags ='-g -pipe -pipe -fno-common -DPERL_DARWIN  
-no-cpp-precomp -fno-strict-aliasing -I/usr/local/include',
     optimize='-Os',
     cppflags='-no-cpp-precomp -g -pipe -pipe -fno-common -DPERL_DARWIN  
-no-cpp-precomp -fno-strict-aliasing -I/usr/local/include'
     ccversion='', gccversion='3.3 20030304 (Apple Computer, Inc. build  
1495)', gccosandvers=''
     intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
     d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8
     ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',  
lseeksize=8
     alignbytes=8, prototype=define
   Linker and Libraries:
     ld='env MACOSX_DEPLOYMENT_TARGET=10.3 cc', ldflags  
='-L/usr/local/lib'
     libpth=/usr/local/lib /usr/lib
     libs=-ldbm -ldl -lm -lc
     perllibs=-ldl -lm -lc
     libc=/usr/lib/libc.dylib, so=dylib, useshrplib=true,  
libperl=libperl.dylib
     gnulibc_version=''
   Dynamic Linking:
     dlsrc=dl_dyld.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
     cccdlflags=' ', lddlflags='-bundle -undefined dynamic_lookup  
-L/usr/local/lib'


Characteristics of this binary (from libperl):
   Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES  
PERL_IMPLICIT_CONTEXT
   Locally applied patches:
         RC3
   Built under darwin
   Compiled at Sep 12 2003 19:50:49
   %ENV:
     PERL5LIB="/Users/eric/lib"
     PERLDOC_PAGER="less -+C -E"
     PERL_LWP_USE_HTTP_10="1"
   @INC:
     /Users/eric/lib
     /System/Library/Perl/5.8.1/darwin-thread-multi-2level
     /System/Library/Perl/5.8.1
     /Library/Perl/5.8.1/darwin-thread-multi-2level
     /Library/Perl/5.8.1
     /Library/Perl
     /Network/Library/Perl/5.8.1/darwin-thread-multi-2level
     /Network/Library/Perl/5.8.1
     /Network/Library/Perl
     .

*** Packages of interest status:

Apache::Request: -
CGI            : 2.98
LWP            : 5.803
mod_perl       : 1.26, 1.9920


3. This is the core dump trace: (if you get a core dump):

   [CORE TRACE COMES HERE]

This report was generated by t/REPORT on Wed Jan  5 15:36:23 2005 GMT.

--
Eric Cholet


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: t/perl/signals failure

Posted by Stas Bekman <st...@stason.org>.
Stas Bekman wrote:
> Eric Cholet wrote:
> 
>> 1. Problem Description:
>>
>> t/perl/signals....1..2
>> # Running under perl version 5.008001 for darwin
>> # Current time local: Wed Jan  5 16:33:45 2005
>> # Current time GMT:   Wed Jan  5 15:33:45 2005
>> # Using Test.pm version 1.24
>> # Using Apache/Test.pm version 1.19
>> FAILED before any test output arrived
>> Failed Test      Stat Wstat Total Fail  Failed  List of Failed
>> ------------------------------------------------------------------------ 
>> -------
>> t/perl/signals.t               ??   ??       %  ??
> 
> 
> Eric, please take a look at:
> http://perl.apache.org/docs/2.0/user/help/help.html#_C_make_test___Failures

No, sorry. It's verbose already. any idea why there is nothing in the logs?

-- 
__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: t/perl/signals failure

Posted by Stas Bekman <st...@stason.org>.
Eric Cholet wrote:
> Le 5 janv. 05, à 18:54, Stas Bekman a écrit :
> 
>>>> That probably means that Apache installs its own sighandler or 
>>>> something like that? It certainly shows that a user can't use perl's 
>>>> ALRM on MaxOSX.
>>>>
>>>> Please post a skip patch?
>>>
>>> Sure, but maybe this is also dependent on the version of Perl I'm 
>>> running,
>>> MacOSX stock (5.8.1-RC3)
>>> I'll try to find some time to install a recent Perl to test with.
>>
>>
>> we don't like RCs, since we can't test for those. Any chance to test 
>> with non-RC?
> 
> 
> It fails in the same way with MAINT.

so please also update this:
http://perl.apache.org/docs/2.0/user/coding/coding.html#Using_Signal_Handlers
where it talks about the $SIG{ALRM} technique

>> (the identation is wrong in the original, i'll fix it later).
> 
> 
> I believe I messed it up even further with this patch.
> I'll go read the coding style guide now.

Actually the original is fine :) just use indent 4.


-- 
__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: t/perl/signals failure

Posted by Eric Cholet <ch...@logilune.com>.
Le 5 janv. 05, à 18:54, Stas Bekman a écrit :

>>> That probably means that Apache installs its own sighandler or 
>>> something like that? It certainly shows that a user can't use perl's 
>>> ALRM on MaxOSX.
>>>
>>> Please post a skip patch?
>> Sure, but maybe this is also dependent on the version of Perl I'm 
>> running,
>> MacOSX stock (5.8.1-RC3)
>> I'll try to find some time to install a recent Perl to test with.
>
> we don't like RCs, since we can't test for those. Any chance to test 
> with non-RC?

It fails in the same way with MAINT.

>
>> Index: t/response/TestPerl/signals.pm
>> ===================================================================
>> --- t/response/TestPerl/signals.pm      (revision 124104)
>> +++ t/response/TestPerl/signals.pm      (working copy)
>> @@ -32,6 +32,10 @@
>>      # doesn't work under static prefork
>>      if (!$static) {
>> +      if ($^O eq 'darwin') {
>> +        skip "ALRM can't be used on darwin", 1;
>
> I believe that should be s|1|0|;
>
>> +      }
>> +      else {
>>          local $ENV{PERL_SIGNALS} = "unsafe";
>>          eval {
>> @@ -41,6 +45,7 @@
>>              alarm 0;
>>          };
>>          ok t_cmp $@, qr/alarm/, "SIGALRM / unsafe %SIG";
>> +      }
>>      }
>>      # POSIX::sigaction doesn't work under 5.6.x
>
> +1, you have the commit access, right?

yes.

> (the identation is wrong in the original, i'll fix it later).

I believe I messed it up even further with this patch.
I'll go read the coding style guide now.

--
Eric Cholet


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: t/perl/signals failure

Posted by Stas Bekman <st...@stason.org>.
Eric Cholet wrote:
> Le 5 janv. 05, à 17:50, Stas Bekman a écrit :
> 
>> Eric Cholet wrote:
>>
>>> Le 5 janv. 05, à 17:41, Eric Cholet a écrit :
>>>
>>>> Le 5 janv. 05, à 17:20, Stas Bekman a écrit :
>>>>
>>>>> As I've followed up, you didn't miss anything. As I'm not on your 
>>>>> platform all I can suggest is to dig into the code, i.e.
>>>>> t/response/TestPerl/signals.pm
>>>>
>>>>
>>>>
>>>> Thanks, here's what I am seeing in that code:
>>>>
>>>>     if (!$static) {
>>>>         local $ENV{PERL_SIGNALS} = "unsafe";
>>>>
>>>>         eval {
>>>>             local $SIG{ALRM} = sub { die "alarm" };
>>>>             alarm 2;
>>>>             run_for_5_sec();
>>>>             alarm 0;
>>>>         };
>>>>         ok t_cmp $@, qr/alarm/, "SIGALRM / unsafe %SIG";
>>>>     }
>>>>
>>>> run_for_5_sec() runs for about 2 seconds, and then nothing happens. In
>>>> the signal handler I replaced die with warn, but the warn doesn't 
>>>> happen.
>>>
>>> I forgot to mention that after those 2 seconds, I see this is the 
>>> error log:
>>> [Wed Jan 05 17:36:54 2005] [notice] child pid 29676 exit signal Alarm 
>>> clock (14)
>>
>>
>> That probably means that Apache installs its own sighandler or 
>> something like that? It certainly shows that a user can't use perl's 
>> ALRM on MaxOSX.
>>
>> Please post a skip patch?
> 
> 
> Sure, but maybe this is also dependent on the version of Perl I'm running,
> MacOSX stock (5.8.1-RC3)
> I'll try to find some time to install a recent Perl to test with.

we don't like RCs, since we can't test for those. Any chance to test with 
non-RC?

> Index: t/response/TestPerl/signals.pm
> ===================================================================
> --- t/response/TestPerl/signals.pm      (revision 124104)
> +++ t/response/TestPerl/signals.pm      (working copy)
> @@ -32,6 +32,10 @@
> 
>      # doesn't work under static prefork
>      if (!$static) {
> +      if ($^O eq 'darwin') {
> +        skip "ALRM can't be used on darwin", 1;

I believe that should be s|1|0|;

> +      }
> +      else {
>          local $ENV{PERL_SIGNALS} = "unsafe";
> 
>          eval {
> @@ -41,6 +45,7 @@
>              alarm 0;
>          };
>          ok t_cmp $@, qr/alarm/, "SIGALRM / unsafe %SIG";
> +      }
>      }
> 
>      # POSIX::sigaction doesn't work under 5.6.x

+1, you have the commit access, right?

(the identation is wrong in the original, i'll fix it later).

-- 
__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: t/perl/signals failure

Posted by Eric Cholet <ch...@logilune.com>.
Le 5 janv. 05, à 17:50, Stas Bekman a écrit :

> Eric Cholet wrote:
>> Le 5 janv. 05, à 17:41, Eric Cholet a écrit :
>>> Le 5 janv. 05, à 17:20, Stas Bekman a écrit :
>>>
>>>> As I've followed up, you didn't miss anything. As I'm not on your 
>>>> platform all I can suggest is to dig into the code, i.e.
>>>> t/response/TestPerl/signals.pm
>>>
>>>
>>> Thanks, here's what I am seeing in that code:
>>>
>>>     if (!$static) {
>>>         local $ENV{PERL_SIGNALS} = "unsafe";
>>>
>>>         eval {
>>>             local $SIG{ALRM} = sub { die "alarm" };
>>>             alarm 2;
>>>             run_for_5_sec();
>>>             alarm 0;
>>>         };
>>>         ok t_cmp $@, qr/alarm/, "SIGALRM / unsafe %SIG";
>>>     }
>>>
>>> run_for_5_sec() runs for about 2 seconds, and then nothing happens. 
>>> In
>>> the signal handler I replaced die with warn, but the warn doesn't 
>>> happen.
>> I forgot to mention that after those 2 seconds, I see this is the 
>> error log:
>> [Wed Jan 05 17:36:54 2005] [notice] child pid 29676 exit signal Alarm 
>> clock (14)
>
> That probably means that Apache installs its own sighandler or 
> something like that? It certainly shows that a user can't use perl's 
> ALRM on MaxOSX.
>
> Please post a skip patch?

Sure, but maybe this is also dependent on the version of Perl I'm 
running,
MacOSX stock (5.8.1-RC3)
I'll try to find some time to install a recent Perl to test with.


Index: t/response/TestPerl/signals.pm
===================================================================
--- t/response/TestPerl/signals.pm      (revision 124104)
+++ t/response/TestPerl/signals.pm      (working copy)
@@ -32,6 +32,10 @@

      # doesn't work under static prefork
      if (!$static) {
+      if ($^O eq 'darwin') {
+        skip "ALRM can't be used on darwin", 1;
+      }
+      else {
          local $ENV{PERL_SIGNALS} = "unsafe";

          eval {
@@ -41,6 +45,7 @@
              alarm 0;
          };
          ok t_cmp $@, qr/alarm/, "SIGALRM / unsafe %SIG";
+      }
      }

      # POSIX::sigaction doesn't work under 5.6.x


>
> The POSIX works right?

Yes, all tests pass now.

--
Eric Cholet


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: t/perl/signals failure

Posted by Stas Bekman <st...@stason.org>.
Eric Cholet wrote:
> Le 5 janv. 05, à 17:41, Eric Cholet a écrit :
> 
>> Le 5 janv. 05, à 17:20, Stas Bekman a écrit :
>>
>>> As I've followed up, you didn't miss anything. As I'm not on your 
>>> platform all I can suggest is to dig into the code, i.e.
>>> t/response/TestPerl/signals.pm
>>
>>
>> Thanks, here's what I am seeing in that code:
>>
>>     if (!$static) {
>>         local $ENV{PERL_SIGNALS} = "unsafe";
>>
>>         eval {
>>             local $SIG{ALRM} = sub { die "alarm" };
>>             alarm 2;
>>             run_for_5_sec();
>>             alarm 0;
>>         };
>>         ok t_cmp $@, qr/alarm/, "SIGALRM / unsafe %SIG";
>>     }
>>
>> run_for_5_sec() runs for about 2 seconds, and then nothing happens. In
>> the signal handler I replaced die with warn, but the warn doesn't happen.
> 
> 
> I forgot to mention that after those 2 seconds, I see this is the error 
> log:
> 
> [Wed Jan 05 17:36:54 2005] [notice] child pid 29676 exit signal Alarm 
> clock (14)

That probably means that Apache installs its own sighandler or something 
like that? It certainly shows that a user can't use perl's ALRM on MaxOSX.

Please post a skip patch?

The POSIX works right?


-- 
__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: t/perl/signals failure

Posted by Eric Cholet <ch...@logilune.com>.
Le 5 janv. 05, à 17:41, Eric Cholet a écrit :

> Le 5 janv. 05, à 17:20, Stas Bekman a écrit :
>
>> As I've followed up, you didn't miss anything. As I'm not on your 
>> platform all I can suggest is to dig into the code, i.e.
>> t/response/TestPerl/signals.pm
>
> Thanks, here's what I am seeing in that code:
>
>     if (!$static) {
>         local $ENV{PERL_SIGNALS} = "unsafe";
>
>         eval {
>             local $SIG{ALRM} = sub { die "alarm" };
>             alarm 2;
>             run_for_5_sec();
>             alarm 0;
>         };
>         ok t_cmp $@, qr/alarm/, "SIGALRM / unsafe %SIG";
>     }
>
> run_for_5_sec() runs for about 2 seconds, and then nothing happens. In
> the signal handler I replaced die with warn, but the warn doesn't 
> happen.

I forgot to mention that after those 2 seconds, I see this is the error 
log:

[Wed Jan 05 17:36:54 2005] [notice] child pid 29676 exit signal Alarm 
clock (14)

--
Eric Cholet


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: t/perl/signals failure

Posted by Eric Cholet <ch...@logilune.com>.
Le 5 janv. 05, à 17:20, Stas Bekman a écrit :

> As I've followed up, you didn't miss anything. As I'm not on your 
> platform all I can suggest is to dig into the code, i.e.
> t/response/TestPerl/signals.pm

Thanks, here's what I am seeing in that code:

     if (!$static) {
         local $ENV{PERL_SIGNALS} = "unsafe";

         eval {
             local $SIG{ALRM} = sub { die "alarm" };
             alarm 2;
             run_for_5_sec();
             alarm 0;
         };
         ok t_cmp $@, qr/alarm/, "SIGALRM / unsafe %SIG";
     }

run_for_5_sec() runs for about 2 seconds, and then nothing happens. In
the signal handler I replaced die with warn, but the warn doesn't 
happen.


--
Eric Cholet


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: t/perl/signals failure

Posted by Stas Bekman <st...@stason.org>.
Eric Cholet wrote:
> Le 5 janv. 05, à 16:57, Stas Bekman a écrit :
> 
>> Eric Cholet wrote:
>>
>>> 1. Problem Description:
>>> t/perl/signals....1..2
>>> # Running under perl version 5.008001 for darwin
>>> # Current time local: Wed Jan  5 16:33:45 2005
>>> # Current time GMT:   Wed Jan  5 15:33:45 2005
>>> # Using Test.pm version 1.24
>>> # Using Apache/Test.pm version 1.19
>>> FAILED before any test output arrived
>>> Failed Test      Stat Wstat Total Fail  Failed  List of Failed
>>> ---------------------------------------------------------------------- 
>>> -- -------
>>> t/perl/signals.t               ??   ??       %  ??
>>
>>
>> Eric, please take a look at:
>> http://perl.apache.org/docs/2.0/user/help/ 
>> help.html#_C_make_test___Failures
> 
> 
> I did, I know you too well not to try to do my homework first.
> Please let me know what I missed and I'll do it.

:)

As I've followed up, you didn't miss anything. As I'm not on your platform 
all I can suggest is to dig into the code, i.e.
t/response/TestPerl/signals.pm

-- 
__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: t/perl/signals failure

Posted by Eric Cholet <ch...@logilune.com>.
Le 5 janv. 05, à 16:57, Stas Bekman a écrit :

> Eric Cholet wrote:
>> 1. Problem Description:
>> t/perl/signals....1..2
>> # Running under perl version 5.008001 for darwin
>> # Current time local: Wed Jan  5 16:33:45 2005
>> # Current time GMT:   Wed Jan  5 15:33:45 2005
>> # Using Test.pm version 1.24
>> # Using Apache/Test.pm version 1.19
>> FAILED before any test output arrived
>> Failed Test      Stat Wstat Total Fail  Failed  List of Failed
>> ---------------------------------------------------------------------- 
>> -- -------
>> t/perl/signals.t               ??   ??       %  ??
>
> Eric, please take a look at:
> http://perl.apache.org/docs/2.0/user/help/ 
> help.html#_C_make_test___Failures

I did, I know you too well not to try to do my homework first.
Please let me know what I missed and I'll do it.

--
Eric Cholet


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: t/perl/signals failure

Posted by Stas Bekman <st...@stason.org>.
Eric Cholet wrote:
> 1. Problem Description:
> 
> t/perl/signals....1..2
> # Running under perl version 5.008001 for darwin
> # Current time local: Wed Jan  5 16:33:45 2005
> # Current time GMT:   Wed Jan  5 15:33:45 2005
> # Using Test.pm version 1.24
> # Using Apache/Test.pm version 1.19
> FAILED before any test output arrived
> Failed Test      Stat Wstat Total Fail  Failed  List of Failed
> ------------------------------------------------------------------------ 
> -------
> t/perl/signals.t               ??   ??       %  ??

Eric, please take a look at:
http://perl.apache.org/docs/2.0/user/help/help.html#_C_make_test___Failures

-- 
__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org