Skip to content

curl_multi_wait in debug build calls infof(NULL,..) ? #2627

@dtzWill

Description

@dtzWill

Well, I assume "debug build" is what DEBUGF macro is for.

Anyway, just spotted this while debugging my application....

Look at:

curl/lib/multi.c

Line 1086 in 6d8c628

DEBUGF(infof(data, "Curl_poll(%u ds, %d ms) == %d\n",

(current master, and I think at least 7.60)

It's not hard to trace control-flow paths to this line from execution of while(data) { ... ; data = data->next; } loops. I was considering the situation where curl has no fds (curlfds) and there's extrafds-- but at a glance I think this can be triggered even when no extra fd's are used.

I haven't tried building things to force the issue, apologies if this can't happen, but thought I'd share "just in case".

If someone's enabled debugging the last thing they need is extra crashing behavior that doesn't occur otherwise :P.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions