Skip to content

capi: hyper_waker_wake() accepts NULL pointer only to die a horrible death later on #2620

Closed
@bagder

Description

@bagder

Version
0.14.11 built from commit 684f2fa

Platform
Linux

Description

I accidentally called hyper_waker_wake() with a NULL pointer argument. That leads to a subsequent segfault deep inside hyper at a later point which makes it difficult to debug. (25 stack frames in from my C code no less).

I expected to see this happen: in a debug-version of hyper maybe an assert should trigger. Or the NULL should just be ignored. It should not lead to a crash much later (when the executor poll is called).

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-ffiArea: ffi (C API)C-bugCategory: bug. Something is wrong. This is bad!E-easyEffort: easy. A task that would be a great starting point for a new contributor.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions