You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Tümer Garip <tg...@neu.edu.tr> on 2007/01/25 13:19:19 UTC

Modperl crashes on win32

Hi all, 
New to the list so bear with me a sec.
Platform: Windows 2003 Server/Apache 2.2.3,ActivePerl5.8.8-819 
Problem: ModPerl 2.0.3 crashes Apache 2.2.3 or 2.2.4 when concurrency
occurs.
Error reported on windows event system:
Faulting application httpd.exe, version 2.2.3.0, faulting module
perl58.dll, version 0.0.0.0, fault address 0x000ead7a.
Or:
Faulting application httpd.exe, version 2.2.3.0, faulting module
perl58.dll, version 0.0.0.0, fault address 0x0003695f.

History:
We have a production working library system with the above platform.
Recently we are trying to use Modperl with either PerlRun or Registry
Everything looks smooth except the intermittent faults i quoted above.

Test Run:
Using ApacheBench tried to isolate the problem.
When concurrency is set to 1 we did not manage to crash the system. Any
concurrency level above 1 system crash occurs 90% of the time. ie yes it
sometimes work!

Remedies tried:
>From Isaac Goldstands mail (22 Nov 2006) to the list:
Quote:
In order to avoid the problem I used the __try and __catch which are
used in Microsoft win32 applications changing  :
 inline void FreeShared(void* ptr)
    {
	GetLockShared();
	__try{
		m_pVMemShared-> Free(ptr);
		}
	__except(EXCEPTION_EXECUTE_HANDLER)
	{	
	}	
	FreeLockShared();
    };
Located in win32\perlhost.h file.
--Unquote.

We applied this patch to perl, recompiled and nothing changed.

We do not have C programmers in hand so we are stuck.
Any help, suggestions is appreciated.

Tumer Garip
NEU Grand Library
Cyprus



Re: Modperl crashes on win32

Posted by Perrin Harkins <ph...@gmail.com>.
On 1/25/07, Tümer Garip <tg...@neu.edu.tr> wrote:
> We have a production working library system with the above platform.
> Recently we are trying to use Modperl with either PerlRun or Registry
> Everything looks smooth except the intermittent faults i quoted above.

Can you attempt to isolate the part of  your perl code that's running
when it hits this segfault?

- Perrin