https://issues.apache.org/bugzilla/show_bug.cgi?id=48787
Summary: Event MPM segfaults when trying to start or
configcheck
Product: Apache httpd-2
Version: 2.3-HEAD
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Event MPM
AssignedTo: [email protected]
ReportedBy: [email protected]
I configured event mpm like so:
ServerRoot "/opt/bw"
Mutex default:logs
Listen 80
LoadModule unixd_module modules/mod_unixd.so
LoadModule serf_module modules/mod_serf.so
LoadModule mpm_event_module modules/mod_mpm_event.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule authz_core_module modules/mod_authz_core.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule mime_module modules/mod_mime.so
LoadModule filter_module modules/mod_filter.so
LoadModule env_module modules/mod_env.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule dir_module modules/mod_dir.so
LoadModule status_module modules/mod_status.so
LoadModule info_module modules/mod_info.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule alias_module modules/mod_alias.so
LoadModule lua_module modules/mod_lua.so
User i.galic
Group wheel
DocumentRoot "/opt/bw/htdocs"
<Directory />
Options FollowSymLinks
AllowOverride None
Require all denied
</Directory>
DirectoryIndex index.html
<FilesMatch "^\.ht">
Require all denied
</FilesMatch>
Include etc/httpd/extra/log.conf
ErrorLog "logs/error_log"
CustomLog "logs/access_log" combined-vhosts
TypesConfig etc/httpd/mime.types
MIMEMagicFile etc/httpd/magic
Include etc/httpd/extra/httpd-mpm.conf
Include etc/httpd/extra/httpd-multilang-errordoc.conf
Include etc/httpd/extra/httpd-autoindex.conf
Include etc/httpd/extra/httpd-languages.conf
Include etc/httpd/extra/httpd-vhosts.conf
Include etc/httpd/extra/httpd-default.conf
The important part here is ``Mutex default:logs''. When trying to start, the
server get's a segmentation fault:
(gdb) bt
#0 0x00007f23b9e279aa in find_entry (ht=0x0, key=0x465960, klen=-1, val=0x0)
at tables/apr_hash.c:260
#1 0x00007f23b9e27ce4 in apr_hash_get (ht=0x0, key=0x465960, klen=-1) at
tables/apr_hash.c:330
#2 0x0000000000450979 in ap_set_mutex (cmd=0x7fff2900f450, dummy=0x1c2f838,
arg=0x1c344ac "") at util_mutex.c:230
#3 0x0000000000445d6c in invoke_cmd (cmd=0x671d68, parms=0x7fff2900f450,
mconfig=0x1c2f838, args=0x1c344a0 "default:logs")
at config.c:767
#4 0x00000000004471fb in ap_walk_config_sub (current=0x1c34460,
parms=0x7fff2900f450, section_vector=0x1c2f420)
at config.c:1173
#5 0x00000000004472b0 in ap_walk_config (current=0x1c34460,
parms=0x7fff2900f450, section_vector=0x1c2f420) at config.c:1206
#6 0x000000000044880c in ap_process_config_tree (s=0x1c05dc0,
conftree=0x1c34460, p=0x1bfe138, ptemp=0x1c2c328)
at config.c:1813
#7 0x0000000000426968 in main (argc=3, argv=0x7fff2900f688) at main.c:630
(gdb)
it fails because in server/util_mutex.c ``mxcfg_by_type'' is not set.
It only fails for event mpm, because so far ``ap_mutex_register()'' not been
called.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]