This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] malloc: Abort on heap corruption, without a backtrace [BZ #21754]


Thanks, I like the overall change too. One quibble:

+  __libc_message (do_abort, "Fatal glibc error in malloc: %s\n", str);

This change to the message wording won't work well, as the user will see redundant text like "Fatal glibc error in malloc: malloc(): memory corruption (fast)". Also, the wording "glibc error" suggests that there must be a fault in glibc, whereas it's more likely that the fault is in the application. I suggest changing the above line to:

  __libc_message (do_abort, "%s\n", str);

This is simpler, and this way glibc will keep using the same wording that it's been using for a while.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]