nginx/nginx · error

NGX_LOG_ALERT

NGX_LOG_ALERT

Error message

file buf in writev t:%d r:%d f:%d %p %p-%p %p %O-%O

What it means

Error "file buf in writev t:%d r:%d f:%d %p %p-%p %p %O-%O" thrown in nginx/nginx.

Source

Thrown at src/os/unix/ngx_writev_chain.c:63

    send = 0;

    vec.iovs = iovs;
    vec.nalloc = NGX_IOVS_PREALLOCATE;

    for ( ;; ) {
        prev_send = send;

        /* create the iovec and coalesce the neighbouring bufs */

        cl = ngx_output_chain_to_iovec(&vec, in, limit - send, c->log);

        if (cl == NGX_CHAIN_ERROR) {
            return NGX_CHAIN_ERROR;
        }

        if (cl && cl->buf->in_file) {
            ngx_log_error(NGX_LOG_ALERT, c->log, 0,
                          "file buf in writev "
                          "t:%d r:%d f:%d %p %p-%p %p %O-%O",
                          cl->buf->temporary,
                          cl->buf->recycled,
                          cl->buf->in_file,
                          cl->buf->start,
                          cl->buf->pos,
                          cl->buf->last,
                          cl->buf->file,
                          cl->buf->file_pos,
                          cl->buf->file_last);

            ngx_debug_point();

            return NGX_CHAIN_ERROR;
        }

        send += vec.size;

View on GitHub (pinned to 3f6f7824d4)

When it happens

Trigger: Thrown at src/os/unix/ngx_writev_chain.c:63 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/245a8c2ae756a52d. Report an issue: GitHub.