Skip to content

Is LKL usage of setjmp correct? #266

@liuyuan10

Description

@liuyuan10

As far as I know, setjmp must be used inline so the the stack is still alive when long jmp happens. "And some esoteric tasks (generally requiring the use of assembly code, such as setjmp and certain kinds of locking) must be performed inline or they won't work right."

But the way we use setjmp in LKL is not inlined so I'm worried this may be cause of segment fault I observed (at very low frequency). I can't explain why it works though.

Also I don't find a way to inline the setjmp into LKL kernel code.

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