Re: Bug report: #0 file_dup (new_file=0xbfd296d4, old_file=0x0, p=0x80a70a8, which_dup=1) at file_io/unix/filedup.c:59 segfault

"A. Przygienda" <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Organization zeta2.ch
Message-ID <[email protected]>
After experimenting around, the reason is the global directive
I use (perfectly valid)

ErrorLog syslog:local6

that crashes

#ifdef MP_TRACE
    /* httpd core open_logs handler re-opens s->error_log, which might
     * change, even though it still points to the same physical file
     * (.e.g on win32 the filehandle will be different. Therefore
     * reset the tracing logfile setting here, since this is the
     * earliest place, happening after the open_logs phase.
     *
     * Moreover, we need to dup the filehandle so that when the server
     * shuts down, we will be able to log to error_log after Apache
     * has closed it (which happens too early for our likening).
     */
    {
        apr_file_t *dup;
        MP_RUN_CROAK(apr_file_dup(&dup, s->error_log, pconf),
                     "mod_perl core post_config");
        modperl_trace_logfile_set(dup);
    }
#endif


since s->error_log is NULL

not sure how to fix that one though

	-- tony



On 05/05/2011 03:58 PM, A. Przygienda wrote:
> Same problem on 2.0.5 and gentoo 2010
> 
> That's how I run it
> 
> r -D SSL -D SSL_DEFAULT_VHOST -D DEFAULT_VHOST -D INFO -D DAV -D DAV_FS
> -D CACHE -D MEM_CACHE -D PHP5 -D PERL_VHOST -D PYTHON -D STATUS -D PROXY
> -D PROXY_HTML -d /usr/lib/apache2 -f /etc/apache2/httpd.conf -E
> /var/log/apache2/startuperror.log -k start
> 
> 
>  core_module (static)
>  mpm_itk_module (static)
>  http_module (static)
>  so_module (static)
>  actions_module (shared)
>  alias_module (shared)
>  auth_basic_module (shared)
>  authn_alias_module (shared)
>  authn_anon_module (shared)
>  authn_dbm_module (shared)
>  authn_default_module (shared)
>  authn_file_module (shared)
>  authz_dbm_module (shared)
>  authz_default_module (shared)
>  authz_groupfile_module (shared)
>  authz_host_module (shared)
>  authz_owner_module (shared)
>  authz_user_module (shared)
>  autoindex_module (shared)
>  cache_module (shared)
>  cgi_module (shared)
>  cgid_module (shared)
>  dav_module (shared)
>  dav_fs_module (shared)
>  dav_lock_module (shared)
>  deflate_module (shared)
>  dir_module (shared)
>  disk_cache_module (shared)
>  env_module (shared)
>  expires_module (shared)
>  ext_filter_module (shared)
>  file_cache_module (shared)
>  filter_module (shared)
>  headers_module (shared)
>  include_module (shared)
>  info_module (shared)
>  log_config_module (shared)
>  logio_module (shared)
>  mem_cache_module (shared)
>  mime_module (shared)
>  mime_magic_module (shared)
>  negotiation_module (shared)
>  proxy_module (shared)
>  proxy_connect_module (shared)
>  proxy_http_module (shared)
>  rewrite_module (shared)
>  setenvif_module (shared)
>  speling_module (shared)
>  ssl_module (shared)
>  status_module (shared)
>  unique_id_module (shared)
>  usertrack_module (shared)
>  vhost_alias_module (shared)
>  proxy_html_module (shared)
>  php5_module (shared)
>  python_module (shared)
>  perl_module (shared)
>
prz.vcf (text/x-vcard, 271 B)
begin:vcard
fn:A. Przygienda
n:Przygienda;A.
org:Zeta2 GmbH
adr:;;Via Tersaggio 20;Comano;;6949;Switzerland
email;internet:[email protected]
title:Dr.
tel;work:+41919402767
tel;fax:+41919402768
tel;cell:+41792985900
x-mozilla-html:TRUE
url:www.zeta2.ch
version:2.1
end:vcard
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.