[Bug runtime/26673] New: The kernel backtrace dumper should not use stack array which may lead to compilation errors
agentzh at gmail dot com
sourceware-bugzilla@sourceware.org
Mon Sep 28 19:36:55 GMT 2020
https://sourceware.org/bugzilla/show_bug.cgi?id=26673
Bug ID: 26673
Summary: The kernel backtrace dumper should not use stack array
which may lead to compilation errors
Product: systemtap
Version: unspecified
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: runtime
Assignee: systemtap at sourceware dot org
Reporter: agentzh at gmail dot com
Target Milestone: ---
Consider the following example when using a MAXBACKTRACE macro value larger
than 60 and the kernel backtrace dumper in the stap runtime, it will lead to
compilation errors due to the on-stack array "entries" in the function of the
stap runt
```
$ /opt/stap/bin/stap -DMAXBACKTRACE=61 -e 'probe begin { print_backtrace() }'
In file included from
/tmp/stapy7pTmc/stap_ec9093ee0dc3ecaa0481bbf9075a06bf_1049_src.c:79:
/opt/stap/share/systemtap/runtime/stack.c: In function
‘_stp_stack_print_fallback.isra.33.constprop’:
/opt/stap/share/systemtap/runtime/stack.c:235:1: error: the frame size of 520
bytes is larger than 512 bytes [-Werror=frame-larger-than=]
}
^
cc1: all warnings being treated as errors
make[1]: *** [scripts/Makefile.build:276:
/tmp/stapy7pTmc/stap_ec9093ee0dc3ecaa0481bbf9075a06bf_1049_src.o] Error 1
make: *** [Makefile:1581: _module_/tmp/stapy7pTmc] Error 2
WARNING: kbuild exited with status: 2
Pass 4: compilation failed. [man error::pass4]
```
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Systemtap
mailing list