Just a quick update to my previous posting: It now appears that the same compile_regex PCRE error fires for mod_rewrite as well. So there is definitely some problem with my compile and PCRE, as more that one module is affected. Again, any help would be appreciated! Cheers! Ben Ben Davies | Lead Developer | Stickyeyes 6th Floor, West One, Wellington Street, Leeds, LS1 1BA Email: ben.davies@xxxxxxxxxxxxxx 0113 391 2929 | Fax 0113 391 2939 This e-mail may contain information that is privileged, confidential or otherwise protected from disclosure. It must not be used by, or its contents copied or disclosed to persons other than the intended recipient. Any liability (in negligence or otherwise) arising from any third party acting, or refraining from acting, on any information contained in this e-mail is excluded. The views expressed may not be official company policy, but instead, the personal views of the originator. If you have received this e-mail in error please notify the sender and delete the e-mail. -----Original Message----- From: Ben Davies [mailto:ben@xxxxxxxxxxxxxx] Sent: 23 May 2008 11:20 To: users@xxxxxxxxxxxxxxxx Subject: mod_setenvif SEGFAULT PCRE - OSX 10.4.11 Hi Everybody! I've been having some problems with a recent compile of Apache 2.2.8. I appears that when I use the SetEnvIf directive, Apache Seg Faults. It appears that the error occurs when SetEnvIf tries to compile the Regular Expression. This error only occurs if I use the SetEnvIf directive: comment it out and there is no problem (the LoadModule line does not trigger the segfault). Here is the configure line I used to compile Apache: CFLAGS="-arch i386" ./configure --prefix=/usr/local/apache2 --enable-layout=Apache --enable-mods-shared=all --enable-auth-digest --enable-rewrite --enable-dav --enable-dav-fs --enable-ext-filter I've only compiled Apache a couple of times in the past, and always on OSX, so I *think* I need to compile the latest version of PCRE (7.7) and somehow get mod_SetEnvIf to include that lib, but I don't know how :) Anyway, here is the httpd.crash.log. I would appreciate any help, directions or hunches anyone has, as the use of SetEnvIf is pretty vital to my project. Thank you! Ben ********** Host Name: ben-davies-computer Date/Time: 2008-05-23 11:12:07.863 +0100 OS Version: 10.4.11 (Build 8S2167) Report Version: 4 Command: httpd Path: /usr/local/apache2/bin/httpd Parent: sh [499] Version: ??? (???) PID: 500 Thread: 0 Exception: EXC_BAD_ACCESS (0x0001) Codes: KERN_INVALID_ADDRESS (0x0001) at 0xc0ffda9f Thread 0 Crashed: 0 httpd 0x0002d869 compile_regex + 2447 (pcre.c:2463) 1 httpd 0x0002ff10 pcre_compile + 696 (pcre.c:5511) 2 httpd 0x00007840 ap_regcomp + 65 (util_pcre.c:135) 3 httpd 0x000047a3 ap_pregcomp + 57 (util.c:268) 4 mod_setenvif.so 0x005617a5 add_setenvif_core + 1602 (mod_setenvif.c:176) 5 mod_setenvif.so 0x005618a2 add_setenvif + 104 (mod_setenvif.c:412) 6 httpd 0x000170d6 invoke_cmd + 273 (config.c:785) 7 httpd 0x0001804b ap_walk_config + 222 (config.c:1158) 8 httpd 0x0000dab7 dirsection + 383 (core.c:1866) 9 httpd 0x000170d6 invoke_cmd + 273 (config.c:785) 10 httpd 0x0001804b ap_walk_config + 222 (config.c:1158) 11 httpd 0x0000e671 virtualhost_section + 256 (core.c:2209) 12 httpd 0x000170d6 invoke_cmd + 273 (config.c:785) 13 httpd 0x0001804b ap_walk_config + 222 (config.c:1158) 14 httpd 0x00018fce ap_process_config_tree + 166 (config.c:1760) 15 httpd 0x000026d5 main + 1928 (main.c:634) 16 httpd 0x000019be _start + 228 (crt.c:272) 17 httpd 0x000018d9 start + 41 Thread 0 crashed with X86 Thread State (32-bit): eax: 0x00000000 ebx: 0x0002ceeb ecx: 0x01836418 edx: 0x00561f4d edi: 0xbfffed24 esi: 0x00ffed7c ebp: 0xbfffed88 esp: 0xbfffebf0 ss: 0x0000001f efl: 0x00010246 eip: 0x0002d869 cs: 0x00000017 ds: 0x0000001f es: 0x0000001f fs: 0x00000000 gs: 0x00000037 Binary Images Description: 0x1000 - 0x3dfff httpd /usr/local/apache2/bin/httpd 0x125000 - 0x133fff libaprutil-1.0.dylib /usr/local/apache2/lib/libaprutil-1.0.dylib 0x16d000 - 0x184fff libexpat.0.dylib /usr/local/apache2/lib/libexpat.0.dylib 0x1b8000 - 0x1b8fff mod_authn_file.so /usr/local/apache2/modules/mod_authn_file.so 0x1c0000 - 0x1c0fff mod_authn_dbm.so /usr/local/apache2/modules/mod_authn_dbm.so 0x1c8000 - 0x1c8fff mod_authn_anon.so /usr/local/apache2/modules/mod_authn_anon.so 0x1d0000 - 0x1d0fff mod_authn_dbd.so /usr/local/apache2/modules/mod_authn_dbd.so 0x1d8000 - 0x1d8fff mod_authn_default.so /usr/local/apache2/modules/mod_authn_default.so 0x1e0000 - 0x1e0fff mod_authz_host.so /usr/local/apache2/modules/mod_authz_host.so 0x1e9000 - 0x1e9fff mod_authz_groupfile.so /usr/local/apache2/modules/mod_authz_groupfile.so 0x1f2000 - 0x1f2fff mod_authz_user.so /usr/local/apache2/modules/mod_authz_user.so 0x305000 - 0x31cfff libapr-1.0.dylib /usr/local/apache2/lib/libapr-1.0.dylib 0x37d000 - 0x37dfff mod_authz_dbm.so /usr/local/apache2/modules/mod_authz_dbm.so 0x385000 - 0x385fff mod_authz_owner.so /usr/local/apache2/modules/mod_authz_owner.so 0x38d000 - 0x38dfff mod_authz_default.so /usr/local/apache2/modules/mod_authz_default.so 0x395000 - 0x395fff mod_auth_basic.so /usr/local/apache2/modules/mod_auth_basic.so 0x39e000 - 0x3a2fff mod_auth_digest.so /usr/local/apache2/modules/mod_auth_digest.so 0x3b0000 - 0x3b1fff mod_dbd.so /usr/local/apache2/modules/mod_dbd.so 0x3bc000 - 0x3bcfff mod_dumpio.so /usr/local/apache2/modules/mod_dumpio.so 0x3c5000 - 0x3c7fff mod_ext_filter.so /usr/local/apache2/modules/mod_ext_filter.so 0x3d3000 - 0x3dafff mod_include.so /usr/local/apache2/modules/mod_include.so 0x3ef000 - 0x3f0fff mod_filter.so /usr/local/apache2/modules/mod_filter.so 0x505000 - 0x506fff mod_substitute.so /usr/local/apache2/modules/mod_substitute.so 0x510000 - 0x513fff mod_deflate.so /usr/local/apache2/modules/mod_deflate.so 0x51f000 - 0x521fff mod_log_config.so /usr/local/apache2/modules/mod_log_config.so 0x530000 - 0x530fff mod_logio.so /usr/local/apache2/modules/mod_logio.so 0x539000 - 0x539fff mod_env.so /usr/local/apache2/modules/mod_env.so 0x541000 - 0x542fff mod_expires.so /usr/local/apache2/modules/mod_expires.so 0x54b000 - 0x54cfff mod_headers.so /usr/local/apache2/modules/mod_headers.so 0x557000 - 0x557fff mod_ident.so /usr/local/apache2/modules/mod_ident.so 0x560000 - 0x561fff mod_setenvif.so /usr/local/apache2/modules/mod_setenvif.so 0x56a000 - 0x56cfff mod_mime.so /usr/local/apache2/modules/mod_mime.so 0x577000 - 0x587fff mod_dav.so /usr/local/apache2/modules/mod_dav.so 0x5c3000 - 0x5c6fff mod_status.so /usr/local/apache2/modules/mod_status.so 0x5d0000 - 0x5d5fff mod_autoindex.so /usr/local/apache2/modules/mod_autoindex.so 0x5e4000 - 0x5e4fff mod_asis.so /usr/local/apache2/modules/mod_asis.so 0x5ec000 - 0x5eefff mod_info.so /usr/local/apache2/modules/mod_info.so 0x5f8000 - 0x5fbfff mod_cgi.so /usr/local/apache2/modules/mod_cgi.so 0x609000 - 0x610fff mod_dav_fs.so /usr/local/apache2/modules/mod_dav_fs.so 0x632000 - 0x633fff mod_vhost_alias.so /usr/local/apache2/modules/mod_vhost_alias.so 0x63c000 - 0x641fff mod_negotiation.so /usr/local/apache2/modules/mod_negotiation.so 0x652000 - 0x652fff mod_dir.so /usr/local/apache2/modules/mod_dir.so 0x65a000 - 0x65cfff mod_imagemap.so /usr/local/apache2/modules/mod_imagemap.so 0x666000 - 0x666fff mod_actions.so /usr/local/apache2/modules/mod_actions.so 0x66e000 - 0x66ffff mod_speling.so /usr/local/apache2/modules/mod_speling.so 0x678000 - 0x678fff mod_userdir.so /usr/local/apache2/modules/mod_userdir.so 0x680000 - 0x681fff mod_alias.so /usr/local/apache2/modules/mod_alias.so 0x68b000 - 0x696fff mod_rewrite.so /usr/local/apache2/modules/mod_rewrite.so 0x1008000 - 0x108ffff libmysqlclient.15.dylib /usr/local/mysql/lib/libmysqlclient.15.dylib 0x2008000 - 0x2555fff libphp5.so /usr/local/apache2/modules/libphp5.so 0x8fe00000 - 0x8fe4afff dyld 46.16 /usr/lib/dyld 0x90000000 - 0x90171fff libSystem.B.dylib /usr/lib/libSystem.B.dylib 0x901c1000 - 0x901c3fff libmathCommon.A.dylib /usr/lib/system/libmathCommon.A.dylib 0x9080b000 - 0x908d3fff com.apple.CoreFoundation 6.4.10 (368.33) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundatio n 0x90911000 - 0x90911fff com.apple.CoreServices 10.4 (???) /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices 0x90913000 - 0x90a07fff libicucore.A.dylib /usr/lib/libicucore.A.dylib 0x90a57000 - 0x90ad6fff libobjc.A.dylib /usr/lib/libobjc.A.dylib 0x90aff000 - 0x90b63fff libstdc++.6.dylib /usr/lib/libstdc++.6.dylib 0x90bd2000 - 0x90bd9fff libgcc_s.1.dylib /usr/lib/libgcc_s.1.dylib 0x90bde000 - 0x90c51fff com.apple.framework.IOKit 1.4.8 (???) /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit 0x90c66000 - 0x90c78fff libauto.dylib /usr/lib/libauto.dylib 0x90c7e000 - 0x90f24fff com.apple.CoreServices.CarbonCore 682.28 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Carb onCore.framework/Versions/A/CarbonCore 0x90f67000 - 0x90fcffff com.apple.CoreServices.OSServices 4.1 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSSe rvices.framework/Versions/A/OSServices 0x91008000 - 0x91047fff com.apple.CFNetwork 129.22 (129.23) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNe twork.framework/Versions/A/CFNetwork 0x9105a000 - 0x9106afff com.apple.WebServices 1.1.3 (1.1.0) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/WebS ervicesCore.framework/Versions/A/WebServicesCore 0x91075000 - 0x910f4fff com.apple.SearchKit 1.0.7 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Sear chKit.framework/Versions/A/SearchKit 0x9112e000 - 0x9114cfff com.apple.Metadata 10.4.4 (121.36) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Meta data.framework/Versions/A/Metadata 0x91158000 - 0x91166fff libz.1.dylib /usr/lib/libz.1.dylib 0x91169000 - 0x91308fff com.apple.security 4.5.2 (29774) /System/Library/Frameworks/Security.framework/Versions/A/Security 0x91406000 - 0x9140efff com.apple.DiskArbitration 2.1.2 /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitrat ion 0x91415000 - 0x9141cfff libbsm.dylib /usr/lib/libbsm.dylib 0x91420000 - 0x91446fff com.apple.SystemConfiguration 1.8.6 /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemCo nfiguration 0x91945000 - 0x919f7fff libcrypto.0.9.7.dylib /usr/lib/libcrypto.0.9.7.dylib 0x91be4000 - 0x91cc2fff libxml2.2.dylib /usr/lib/libxml2.2.dylib 0x9262a000 - 0x92717fff libiconv.2.dylib /usr/lib/libiconv.2.dylib 0x94066000 - 0x940a7fff libsqlite3.0.dylib /usr/lib/libsqlite3.0.dylib 0x949a8000 - 0x949d1fff com.apple.LDAPFramework 1.4.2 (69.1.1) /System/Library/Frameworks/LDAP.framework/Versions/A/LDAP 0x949d7000 - 0x949e6fff libsasl2.2.dylib /usr/lib/libsasl2.2.dylib 0x949ea000 - 0x94a0ffff libssl.0.9.7.dylib /usr/lib/libssl.0.9.7.dylib 0x94a1b000 - 0x94a38fff libresolv.9.dylib /usr/lib/libresolv.9.dylib 0x94be4000 - 0x94cbcfff edu.mit.Kerberos 5.5.26 /System/Library/Frameworks/Kerberos.framework/Versions/A/Kerberos 0x94d39000 - 0x94d64fff libcurl.3.dylib /usr/lib/libcurl.3.dylib 0x95f8c000 - 0x95f96fff libexslt.0.dylib /usr/lib/libexslt.0.dylib 0x95f99000 - 0x95fbcfff libxslt.1.dylib /usr/lib/libxslt.1.dylib Ben Davies | Lead Developer | Stickyeyes 6th Floor, West One, Wellington Street, Leeds, LS1 1BA Email: ben.davies@xxxxxxxxxxxxxx 0113 391 2929 | Fax 0113 391 2939 This e-mail may contain information that is privileged, confidential or otherwise protected from disclosure. It must not be used by, or its contents copied or disclosed to persons other than the intended recipient. Any liability (in negligence or otherwise) arising from any third party acting, or refraining from acting, on any information contained in this e-mail is excluded. The views expressed may not be official company policy, but instead, the personal views of the originator. If you have received this e-mail in error please notify the sender and delete the e-mail. --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx