English 中文(简体)
Apache/ mo
原标题:Apache children hanging / mod perl

我的服务器上的儿童(Uuntu 12.04从11.10升至2.2.22, perl 5.14.2, mod_perl 2.0.5)正在hang。

我试图追捕信号器2和警报器,但没有成功(在使用睡觉进行检测时,它像猜测,但当节目库本身没有产出时)

sub handler : method{
my $mask      = POSIX::SigSet->new(&POSIX::SIGUSR2, &POSIX::SIGALRM);
my $oldaction_usr2 = POSIX::SigAction->new();
my $oldaction_alarm = POSIX::SigAction->new();
my $action = POSIX::SigAction->new(sub {
    Carp::confess("hm caught SIGUSR2 or ALARM DEAD LOCK YOU can run but not hide!");
},$mask,&POSIX::SA_NODEFER);
POSIX::sigaction(&POSIX::SIGUSR2,$action, $oldaction_usr2);
POSIX::sigaction(&POSIX::SIGALRM,$action, $oldaction_alarm);
alarm(30); #max 30 seconds per request

因此,我利用阿帕奇身份获得儿童hang死(时间不是增加,而只是SS(自最近申请开始以来的二次)。

接着,我附上了假肢,以获得背书:

(gdb) bt
#0  0x00007fc4610fb606 in myck_entersub (my_perl=0x7fc47f7f63e0, op=0x7fc484b40910) at lib/Params/Classify.xs:682
#1  0x00007fc477a67abd in Perl_convert () from /usr/lib/libperl.so.5.14
#2  0x00007fc477a6f769 in Perl_utilize () from /usr/lib/libperl.so.5.14
#3  0x00007fc477a9daef in Perl_yyparse () from /usr/lib/libperl.so.5.14
#4  0x00007fc477b1635d in ?? () from /usr/lib/libperl.so.5.14

the problem is I have no idea how to fix this or what this means. On modper 1 gude I found:

% gdb httpd <pid of spinning process>
(gdb) where
(gdb) source mod_perl-x.xx/.gdbinit
(gdb) curinfo

but I don t know where .gdbinit is located or which package I need to install or do I need to make this file by my self from source (maybe with Devel::DebugInit::GDB) ?

最佳回答

问题可能是“Params:Classification,”不是“thethread-safe”。 见:

https://bugs.buuntu/+source/libmodule-runtime-perl/+bug/991650

男性 处理过程中的硬性循环:

http://www.perlmonks.org/?node_id=886909

帕拉姆斯作者:Classification于2011年11月承认这一问题,但没有释放出一个固定点。

问题回答

暂无回答




相关问题
Why does my chdir to a filehandle not work in Perl?

When I try a "chdir" with a filehandle as argument, "chdir" returns 0 and a pwd returns still the same directory. Should that be so? I tried this, because in the documentation to chdir I found: "...

How do I use GetOptions to get the default argument?

I ve read the doc for GetOptions but I can t seem to find what I need... (maybe I am blind) What I want to do is to parse command line like this myperlscript.pl -mode [sth] [inputfile] I can use ...

Object-Oriented Perl constructor syntax and named parameters

I m a little confused about what is going on in Perl constructors. I found these two examples perldoc perlbot. package Foo; #In Perl, the constructor is just a subroutine called new. sub new { #I ...

Where can I find object-oriented Perl tutorials? [closed]

A Google search yields a number of results - but which ones are the best? The Perl site appears to contain two - perlboot and perltoot. I m reading these now, but what else is out there? Note: I ve ...

热门标签