Skip to content

SIGSEGV in app.publish() / app.numSubscribers() without calling App.ws to define a WebSocketContext #1924

@jed

Description

@jed

I'm getting segfaults when I try to publish to a topic to which no subscription has been issued.

It's a pretty simple repro, basically boils down to (more descriptive repro attached).

import { App } from 'uWebSockets.js';
App().listen(8451, () => App().publish('never', 'hi'));  // exit 139

repro-uws-segfault.js

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions