Skip to content

Needed attributes should be required at compile-time #101

Open

Description

@wilzbach

... by using an appropriate constructor ;-)

I just had the unpleasant experience of debugging this segfault:

Program received signal SIGSEGV, Segmentation fault.
0x00000000005b118c in dparse.rollback_allocator.RollbackAllocator.allocate(const(ulong)) (this=..., size=72)
    at ../../../.dub/packages/libdparse-master/libdparse/src/dparse/rollback_allocator.d:30
30          if (first is null)

The reason is that the allocator variable in Parser is not set, an error which could be checked easily with a constructor ;-)

Activity

  1. added this to the v1.0.0 milestone on May 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions