nginx/nginx · error

NGX_LOG_ALERT

NGX_LOG_ALERT

Error message

CreateThread() failed

What it means

Error "CreateThread() failed" thrown in nginx/nginx.

Source

Thrown at src/os/win32/ngx_thread.c:28


ngx_err_t
ngx_create_thread(ngx_tid_t *tid,
    ngx_thread_value_t (__stdcall *func)(void *arg), void *arg, ngx_log_t *log)
{
    u_long     id;
    ngx_err_t  err;

    *tid = CreateThread(NULL, 0, func, arg, 0, &id);

    if (*tid != NULL) {
        ngx_log_error(NGX_LOG_NOTICE, log, 0,
                      "create thread " NGX_TID_T_FMT, id);
        return 0;
    }

    err = ngx_errno;
    ngx_log_error(NGX_LOG_ALERT, log, err, "CreateThread() failed");
    return err;
}

View on GitHub (pinned to 3f6f7824d4)

When it happens

Trigger: Thrown at src/os/win32/ngx_thread.c:28 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of nginx/nginx@3f6f7824d4 (2026-08-22). Data as JSON: /api/errors/d42eeed8db516de4. Report an issue: GitHub.