| Summary: | f951: internal compiler error: segmentation fault. Executable binary generated without -fsanitize=address flag, crashes with "malloc(): invalid next size (unsorted)" | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | Adelson Oliveira <adelson.oliveira> |
| Component: | RPM Packages | Assignee: | Base system maintainers <basesystem> |
| Status: | RESOLVED INVALID | QA Contact: | |
| Severity: | normal | ||
| Priority: | Normal | CC: | kernel, marja11 |
| Version: | 7 | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Source RPM: | glibc (+gcc+kernel) | CVE: | |
| Status comment: | |||
|
Description
Adelson Oliveira
2019-05-16 03:59:42 CEST
Correcting for the bug report, the "internal compiler error" which motivated this report was my mistake. However, there is, in my opinion, something strange with the packages glibc, gcc, and/or kernel since executable binaries generated with/without -fsanitize=address flag does/does not run. Now, I've corrected for all memory leaks and saw no message on array bounds trespassed but still, without the sanitize flag, the program crash with the message, malloc(): invalid next size (unsorted)
Marja Van Waes
2019-05-18 13:35:37 CEST
CC:
(none) =>
kernel, marja11 I've found the culprit for both problems. Both points to misleading error messages on real programming code problems. I mean, I did the following mistakes: 1- Tried to handle a component of an allocatable fortran type (structure) without proper reference to the structure index itself; Other fortran compilers do issue clear error messages to the programmer but gfortran got a "internal compiler error"; 2- Tried to copy an array a1 to an array a2 with instruction a1=a2 with different sizes of a1 and a2. Other fortran compilers produce executable binaries that do issue clear runtime error messages to the programmer on "unconformable arrays" but gfortran (glibc 2.29) generated a code that crashes with "malloc(): invalid next size(unsorted)" messages. In summary, this has nothing to do with mageia itself. These are bugs to be reported to gcc.gnu.org. As soon as I have a small set of fortran lines that reproduce this error, I'll report to GNU. I would like to close this bug. Thanks and I'm sorry to report this bug here. You could have closed it, but doing so now. Resolution:
(none) =>
INVALID |