You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2003/03/14 11:29:05 UTC

DO NOT REPLY [Bug 17991] New: - apr_thread_create hangs on Linux

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17991>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17991

apr_thread_create hangs on Linux

           Summary: apr_thread_create hangs on Linux
           Product: APR
           Version: HEAD
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: APR
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: bruno@mi4e.com


apr_thread_create call never returns. The thread is created and started. I get 
the same behaviour if I use pthread_create. 

void mod_my_child_init(apr_pool_t* pchild, server_rec* s)
{
	Configuration* config = (Configuration*) ap_get_module_config(s-
>module_config, &my_module);

	int status = apr_thread_create(&config->thread, NULL, 
(apr_thread_start_t) ApacheThread, NULL, pchild);
	if (OK != status)
	{
		ap_log_error(APLOG_MARK, APLOG_EMERG, status, s, "Failed to 
create apache thread");
		exit(APEXIT_CHILDFATAL);
	}
}

Apache version 2.0.44
Linux RedHat 8.0

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