|
From: <sv...@va...> - 2015-08-14 09:02:55
|
Author: sewardj
Date: Fri Aug 14 10:02:46 2015
New Revision: 15544
Log:
Bug 348345 - Assertion fails for negative lineno
(in ML_(addLineInfo))
Patch from Jim Garrison (ji...@ga...)
Modified:
trunk/coregrind/m_debuginfo/storage.c
Modified: trunk/coregrind/m_debuginfo/storage.c
==============================================================================
--- trunk/coregrind/m_debuginfo/storage.c (original)
+++ trunk/coregrind/m_debuginfo/storage.c Fri Aug 14 10:02:46 2015
@@ -537,7 +537,18 @@
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) {
|