This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug runtime/11352] sdt.exp kprobe tests FAIL with SEGV
- From: "mjw at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 6 Mar 2010 16:02:41 -0000
- Subject: [Bug runtime/11352] sdt.exp kprobe tests FAIL with SEGV
- References: <20100306154644.11352.mjw@redhat.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From mjw at redhat dot com 2010-03-06 16:02 -------
go up some frames and find a lex_cast_qstring(NULL) that triggers this (because
tok == NULL):
#2 0x00000000004617f3 in c_unparser::record_actions (this=0x7fffffffbd20,
actions=<value optimized out>, tok=0x0, update=<value optimized out>)
at /home/mark/src/systemtap/translate.cxx:2332
2332 o->newline() << "c->last_stmt = " << lex_cast_qstring(*tok) << ";";
(gdb) list
2327 if ((update && action_counter > 0) || action_counter >= 10/*<-arbitrary*/)
2328 {
2329 o->newline() << "c->actionremaining -= " << action_counter << ";";
2330 o->newline() << "if (unlikely (c->actionremaining <= 0)) {";
2331 o->newline(1) << "c->last_error = \"MAXACTION exceeded\";";
2332 o->newline() << "c->last_stmt = " << lex_cast_qstring(*tok) << ";";
2333 o->newline() << "goto out;";
2334 o->newline(-1) << "}";
2335 action_counter = 0;
2336 }
Introduced by:
commit 54975cd8f5844cca2cc0a32ab26fd2b546a81984
Author: Josh Stone <jistone@redhat.com>
Date: Fri Mar 5 17:24:41 2010 -0800
PR11342: Ensure that last_stmt is always set
* translate.cxx (c_unparser::record_actions): Take a token to fill in
last_stmt for MAXACTION errors.
(c_unparser::*): Pass a token to record_actions.
(c_unparser::visit_try_block): The try/catch blocks are also basic
blocks, so they should flush record_actions when done.
(c_unparser_assignment::c_assignop): Set last_stmt for /= and %=.
(c_unparser::visit_foreach_loop): Set last_stmt for agg. overflow.
(c_unparser::visit_print_format): Set last_stmt for %m errors.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |jistone at redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=11352
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.