This is an archive of the discontinued LLVM Phabricator instance.

[asan] Reify ErrorNewDeleteSizeMismatch
ClosedPublic

Authored by filcab on Aug 25 2016, 7:38 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

filcab updated this revision to Diff 69245.Aug 25 2016, 7:38 AM
filcab retitled this revision from to Reify ErrorNewDeleteSizeMismatch.
filcab updated this object.
filcab added reviewers: kcc, samsonov.
filcab added a subscriber: llvm-commits.
filcab updated this revision to Diff 69810.Aug 31 2016, 1:26 AM

Updating with current tree.

filcab updated this revision to Diff 69811.Aug 31 2016, 1:29 AM

Minimizing commit

filcab edited reviewers, added: eugenis, vitalybuka; removed: samsonov.Aug 31 2016, 1:32 AM
vitalybuka requested changes to this revision.Sep 1 2016, 12:44 PM
vitalybuka edited edge metadata.

Can you add some PR or github issue into all these issues with general overview of what are you trying to achieve?

Also please use [asan] prefix in the title.

This revision now requires changes to proceed.Sep 1 2016, 12:44 PM
filcab added a comment.Sep 5 2016, 9:10 AM

The rationale is here:
http://lists.llvm.org/pipermail/llvm-dev/2016-July/101933.html

I want to not rely on "print as you get any piece of information" when reporting errors, and convert to structured error reporting, which can then be printed if needed. Or be passed to a debugger.

filcab updated this revision to Diff 70337.Sep 5 2016, 9:14 AM
filcab edited edge metadata.

Updated title.

filcab retitled this revision from Reify ErrorNewDeleteSizeMismatch to [asan] Reify ErrorNewDeleteSizeMismatch.Sep 5 2016, 9:14 AM
filcab edited edge metadata.

The rationale is here:
http://lists.llvm.org/pipermail/llvm-dev/2016-July/101933.html

I want to not rely on "print as you get any piece of information" when reporting errors, and convert to structured error reporting, which can then be printed if needed. Or be passed to a debugger.

I'd advise to copy/past that message into some llvm bug and attach to every related patch.
But I am not going to insist.

vitalybuka added inline comments.Sep 6 2016, 11:42 AM
lib/asan/asan_errors.cc
105 ↗(On Diff #70337)

is this clang-formatted?

lib/asan/asan_errors.h
144 ↗(On Diff #70337)

Just asking: can we make it a "class" with private data and add
some

const ErrorStackOverflow* AsStackOverflow() {

if (kind does not math)
  return nulltpr;
return stack_overflow;

}

is this going to work for debugger?

vitalybuka requested changes to this revision.Sep 6 2016, 11:48 AM
vitalybuka edited edge metadata.

LGTM if it's clang-formatted

This revision now requires changes to proceed.Sep 6 2016, 11:48 AM
This revision was automatically updated to reflect the committed changes.
vitalybuka reopened this revision.Sep 12 2016, 3:55 PM
This revision now requires changes to proceed.Sep 12 2016, 3:55 PM
vitalybuka accepted this revision.Sep 12 2016, 3:55 PM
vitalybuka edited edge metadata.
This revision is now accepted and ready to land.Sep 12 2016, 3:55 PM
vitalybuka closed this revision.Sep 12 2016, 3:55 PM