Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Abort: malloc(): invalid size (unsorted) #214

Open
etoddallen opened this issue Apr 4, 2023 · 4 comments
Open

Abort: malloc(): invalid size (unsorted) #214

etoddallen opened this issue Apr 4, 2023 · 4 comments

Comments

@etoddallen
Copy link

The tool aborts with a malloc error on the attached HTML. The HTML originally was an actual email I received, but it contained some confidential information, so I had to edit it down to what I've attached. It originally was the result of many replies and replies-to-replies, etc., so it is heavily idented. Which I think is part of what's driving elinks crazy.

The original failure was with the RHEL9 elinks-0.16.0-3.el9.x86_64 package, but I confirmed that it also fails when built from git commit d9d5633.

Anyway, he actual failure is:

$ src/elinks -dump elinks-boom.html.txt
malloc(): invalid size (unsorted)
Abort(coredump)

elinks-boom.html.txt

@rkd77
Copy link
Owner

rkd77 commented Apr 5, 2023

Thanks for the report. Please check above commit.

@etoddallen
Copy link
Author

Thanks. It fixes the memory fault, so much better! Now I can see the recent replies in the email chain, including in the original.

I will point out that the problematic very-indented table is displayed strangely, with the table boundaries being out-dented, and many characters overwritten with > characters:

+-->>>>>>>>>>>>> ---------------------------------------------------------------
| >>>|>>>>>>>>> s,
| >>>|>>>>>>>>>
...

@rkd77
Copy link
Owner

rkd77 commented Apr 6, 2023

Sorry, I have no idea yet how to resolve it.

@etoddallen
Copy link
Author

OK. The malloc failure definitely was the Big Bad, and that's fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants