httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 12072] New: - Apache hangs when run with ssl-support on 64bit Linux for zSeries
Date Tue, 27 Aug 2002 09:41:50 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12072>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12072

Apache hangs when run with ssl-support on 64bit Linux for zSeries

           Summary: Apache hangs when run with ssl-support on 64bit Linux
                    for zSeries
           Product: Apache httpd-1.3
           Version: 1.3.26
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: core
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: winterling@de.ibm.com


Platform: Linux for zSeries (Linux for IBM mainframes)
We want to run under Linux for zSeries apache with ssl-support:
1) We run on 31bit Linux apache 1.3.26 with mod_ssl_2.8.10-1.3.26 and openssl-
0.9.6g. This works fine with SW-ssl support
2) We run the same now with openssl-engine-0.9.6g. This works fine with HW-
engine ssl support.
3) We run now on 64bit apache 1.3.26 with mod_ssl-1.3.26 and openssl-0.9.6g. 
Now we found following: 
           a) apache started without ssl support >> no problem. 
           b) apache started with ssl support >> problem that apache hang
4) we run on 64bit now with HW-engine ssl support >> same problem as 3).

What we see and found when the problem appeared:
1. When apache hang. You can see that TCP/IP has established the http or https 
connections, but the browser gets nothing back. If you send a get request 
nothing happens.
2. In the apache and ssl logs nothing was found
3. we run strace on single http daemon and found that apache did not get a 
semaphore he requested. So he can not read (accept) the socket data. During 
further debugging we could localize the problem in http_main.c. 
4. A developer here found the problem in the code.
Here is the solution he provided us:

Error is caused because of the wrong definition of the semun union in the 
Apache sources. The member val has to be an int not a long. The diff below will 
fix the problem...

diff -urN apache_1.3.26/src/main/http_main.c apache_1.3.26-semun-
fix/src/main/http_main.c
--- apache_1.3.26/src/main/http_main.c  Wed Jun  5 06:53:15 2002
+++ apache_1.3.26-semun-fix/src/main/http_main.c        Fri Aug 23 14:27:19 2002
@@ -747,7 +747,7 @@
 #ifdef NEED_UNION_SEMUN
 /* it makes no sense, but this isn't defined on solaris */
 union semun {
-    long val;
+    int val;
     struct semid_ds *buf;
     ushort *array;
 };

We used this temporary fix and the problem was gone. We can use now apache 
under 64bit with ssl-support (SW and HW-engine).

Can this fix be integrated into apache?

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message