Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 

   


   


   

















      :: Apache-Talk
Apache-Talk mailing list archive (apache-talk@lists.lexa.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[apache-talk] Linux + mod_perl 1.16 +.....




 , ,     

-- forwarded message --
Path: artifact.geol.msu.ru!mail2news
From: shields@crosslink.net (Michael Shields)
Subject: [PATCH] NULL cleanup hander registered, causes segfault
Date: 15 Oct 1998 07:58:08 +0400
Lines: 29
Message-ID: <13861.29365.873257.788604@aluminum.crosslink.net>
NNTP-Posting-Host: artifact.geol.msu.ru

When building Apache 1.3.3 with Ben-SSL 1.27 and mod_perl 1.16 on
Linux, I found that httpsd was segfaulting when trying to exec the
gcache, because while running cleanups in preparation for an exec, it
tried to dereference a null pointer which mod_perl had registered as a
child cleanup hander.

The patch below fixes this, and the server now starts and runs
correctly, even with a dynamically loaded mod_perl.

 Index: src/modules/perl/mod_perl.c
 ===================================================================
 RCS file: /usr/local/cvs/libapache-mod-perl/src/modules/perl/mod_perl.c,v
 retrieving revision 1.3
 diff -u -r1.3 mod_perl.c
 --- mod_perl.c 1998/10/14 20:57:16     1.3
 +++ mod_perl.c 1998/10/15 03:35:29
 @@ -690,7 +690,7 @@
      Apache__ServerStarting(FALSE);
  #if MODULE_MAGIC_NUMBER >= MMN_130
      if(perl_module.dynamic_load_handle) 
 -      register_cleanup(p, NULL, mp_dso_unload, NULL); 
 +      register_cleanup(p, NULL, mp_dso_unload, null_cleanup); 
  #endif
  }
 

-- 
Shields, CrossLink.

-- end of forwarded message --
----- End forwarded message -----
=============================================================================
=               Apache-Talk@lists.lexa.ru mailing list                      =
Mail "unsubscribe apache-talk" to majordomo@lists.lexa.ru if you want to quit.
=       Archive avaliable at http://www.lexa.ru/apache-talk                 =



 




Copyright © Lexa Software, 1996-2009.