Skip to content

Internal malloc buggy? #1

Description

@codesmythe

I can trigger a bus error using glam with these steps

% gunew
% more pure_c\include\stdio.h

(The file to look at can be anything.)

Then, immediately exit the ue buffer with Control-X Control-C. I get a bus error when doing this (see attached). I chased this down a little bit and found that in this sequence there is a bad 'p->next' pointer in tv.c:tblfind().

I didn't chase it all the way, but when I disable the internal PMMALLOC code and use the mintlib malloc instead, this error goes away.

I also sometimes see "free(nnnnnn) has illegal arg" when using the internal malloc, but don't when using the system malloc.

Should using the system malloc be the default?

Thanks,

Rob

GulamBusErrorHatari

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions