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 42101] New: - SSL SHM cache dies with bus errors on sparc when compiled with Sun CC
Date Thu, 12 Apr 2007 15:21:15 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42101>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42101

           Summary: SSL SHM cache dies with bus errors on sparc when
                    compiled with Sun CC
           Product: Apache httpd-2
           Version: 2.2.4
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_ssl
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: alex.kiernan@gmail.com


Using Sun CC (Sun C 5.8 Patch 121015-04 2007/01/10) using these options:

-fast -g -xs -v -xstrconst -xtarget=ultra3 -xarch=v8plusa

At line 1221 of ssl_scache_shmcb.c in Apache 2.2.24 we get a bus error. The 
problem is that given this struct:

typedef struct {
    time_t expires;
    unsigned int offset;
    unsigned char s_id2;
    unsigned char removed;
} SHMCBIndex;

Which is stored in shared memory at offset 0xfe42afba (the idx variable)

For the code:

(idx->s_id2 == id[1]) && !idx->removed

the compiler generates

ld       [%l2 + 8], %o0

(i.e. add 8 to %l2, dereference it and store the result in %o0)

in order to retrieve s_id2 and removed in one operation, only %l2 isn't 
naturally aligned so you get a bus error.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


Mime
View raw message