Skip to content

signal SIGBUS: hardware error #16375

Open
@BarrOff

Description

@BarrOff

I use Nim to implement a small game, the code and compilation instructions can be found here.

The game can be compiled with nim versions 1.0.x without issues and the game works (as far as currently implemented).

To compile using nim > 1.0 this patch has to be applied when compiling nim, because of this issue.
Using those versions, the game reproducibly crashes, whereas it works for Nim 1.0.x

Using the lldb debugger I could see that the game crashes when calling alloc0, producing the title message.

Example

For code and installation instructions, see here.

How to reproduce

When starting the game there is first a little info screen.
Simply pressing any button leads to the starting screen.
Pressing any button again should start the first level, but crashes.

Current Output

signal SIGBUS: hardware error

Additional Information

compiler versions tested: 1.0.10, 1.0.11, 1.2.6, 1.4.2, devel
operating systems: Windows 10, Linux, FreeBSD
c-compilers: gcc-10.2.0, gcc-9.3.0, gcc-8.3.0, clang-10.0.1, clang-11.0.0

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