Skip to content

Segmentation fault on some of the asm-x64 examples #941

Closed
@ShadowMitia

Description

@ShadowMitia

Bug Report

Description

All of the asm-x64 examples seem to compile fine, at least with the scons system. But running gives segmentation faults on my machine.
The only ones that work for me:

  • cooley_tukey
  • monte_carlo_integration
  • verlet_integration

All others have segmentation faults. Running valgrind seems to show it comes from printf, most likely a formatting issue of some sort.

Steps to Reproduce

Clone the repositoy, and then run scons -iQ. Then you can run the individual executables in build/asm-x64 and some of them will work and others won't.

Expected behavior

All examples should run and output something and not seg fault.

Environment

  • OS: Pop!_OS 21.10 x86_64
  • Kernel: 5.15.2-76051502-generic
  • CPU: AMD Ryzen 9 3900 (24) @ 3.100GHz

Additional context

See #940 for more possible details and where the issue was detected.

For Algorithm Archive Developers

  • The bug can be reproduced
  • The bug can be fixed (if not, please explain why not in a comment below)
  • There is a timeline to fix the bug
  • The bug has been fixed (Please link the PR)

Metadata

Metadata

Assignees

No one assigned

    Labels

    ProblemThis is a problem in the archive or an implementation.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions