Package: apache2.2-common Version: 2.2.3-4 Severity: minor mod_ssl is causing unaligned traps on alpha (backtrace is below). Here's the offending section of code:
1153 shmcb_safe_clear(idx, sizeof(SHMCBIndex)); 1154 shmcb_set_safe_time(&(idx->expires), expiry_time); 1155 shmcb_set_safe_uint(&(idx->offset), new_offset); 1156 1157 /* idx->removed = (unsigned char)0; */ /* Not needed given the memset above. */ 1158 idx->s_id2 = session_id[1]; 1159 ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, s, 1160 "session_id[0]=%u, idx->s_id2=%u", 1161 session_id[0], session_id[1]); I'm pretty new to the alpha, but I'm guessing the access to session_id[1] is causing the trap, since session_id is an unsigned char * and idx->s_id2 seems to be aligned on a 4- or 8-byte boundary. I'm not sure of the best way to fix this. If there is anything I can do (patch testing, etc.), please let me know! Also, there seem to be a couple other less-frequent unaligned traps in apache2 that I'm also trying to track down. Should I append them to this bug, or is a separate one for each trap better? Thanks! #0 0x00000200017ffe54 in shmcb_insert_encoded_session (s=0x12023e428, queue=0x11fef8b00, cache=0x11fef8b20, encoded=0x11fef8b40 "0\201\221\002\001\001\002\002\003\001\004\002", encoded_len=148, session_id=0x1205e6b28 "\217\236�\234\210��߭u�\020����!w�6�taaй\024rU|G� ", expiry_time=1176822685) at /home/jwm/apache2-2.2.3/modules/ssl/ssl_scache_shmcb.c:1158 #1 0x00000200017fe8a0 in shmcb_store_session (s=0x12023e428, shm_segment=0x20003c94008, id=0x1205e6b28 "\217\236�\234\210��߭u�\020����!w�6�taaй\024rU|G� ", idlen=32, pSession=0x1205e6ae0, timeout=1176822685) at /home/jwm/apache2-2.2.3/modules/ssl/ssl_scache_shmcb.c:697 #2 0x00000200017fd68c in ssl_scache_shmcb_store (s=0x12023e428, id=0x1205e6b28 "\217\236�\234\210��߭u�\020����!w�6�taaй\024rU|G� ", idlen=32, timeout=1176822685, pSession=0x1205e6ae0) at /home/jwm/apache2-2.2.3/modules/ssl/ssl_scache_shmcb.c:411 #3 0x00000200017fb4e4 in ssl_scache_store (s=0x12023e428, id=0x1205e6b28 "\217\236�\234\210��߭u�\020����!w�6�taaй\024rU|G� ", idlen=32, expiry=1176822685, sess=0x1205e6ae0) at /home/jwm/apache2-2.2.3/modules/ssl/ssl_scache.c:99 #4 0x00000200017f0294 in ssl_callback_NewSessionCacheEntry (ssl=0x1205cbbe0, session=0x1205e6ae0) at /home/jwm/apache2-2.2.3/modules/ssl/ssl_engine_kernel.c:1638 #5 0x000002000080af98 in ssl_update_cache () from /usr/lib/libssl.so.0.9.8 #6 0x00000200007f0e20 in ssl3_accept () from /usr/lib/libssl.so.0.9.8 #7 0x000002000080a890 in SSL_accept () from /usr/lib/libssl.so.0.9.8 #8 0x00000200007fbb18 in ssl23_get_client_hello () from /usr/lib/libssl.so.0.9.8 #9 0x00000200007fc750 in ssl23_accept () from /usr/lib/libssl.so.0.9.8 #10 0x000002000080a890 in SSL_accept () from /usr/lib/libssl.so.0.9.8 #11 0x00000200017ea408 in ssl_io_filter_connect (filter_ctx=0x120506490) at /home/jwm/apache2-2.2.3/modules/ssl/ssl_engine_io.c:1047 #12 0x00000200017eaeac in ssl_io_filter_input (f=0x1205d1308, bb=0x1205c71c0, mode=AP_MODE_GETLINE, block=APR_BLOCK_READ, readbytes=0) at /home/jwm/apache2-2.2.3/modules/ssl/ssl_engine_io.c:1292 #13 0x000000012005bb98 in ap_get_brigade (next=0x1205d1308, bb=0x1205c71c0, mode=AP_MODE_GETLINE, block=APR_BLOCK_READ, readbytes=0) at /home/jwm/apache2-2.2.3/server/util_filter.c:489 #14 0x000000012002f458 in ap_rgetline_core (s=0x1205c5c78, n=8192, read=0x11fefb868, r=0x1205c5c48, fold=0, bb=0x1205c71c0) at /home/jwm/apache2-2.2.3/server/protocol.c:231 #15 0x000000012002ff0c in read_request_line (r=0x1205c5c48, bb=0x1205c71c0) at /home/jwm/apache2-2.2.3/server/protocol.c:596 #16 0x0000000120030e04 in ap_read_request (conn=0x120505b88) at /home/jwm/apache2-2.2.3/server/protocol.c:891 #17 0x0000000120061468 in ap_process_http_connection (c=0x120505b88) at /home/jwm/apache2-2.2.3/modules/http/http_core.c:177 #18 0x0000000120055918 in ap_run_process_connection (c=0x120505b88) at /home/jwm/apache2-2.2.3/server/connection.c:43 #19 0x0000000120055fa8 in ap_process_connection (c=0x120505b88, csd=0x120505998) at /home/jwm/apache2-2.2.3/server/connection.c:178 #20 0x000000012006d894 in child_main (child_num_arg=0) at /home/jwm/apache2-2.2.3/server/mpm/prefork/prefork.c:640 #21 0x000000012006db58 in make_child (s=0x1200a6970, slot=0) at /home/jwm/apache2-2.2.3/server/mpm/prefork/prefork.c:736 #22 0x000000012006dc00 in startup_children (number_to_start=5) at /home/jwm/apache2-2.2.3/server/mpm/prefork/prefork.c:754 #23 0x000000012006e2dc in ap_mpm_run (_pconf=0x1200a0208, plog=0x1200d43a8, s=0x1200a6970) at /home/jwm/apache2-2.2.3/server/mpm/prefork/prefork.c:975 #24 0x0000000120022e28 in main (argc=3, argv=0x11fefbcb8) at /home/jwm/apache2-2.2.3/server/main.c:717 -- System Information: Debian Release: 4.0 APT prefers testing APT policy: (500, 'testing'), (500, 'stable') Architecture: alpha Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.18-4-alpha-smp Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Versions of packages apache2.2-common depends on: ii apache2-utils 2.2.3-4 utility programs for webservers ii libmagic1 4.17-5etch1 File type determination library us ii lsb-base 3.1-23.1 Linux Standard Base 3.1 init scrip ii mime-support 3.39-1 MIME files 'mime.types' & 'mailcap ii net-tools 1.60-17 The NET-3 networking toolkit ii procps 1:3.2.7-3 /proc file system utilities apache2.2-common recommends no packages. -- no debconf information