confluentinc / librdkafka

The Apache Kafka C/C++ library
Other
268 stars 3.15k forks source link

windows - crash in stats #517

Closed harishmk closed 8 years ago

harishmk commented 8 years ago
    ucrtbase.dll!__crt_debugger_hook() Unknown
    ucrtbase.dll!__acrt_call_reportfault() Unknown
    ucrtbase.dll!_invoke_watson()  Unknown
    ucrtbase.dll!_invalid_parameter()  Unknown
    ucrtbase.dll!_invalid_parameter_noinfo()   Unknown
    ucrtbase.dll!__stdio_common_vsprintf_s()    Unknown
    librdkafka.dll!sprintf_s(char * const _Buffer, const unsigned __int64 _BufferCount, const char * const _Format, ...) Line 1838  C
>   librdkafka.dll!rd_kafka_stats_emit_toppar(char * * bufp, unsigned __int64 * sizep, int * ofp, rd_kafka_toppar_s * rktp, int first) Line 602 C
    librdkafka.dll!rd_kafka_stats_emit_all(rd_kafka_s * rk) Line 807    C
    librdkafka.dll!rd_kafka_timers_run(rd_kafka_timers_s * rkts, int) Line 224  C
    librdkafka.dll!rd_kafka_thread_main(void * arg) Line 923    C
    librdkafka.dll!_thrd_wrapper_function(void * aArg) Line 602 C
    [External Code] 

some of the local vars from rd_kafka_stats_emit_toppar

buf == *bufp
size == *sizep == 10240
of == *ofp == 9868
edenhill commented 8 years ago

What version is this? A similar issue with the non-conformant win32 _snprintf implementation was fixed a week ago or so.

harishmk commented 8 years ago

will try with latest.

edenhill commented 8 years ago

let me know if that fixes it.