Skip to content

MSVC crash with '-DMEMDEBUG_LOG_SYNC' #828

Description

@gvanem

Building libcurl with -DCURLDEBUG and -DMEMDEBUG_LOG_SYNC for me causes crash in lib/memdebug.c inside curl_memdebug():

    setvbuf(logfile, (char *)NULL, _IOLBF, 0);

I.e. Dr. Watson triggers a run-time check followed by a crash. But this seems to work as intended:

    setvbuf(logfile, (char *)NULL, _IONBF, 0);

Anybody who can confirm this?

This seems to be the same as this Stackoverflow issue. I'm using MSVC-2015 (cl 19.00.23506 for x86) on Win-10.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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