Skip to content

Instantly share code, notes, and snippets.

@garrison
Created May 27, 2015 17:33
Show Gist options
  • Save garrison/e5ad01cef641c916ecd9 to your computer and use it in GitHub Desktop.
Save garrison/e5ad01cef641c916ecd9 to your computer and use it in GitHub Desktop.
--- valgrind-3.10.1/coregrind/m_debuginfo/storage.c 2014-11-25 11:41:21.000000000 -0800
+++ valgrind-3.10.1-patched/coregrind/m_debuginfo/storage.c 2015-04-28 22:04:06.249387564 -0700
@@ -527,17 +527,28 @@
"warning: ignoring line info entry falling "
"outside current DebugInfo: %#lx %#lx %#lx %#lx\n",
di->text_avma,
di->text_avma + di->text_size,
this, this + size - 1);
return;
}
- vg_assert(lineno >= 0);
+ if (lineno < 0) {
+ static Bool complained = False;
+ if (!complained) {
+ complained = True;
+ VG_(message)(Vg_UserMsg,
+ "warning: ignoring line info entry with "
+ "negative line number (%d)\n", lineno);
+ VG_(message)(Vg_UserMsg,
+ "(Nb: this message is only shown once)\n");
+ }
+ return;
+ }
if (lineno > MAX_LINENO) {
static Bool complained = False;
if (!complained) {
complained = True;
VG_(message)(Vg_UserMsg,
"warning: ignoring line info entry with "
"huge line number (%d)\n", lineno);
VG_(message)(Vg_UserMsg,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment