httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Randy Terbush <ra...@zyzzyva.com>
Subject Re: [PATCH] memsetting sigaction
Date Fri, 24 Jan 1997 16:49:29 GMT
I would vote to include this. This could be more of a compiler
issue. I see nothing about this minor change that should cause
a problem.


>   This message is in MIME format.  The first part should be readable text,
>   while the remaining parts are likely unreadable without MIME-aware tools.
>   Send mail to mime@docserver.cac.washington.edu for more info.
> 
> ---559023410-341603450-854095851=:3883
> Content-Type: TEXT/PLAIN; charset=US-ASCII
> 
> 
> mgyger@itr.ch:
> > Some members of struct sigaction are not initialized, causing an error
> > return status of sigaction.
> 
> 
> Adrian Filipi-Martin <adrian@virginia.edu> writes:
> When starting httpd or restarting it with a SIGHUP, the following is logged 
> to the error_log:
> 
> [Wed Jan  8 14:21:03 1997] created shared memory segment #4206
> [Wed Jan  8 14:21:03 1997] sigaction(SIGSEGV): Invalid argument
> [Wed Jan  8 14:21:03 1997] sigaction(SIGBUS): Invalid argument
> [Wed Jan  8 14:21:03 1997] Server configured -- resuming normal operations
> 
> (Note that the shared memory segment message is only present when the daemon
> is send a SIGHUP signal to restart it.)
> 
> These error messages do not appear to have any real effect upon the operation
> of the server.  I expect they would not matter until it has either a bus or 
> a segment fault.
> 
> In any case, I looked at the source with gdb and the fact that a sigaction 
> structure is not initialized completely in http_main.c seems to be the culprit.
> In any case a small patch is included below that does the required clearing of
> the sigaction structure and fixes the problem.
> >How-To-Repeat:
> Either start the server or restart it with a SIGHUP.  Then hope that you 
> do not get lucky and have the aforementioned sigaction structure placed in a 
> block of zeroed out memory.
> >Fix:
> I suspect that invalid arguments are being passed to the sigaction() functions.
> 
> 
> 
> --=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--
> brian@organic.com  www.apache.org  hyperreal.com  http://www.organic.com/JOBS
> 
> ---559023410-341603450-854095851=:3883
> Content-Type: TEXT/PLAIN; charset=US-ASCII; name=sigactionpatch
> Content-Transfer-Encoding: BASE64
> Content-ID: <Pine.GSO.3.95.970124005051.3883N@eat.organic.com>
> Content-Description: 
> 
> SW5kZXg6IGh0dHBfbWFpbi5jDQo9PT09PT09PT09PT09PT09PT09PT09PT09
> PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09DQpS
> Q1MgZmlsZTogL2V4cG9ydC9ob21lL2N2cy9hcGFjaGUvc3JjL2h0dHBfbWFp
> bi5jLHYNCnJldHJpZXZpbmcgcmV2aXNpb24gMS4xMDkNCmRpZmYgLUMzIC1y
> MS4xMDkgaHR0cF9tYWluLmMNCioqKiBodHRwX21haW4uYwkxOTk3LzAxLzI0
> IDAyOjQ5OjU3CTEuMTA5DQotLS0gaHR0cF9tYWluLmMJMTk5Ny8wMS8yNCAw
> ODo0NjowNA0KKioqKioqKioqKioqKioqDQoqKiogMTMwMywxMzA4ICoqKioN
> Ci0tLSAxMzAzLDEzMDkgLS0tLQ0KICB7DQogICNpZm5kZWYgTk9fVVNFX1NJ
> R0FDVElPTg0KICAgICAgc3RydWN0IHNpZ2FjdGlvbiBzYTsNCisgICAgIG1l
> bXNldCgmc2EsMCxzaXplb2Ygc2EpOw0KICANCiAgICAgIGlmICghb25lX3By
> b2Nlc3MpIHsNCiAgCXNhLnNhX2hhbmRsZXIgPSAodm9pZCAoKikoKSlzZWdf
> ZmF1bHQ7DQoqKioqKioqKioqKioqKioNCioqKiAxMzE0LDEzMjAgKioqKg0K
> ICAgICAgfQ0KICAgICAgLyogVVNFIFdJVEggRVhUUkVNRSBDQVVUSU9OLiBH
> cmFjZWZ1bCByZXN0YXJ0cyBhcmUga25vd24gdG8gYnJlYWsgKi8NCiAgICAg
> IC8qICBwcm9ibGVtcyB3aWxsIGJlIGRlYWx0IHdpdGggaW4gYSBmdXR1cmUg
> cmVsZWFzZSAqLw0KLSAgICAgbWVtc2V0KCZzYSwwLHNpemVvZiBzYSk7DQog
> ICAgICBzYS5zYV9oYW5kbGVyPSh2b2lkICgqKSgpKXNpZ190ZXJtOw0KICAg
> ICAgaWYoc2lnYWN0aW9uKFNJR1RFUk0sJnNhLE5VTEwpIDwgMCkNCiAgCWxv
> Z191bml4ZXJyKCJzaWdhY3Rpb24oU0lHVEVSTSkiLCBOVUxMLCBOVUxMLCBz
> ZXJ2ZXJfY29uZik7DQotLS0gMTMxNSwxMzIwIC0tLS0NCg==
> ---559023410-341603450-854095851=:3883--




Mime
View raw message