Bug 1963186

Summary: format specifier errors in qemu-system-xtensa-core tapsets
Product: [Fedora] Fedora Reporter: Serguei Makarov <smakarov>
Component: qemuAssignee: Fedora Virtualization Maintainers <virt-maint>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 34CC: alizhang, berrange, cfergeau, crobinso, fche, ondrejj, pbonzini, philmd, rjones, virt-maint
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-05-23 17:48:40 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Serguei Makarov 2021-05-21 15:57:58 UTC
Description of problem:

Tapsets provided by qemu-system-xtensa-core include the %llu format specifier which isn't handled by SystemTap. This produces warnings whenever any stap script is run:

$ sudo stap -ve 'probe begin { println("hello") exit() }'
parse error: invalid or missing conversion specifier
        saw: operator ',' at /usr/share/systemtap/tapset/qemu-system-xtensa-log.stp:15034:101
     source:     printf("%d@%d vhost_vdpa_set_log_base dev: %p base: 0x%x size: %llu refcnt: %d fd: %d log: %p\n", pid(), gettimeofday_ns(), dev, base, size, refcnt, fd, log)
                                                                                                                 ^

1 parse error.
WARNING: tapset "/usr/share/systemtap/tapset/qemu-system-xtensa-log.stp" has errors, and will be skipped
parse error: invalid or missing conversion specifier
        saw: operator ',' at /usr/share/systemtap/tapset/qemu-system-xtensaeb-log.stp:15034:101
     source:     printf("%d@%d vhost_vdpa_set_log_base dev: %p base: 0x%x size: %llu refcnt: %d fd: %d log: %p\n", pid(), gettimeofday_ns(), dev, base, size, refcnt, fd, log)
                                                                                                                 ^

1 parse error.
WARNING: tapset "/usr/share/systemtap/tapset/qemu-system-xtensaeb-log.stp" has errors, and will be skipped
Pass 1: parsed user script and 490 library scripts using 210464virt/191612res/12784shr/178824data kb, in 630usr/130sys/758real ms.
Pass 2: analyzed script: 1 probe, 1 function, 0 embeds, 0 globals using 215612virt/196952res/12848shr/183972data kb, in 30usr/0sys/35real ms.
Pass 3: using cached /root/.systemtap/cache/de/stap_de459df4dc7cbadc1fd7e2675bcccc9d_992.c
Pass 4: using cached /root/.systemtap/cache/de/stap_de459df4dc7cbadc1fd7e2675bcccc9d_992.ko
Pass 5: starting run.
hello
Pass 5: run completed in 30usr/30sys/379real ms.

Version-Release number of selected component (if applicable):

qemu-system-xtensa-core-5.2.0-5.fc34.1.x86_64
systemtap-4.5-1.fc34.x86_64

How reproducible:

As seen above when both systemtap and qemu-system-xtensa-core are installed.

More info:

similar to https://bugzilla.redhat.com/show_bug.cgi?id=1907264

Comment 1 Cole Robinson 2021-05-23 17:48:40 UTC
Thanks for the report, but this should be fixed by qemu-5.2.0-7.fc34. Please reopen if I'm wrong

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