[Bug translator/13272] New: printf "quoting" broken
mjw at redhat dot com
sourceware-bugzilla@sourceware.org
Fri Oct 7 12:49:00 GMT 2011
http://sourceware.org/bugzilla/show_bug.cgi?id=13272
Bug #: 13272
Summary: printf "quoting" broken
Product: systemtap
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: translator
AssignedTo: systemtap@sourceware.org
ReportedBy: mjw@redhat.com
Classification: Unclassified
Since the new PR3217: Compiled printf support went in the following is broken:
$ stap -e 'probe begin { printf("\"quote\\this\"\n"); exit(); }'
"quote\this"
Now results in:
$ /usr/local/install/systemtap/bin/stap -e 'probe begin {
printf("\"quote\\this\"\n"); exit(); }'
/tmp/staprnCOab/stap_b365e1c33dd4dbc9188f04b4ec90e45b_817.c: In function
‘probe_1989’:
/tmp/staprnCOab/stap_b365e1c33dd4dbc9188f04b4ec90e45b_817.c:104:21: error:
expected ‘)’ before ‘quote’
/tmp/staprnCOab/stap_b365e1c33dd4dbc9188f04b4ec90e45b_817.c:104:21: error:
stray ‘\’ in program
/tmp/staprnCOab/stap_b365e1c33dd4dbc9188f04b4ec90e45b_817.c:104:21: error:
stray ‘\’ in program
make[1]: *** [/tmp/staprnCOab/stap_b365e1c33dd4dbc9188f04b4ec90e45b_817.o]
Error 1
make: *** [_module_/tmp/staprnCOab] Error 2
Warning: make exited with status: 2
Pass 4: compilation failed. Try again with another '--vp 0001' option.
This can also be seen in the buildok.exo testsuite:
FAIL: buildok/printf.stp
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Systemtap
mailing list