httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aaron Bannert <aa...@clove.org>
Subject PR 9785, SIGBUS with ExtendedStatus in scoreboard.c
Date Sat, 23 Feb 2002 02:04:46 GMT
Could this be what's causing the SIGBUS? My current theory is that
there's a size mismatch betwen ws->conn_bytes (an apr_off_t) and
the (unsigned long) that only shows up on word-alignment-picky
chips like sparcs.

Billy, does this solve the problem for you?

-aaron


Index: server/scoreboard.c
===================================================================
RCS file: /home/cvs/httpd-2.0/server/scoreboard.c,v
retrieving revision 1.58
diff -u -u -r1.58 scoreboard.c
--- server/scoreboard.c	21 Feb 2002 01:30:06 -0000	1.58
+++ server/scoreboard.c	23 Feb 2002 01:56:34 -0000
@@ -443,8 +443,8 @@
                 ws->my_access_count = 0L;
                 ws->my_bytes_served = 0L;
             }
-            ws->conn_count = (unsigned short)0;
-            ws->conn_bytes = (unsigned long)0;
+            ws->conn_count = 0;
+            ws->conn_bytes = 0;
         }
         if (r) {
             conn_rec *c = r->connection;

Mime
View raw message