From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 37026 invoked by alias); 15 Feb 2019 21:06:57 -0000 Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org Received: (qmail 36926 invoked by uid 48); 15 Feb 2019 21:06:54 -0000 From: "wcohen at redhat dot com" To: systemtap@sourceware.org Subject: [Bug translator/24224] New: tapsets.cxx Assert kernel relocation invariants fails for some kernel.function("*@*.c:*") probes Date: Fri, 15 Feb 2019 21:06:00 -0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: systemtap X-Bugzilla-Component: translator X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: wcohen at redhat dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: systemtap at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2019-q1/txt/msg00048.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=3D24224 Bug ID: 24224 Summary: tapsets.cxx Assert kernel relocation invariants fails for some kernel.function("*@*.c:*") probes Product: systemtap Version: unspecified Status: NEW Severity: normal Priority: P2 Component: translator Assignee: systemtap at sourceware dot org Reporter: wcohen at redhat dot com Target Milestone: --- On Fedora rawhide (kernel-5.0.0-0.rc6.git1.1.fc30.x86_64) a couple of the systemtap examples whythefail.stp and varwatch.stp tests runs probe kernel.statement("kernel_function"@file.c:*"). The scripts fail to run due= to tapsets.cxx throwing the error: inconsistent relocation address Below is the parts of the systemtap.log with the failures: PRETEST PWD=3D/usr/share/systemtap/testsuite meta taglines '' tag 'test_support' value '' TEST PWD=3D/usr/share/systemtap/testsuite/systemtap.examples/general meta taglines 'test_check: stap -wp4 varwatch.stp 'kernel.statement("do_sys_open@fs/open.c:*")' '$$vars'' tag 'test_check' va= lue 'stap -wp4 varwatch.stp 'kernel.statement("do_sys_open@fs/open.c:*")' '$$va= rs'' attempting command stap -wp4 varwatch.stp 'kernel.statement("do_sys_open@fs/open.c:*")' '$$vars' OUT semantic error: inconsistent relocation address: keyword at varwatch.stp:5:1 source: probe $1 { ^ Pass 2: analysis failed. [man error::pass2] Number of similar error messages suppressed: 14. Rerun with -v to see them. child process exited abnormally RC 1 FAIL: systemtap.examples/general/varwatch build PRETEST PWD=3D/usr/share/systemtap/testsuite meta taglines '' tag 'test_support' value '' TEST PWD=3D/usr/share/systemtap/testsuite/systemtap.examples/general meta taglines 'test_check: stap -p4 whythefail.stp kernel do_sys_open '$ret= urn < 0'' tag 'test_check' value 'stap -p4 whythefail.stp kernel do_sys_open '$return < 0'' attempting command stap -p4 whythefail.stp kernel do_sys_open '$return < 0' OUT semantic error: inconsistent relocation address: keyword at whythefail.stp:37:1 source: probe $1 . statement(@2 "@*:*") { ^ Pass 2: analysis failed. [man error::pass2] Number of similar error messages suppressed: 14. Rerun with -v to see them. child process exited abnormally RC 1 FAIL: systemtap.examples/general/whythefail build The linetime example is also using a 'kernel.statement("do_nanosleep@*:*")', but that does not trigger the error and the test passes. It looks like something is going wrong in the assert tests for the code below (some diagnostic prints showed that the section was "_stext" rather than "" for a= run of varwatch.stp: // Assert kernel relocation invariants if (section =3D=3D "" && dwfl_addr !=3D addr) // addr should be absol= ute throw SEMANTIC_ERROR (_("missing relocation basis"), tok); if (section !=3D "" && dwfl_addr =3D=3D addr) // addr should be an of= fset throw SEMANTIC_ERROR (_("inconsistent relocation address"), tok); } --=20 You are receiving this mail because: You are the assignee for the bug.