public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug translator/7015] New: Incorrect script fails with a compile time error rather than parse time
@ 2008-11-10  8:42 ananth at in dot ibm dot com
  2008-11-10  8:56 ` [Bug translator/7015] " ananth at in dot ibm dot com
  0 siblings, 1 reply; 2+ messages in thread
From: ananth at in dot ibm dot com @ 2008-11-10  8:42 UTC (permalink / raw)
  To: systemtap

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2268 bytes --]

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.

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

* [Bug translator/7015] Incorrect script fails with a compile time error rather than parse time
  2008-11-10  8:42 [Bug translator/7015] New: Incorrect script fails with a compile time error rather than parse time ananth at in dot ibm dot com
@ 2008-11-10  8:56 ` ananth at in dot ibm dot com
  0 siblings, 0 replies; 2+ messages in thread
From: ananth at in dot ibm dot com @ 2008-11-10  8:56 UTC (permalink / raw)
  To: systemtap


------- Additional Comments From ananth at in dot ibm dot com  2008-11-10 08:55 -------
Oops! %n is supposedly a valid format specifier -- but doesn't work correctly...
similar to 7000 I am told

*** This bug has been marked as a duplicate of 7000 ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE


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.

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

end of thread, other threads:[~2008-11-10  8:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-10  8:42 [Bug translator/7015] New: Incorrect script fails with a compile time error rather than parse time ananth at in dot ibm dot com
2008-11-10  8:56 ` [Bug translator/7015] " ananth at in dot ibm 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).