im trying to write a program in C, when I run it it says
a.out: malloc.c:2617: sysmalloc: Assertion `(old_top == initial_top (av) && old_size == 0) || ((unsigned long) (old_size) >= MINSIZE && prev_inuse (old_top) && ((unsigned long) old_end & (pagesize - 1)) == 0)' failed.
I don't understead what this means, but when I tried to debug I coudn't even place a breakpoint because apprantly "Module containing this breakpoint has not yet loaded or the breakpoint address could not be obtained."
I have no idea what to do with that, and would very much apreciate any help.
It means that your code invokes Undefined Behaviour most likely dereferencing wild or dangling pointers or writing outside arrays (or allocated memory). This error shows that the memory allocation system has detected a problem.
do not even try to debug standard library functions. They work well, but your code does not. The source of this problem is your program, not the standard library functions.
Unfortunately, you did not post your code, so I cant say what is wrong there.