Bug 1963186 - format specifier errors in qemu-system-xtensa-core tapsets
Summary: format specifier errors in qemu-system-xtensa-core tapsets
Keywords:
Status: CLOSED DUPLICATE of bug 1960329
Alias: None
Product: Fedora
Classification: Fedora
Component: qemu
Version: 34
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Fedora Virtualization Maintainers
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-05-21 15:57 UTC by Serguei Makarov
Modified: 2021-05-23 17:48 UTC (History)
10 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2021-05-23 17:48:40 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.