public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug runtime/18083] New: listing_mode.exp fails on rhel6
@ 2015-03-05 10:28 mcermak at redhat dot com
  2015-03-05 10:35 ` [Bug runtime/18083] " mcermak at redhat dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: mcermak at redhat dot com @ 2015-03-05 10:28 UTC (permalink / raw)
  To: systemtap

https://sourceware.org/bugzilla/show_bug.cgi?id=18083

            Bug ID: 18083
           Summary: listing_mode.exp fails on rhel6
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: runtime
          Assignee: systemtap at sourceware dot org
          Reporter: mcermak at redhat dot com

Created attachment 8168
  --> https://sourceware.org/bugzilla/attachment.cgi?id=8168&action=edit
test logs

Commit e93efe2d0 (eliminate gcc5 warnings) introduced listing_mode.exp
failures. Some of them were later eliminated by commit 06902e9a6 (Adapt to
changed line numbers). Currently (at the f94683c76 time) some failures still
remain. Looking at the *first* failure in the x86_64 el6 log I see something
that looks like a real systemtap bug.

=======
executing: stap -l process.function("main").label("main_label")  -c
listing_mode
received:
"process("/root/mcermak-systemtap/systemtap/testsuite/listing_mode").function("main@./systemtap.base/listing_mode.c:37").label("main_label")"
expected:
"^process\("/root/mcermak-systemtap/systemtap/testsuite/listing_mode"\)\.function\("main@[^:]+:33"\)\.label\("main_label"\)$"
FAIL: listing_mode (process.function("main").label("main_label")  -c
listing_mode)
=======

The label actually *is* on line 33 in the test program, but line 37 refers to
it too:

=======
 29 int main(void) {
 30 
 31    globalvar = foo(globalvar);
 32    globalvar = libfoo(globalvar);
 33 main_label:
 34    STAP_PROBE1(main, mark, globalvar);
 35    while (1) {sleep(5000);}
 36    return 0;
 37    if (0) goto main_label;
 38 }
=======

So apparently systemtap reports wrong line number in this case.

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-12-06 20:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-05 10:28 [Bug runtime/18083] New: listing_mode.exp fails on rhel6 mcermak at redhat dot com
2015-03-05 10:35 ` [Bug runtime/18083] " mcermak at redhat dot com
2015-03-05 17:05 ` jlebon at redhat dot com
2023-12-06 20:33 ` wcohen at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).