Skip Menu |

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

Report information
The Basics
Id: 104704
Status: open
Priority: 0/
Queue: Apache-Session

People
Owner: Nobody in particular
Requestors: kes-kes [...] yandex.ru
Cc:
AdminCc:

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



Subject: (in cleanup) Cannot lock: Interrupted system call at /usr/share/perl5/Apache/Session/Lock/File.pm line 81.
I do not know what is comming on. If you need more info, please ask. Stack: [/usr/share/perl5/Apache/Session/Lock/File.pm:81] [/usr/share/perl5/Apache/Session.pm:598] [/usr/share/perl5/Apache/Session.pm:526] [/usr/share/perl5/Apache/Session/File.pm:40] [/usr/share/perl5/HTML/Mason/Request.pm:951] [/home/feelsafe/mason/www2/obj/2435440036/autohandler.obj:91] (in cleanup) Cannot lock: Interrupted system call at /usr/share/perl5/Apache/Session/Lock/File.pm line 81. HTML::Mason::Component::FileBased->new( 'code' => sub { HTML::Mason::Request->instance->call_dynamic( 'main', @_ ) # <<<< 91 },
On Tue May 26 06:28:56 2015, kes-kes@yandex.ru wrote: Show quoted text
> I do not know what is comming on. If you need more info, please ask. > > Stack: > [/usr/share/perl5/Apache/Session/Lock/File.pm:81] > [/usr/share/perl5/Apache/Session.pm:598] > [/usr/share/perl5/Apache/Session.pm:526] > [/usr/share/perl5/Apache/Session/File.pm:40] > [/usr/share/perl5/HTML/Mason/Request.pm:951] > [/home/feelsafe/mason/www2/obj/2435440036/autohandler.obj:91] > (in cleanup) Cannot lock: Interrupted system call at > /usr/share/perl5/Apache/Session/Lock/File.pm line 81. > > HTML::Mason::Component::FileBased->new( > 'code' => sub { > HTML::Mason::Request->instance->call_dynamic( 'main', @_ ) # <<<< 91 > },
Which version of Apache::Session? How do you use Apache::Session? I.e. code that configures it, in which part of mason templates it is used. -- Alexandr Ciornii, http://chorny.net
From: kes-kes [...] yandex.ru
apache 1.93 site.conf <LocationMatch ".*(\.html|\/)$"> SetHandler perl-script PerlResponseHandler MasonHandler </LocationMatch> MasaonHandler.pm package MasonHandler; ... my %mason_config = ( args_method => 'mod_perl', data_dir => '/home/zzzzzzzz/logs/masonobj', error_format => 'text', error_mode => 'fatal', preamble => 'use utf8;', escape_flags => { h => \&HTML::Mason::Escapes::basic_html_escape }, # SESSION config request_class => 'MasonX::Request::WithApacheSession', session_class => 'Apache::Session::File', session_directory => '/home/zzzzzzzz/logs/session', session_lock_directory => '/home/zzzzzzzz/logs/session', session_use_cookie => 1, session_cookie_name => 'SESSION', session_cookie_expires => 'session', session_cookie_secure => 0, ); sub handler { my $r = shift; $ah{ $r->hostname } ||= HTML::Mason::ApacheHandler->new ( %mason_config ,comp_root => $ENV{ DOCUMENT_ROOT } ); I catch one case, when this always reproduceable. When sending page status 500 and body size > 4505bytes for FF, or >7427bytes for Chrome The mod_perl2 thread is not finished correctly and next request cause LOCK. https://bz.apache.org/bugzilla/show_bug.cgi?id=57976 Can we do WORKAROUND this in Apache::Session? Also I have LOCK in different cases, but can not catch the cause.
From: kes-kes [...] yandex.ru
One idea. Check correct work when someone do simultaneously queries with same SESSION If this lead to locks and unfinished threads then someone can use this to DDOS server