This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug translator/10049] New: Unrevealing error message: semantic error: cannot get type: no reference value: identifier '$return'


There is a bug, that I hate. Bug #5890. Recently I caught up on SystemTap and I
was wondering if this bug is resolved now. It isn't, but by testing it on my own
script (http://research.pawelczyk.it/systemtap/scripts/strace-with-errors.stp) I
happened upon error message regression.

Before I knew at least where is the source of problem, now -- almost nothing.


Before:

$ ~/systemtap-bisect/bin/stap --vp 01 ./strace-with-errors.stp -c '/bin/echo'
semantic error: unable to find return value near pc 0xffffffff80489b9b for
compat_sys_recvmsg(net/compat.c): identifier '$return' at
./strace-with-errors.stp:40:8
        source:                         if ($return < 0) {
                                            ^
semantic error: unable to find return value near pc 0xffffffff80489ba6 for
compat_sys_sendmsg(net/compat.c): identifier '$return' at :40:8
        source:                         if ($return < 0) {
                                            ^
Pass 2: analyzed script: 768 probe(s), 1475 function(s), 15 embed(s), 9
global(s) in 4360usr/160sys/4548real ms.
Pass 2: analysis failed.  Try again with another '--vp 01' option.

Now:

$ ~/systemtap-0.9.5-9187/bin/stap --vp 01 ./strace-with-errors.stp -c '/bin/echo'
semantic error: cannot get type: no reference value: identifier '$return' at
./strace-with-errors.stp:40:8
        source:                         if ($return < 0) {
                                            ^
Pass 2: analyzed script: 771 probe(s), 1478 function(s), 15 embed(s), 9
global(s) in 6040usr/250sys/6331real ms.
Pass 2: analysis failed.  Try again with another '--vp 01' option.


Using git bisect I found first "bad" commit:

commit c4ce66a13b44386263ede8ac13924d666b69d53e
Author: Josh Stone <jistone@redhat.com>
Date:   Tue Feb 17 18:15:06 2009 -0800

    Enable dwarf expansion of @casts

-- 
           Summary: Unrevealing error message: semantic error: cannot get
                    type: no reference value: identifier '$return'
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: minor
          Priority: P2
         Component: translator
        AssignedTo: systemtap at sources dot redhat dot com
        ReportedBy: przemyslaw at pawelczyk dot it


http://sourceware.org/bugzilla/show_bug.cgi?id=10049

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]