Skip to content

segment fault in 64bit-mode #87

@ghost

Description

Starting program: /home/fhr/CLionProjects/cb-multios/build64-gcc/challenges/Azurad/Azurad 

Program received signal SIGSEGV, Segmentation fault.
small_alloc_run (heap=<optimized out>) at /home/fhr/CLionProjects/cb-multios/challenges/Azurad/lib/malloc_common.c:224
224         hdr->hdr.prev_size = 0;

Hi,
In 64bit-mode, a lot of programs will crash with the segment fault at the start of the running. It's nearly all about cgc_memory function.
How to solve this problem?
My env:
OS: Ubuntu 20.04LTS
compiler : clang-7/ clang-10 / gcc-7 / gcc-9

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