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/7015] New: Incorrect script fails with a compile time error rather than parse time


Shouldn't this script fail at parse time than later?

[root@jataayu ~]#  stap -p4 -vve 'probe begin{printf("%0.001n%d\n",3);exit()}'
SystemTap translator/driver (version 0.7.1/0.137 non-git sources)
Copyright (C) 2005-2008 Red Hat, Inc. and others
This is free software; see the source for copying conditions.
Session arch: i686 release: 2.6.27.4-79.fc10.i686
Created temporary directory "/tmp/stapsEcVSn"
Searched '/usr/local/share/systemtap/tapset/i686/*.stp', found 2
Searched '/usr/local/share/systemtap/tapset/*.stp', found 43
Pass 1: parsed user script and 45 library script(s) in 500usr/20sys/525real ms.
Pass 2: analyzed script: 1 probe(s), 1 function(s), 0 embed(s), 0 global(s) in
0usr/0sys/7real ms.
Pass 3: translated to C into
"/tmp/stapsEcVSn/stap_ca07b95b10184dc93f297ee2533cd9b1_297.c" in
280usr/450sys/727real ms.
Running make -C "/lib/modules/2.6.27.4-79.fc10.i686/build" M="/tmp/stapsEcVSn"
modules >/dev/null
/tmp/stapsEcVSn/stap_ca07b95b10184dc93f297ee2533cd9b1_297.c: In function
?probe_1383?:
/tmp/stapsEcVSn/stap_ca07b95b10184dc93f297ee2533cd9b1_297.c:158: error: expected
expression before ?{? token
/tmp/stapsEcVSn/stap_ca07b95b10184dc93f297ee2533cd9b1_297.c:160: error: expected
?;? before ?}? token
make[1]: *** [/tmp/stapsEcVSn/stap_ca07b95b10184dc93f297ee2533cd9b1_297.o] Error 1
make: *** [_module_/tmp/stapsEcVSn] Error 2
Pass 4: compiled C into "stap_ca07b95b10184dc93f297ee2533cd9b1_297.ko" in
3640usr/830sys/4555real ms.
Pass 4: compilation failed.  Try again with more '-v' (verbose) options.
Running rm -rf /tmp/stapsEcVSn

[root@jataayu ~]# uname -a
Linux jataayu.in.ibm.com 2.6.27.4-79.fc10.i686 #1 SMP Tue Nov 4 21:56:37 EST
2008 i686 i686 i386 GNU/Linux

-- 
           Summary: Incorrect script fails with a compile time error rather
                    than parse time
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: translator
        AssignedTo: systemtap at sources dot redhat dot com
        ReportedBy: ananth at in dot ibm dot com


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

------- 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]