www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Plattner <platt...@sioux.ch>
Subject general/6606: Linux: After recompiling a dso module, apache will abort (sigsev) when being restarted
Date Sat, 30 Sep 2000 01:11:30 GMT

>Number:         6606
>Category:       general
>Synopsis:       Linux: After recompiling a dso module, apache will abort (sigsev) when
being restarted
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Fri Sep 29 18:20:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     plattner@sioux.ch
>Release:        1.3.12
>Organization:
apache
>Environment:
SuSe Linux, Kernel 2.2.13-SMP
>Description:
Hi

- I compiled apache 1.3.12 with "--enabled-shared=max", all other things are standard
- I played around with "apxs -g -n foo"

Now the funny thing:

If I recompile the mod_foo and install it again into the libexec directory, then
apache will crash (SIGSEV) when giving him a SIGHUP.

Stopping/Starting apache will work, but restarting crashes.

I think the sigsev occurs when unmapping the memory of the modified mod_foo.


Normal case: (restarting apache but mod_foo not modified:)

.
.
.
wait4(13513, [WIFEXITED(s) && WEXITSTATUS(s) == 0], WNOHANG, NULL) = 13513
wait4(13514, [WIFEXITED(s) && WEXITSTATUS(s) == 0], WNOHANG, NULL) = 13514
wait4(13515, [WIFEXITED(s) && WEXITSTATUS(s) == 0], WNOHANG, NULL) = 13515
wait4(13516, [WIFEXITED(s) && WEXITSTATUS(s) == 0], WNOHANG, NULL) = 13516
wait4(13517, [WIFEXITED(s) && WEXITSTATUS(s) == 0], WNOHANG, NULL) = 13517
time(NULL)                              = 970285324
write(15, "[Sat Sep 30 05:42:04 2000] [noti"..., 76) = 76
time(NULL)                              = 970285324
close(18)                               = 0
close(17)                               = 0
munmap(0x401a3000, 6384)                = 0   <-- THIS IS MOD_FOO
munmap(0x401a0000, 9712)                = 0
.
.
.


SIGSEV case: (recompiling mod_foo (without changing the source!!!),
then restarting apache)

.
.
.
wait4(13664, [WIFSIGNALED(s) && WTERMSIG(s) == SIGSEGV], WNOHANG, NULL) = 13664
wait4(13665, [WIFSIGNALED(s) && WTERMSIG(s) == SIGSEGV], WNOHANG, NULL) = 13665
wait4(13666, [WIFSIGNALED(s) && WTERMSIG(s) == SIGSEGV], WNOHANG, NULL) = 13666
wait4(13667, [WIFSIGNALED(s) && WTERMSIG(s) == SIGSEGV], WNOHANG, NULL) = 13667
wait4(13668, [WIFSIGNALED(s) && WTERMSIG(s) == SIGSEGV], WNOHANG, NULL) = 13668
time(NULL)                              = 970285444
write(15, "[Sat Sep 30 03:03:04 2000] [noti"..., 76) = 76
time(NULL)                              = 970285444
close(18)                               = 0
close(17)                               = 0
--- SIGSEGV (Segmentation fault) ---
chdir("/usr/local/www")                 = 0
rt_sigaction(SIGSEGV, {SIG_DFL}, {SIG_DFL}, 8) = 0
getpid()                                = 13512
--- SIGSEGV (Segmentation fault) ---    


I couldn't find anything about this issue in the dso documents.

Thanks, Christian


>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
 [In order for any reply to be added to the PR database, you need]
 [to include <apbugs@Apache.Org> in the Cc line and make sure the]
 [subject line starts with the report component and number, with ]
 [or without any 'Re:' prefixes (such as "general/1098:" or      ]
 ["Re: general/1098:").  If the subject doesn't match this       ]
 [pattern, your message will be misfiled and ignored.  The       ]
 ["apbugs" address is not added to the Cc line of messages from  ]
 [the database automatically because of the potential for mail   ]
 [loops.  If you do not include this Cc, your reply may be ig-   ]
 [nored unless you are responding to an explicit request from a  ]
 [developer.  Reply only with text; DO NOT SEND ATTACHMENTS!     ]
 
 


Mime
View raw message