Re: Why does a return statement generate an abort

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 19/06/2025 19:57, skidmarks wrote:
I did some more testing. The code aborts on
/usr/lib/gcc/x86_64-pc-cygwin/15/include/c++/bits/new_allocator.h:172 in
cygwin and fails on the statement:

          _GLIBCXX_OPERATOR_DELETE(_GLIBCXX_SIZED_DEALLOC(__p, __n));

The call to the function is: bool flag = runTest(out, "Test List Mark ");

You've got a bug somewhere else in your program. This bug corrupts memory such that the malloc() functions no longer work, so they abort. This bug could be anywhere in your program.

--
Andrew Haley  (he/him)
Java Platform Lead Engineer
Red Hat UK Ltd. <https://www.redhat.com>
https://keybase.io/andrewhaley
EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux