guru mode: invalid module format

Frank Ch. Eigler fche@redhat.com
Thu Jun 13 23:47:00 GMT 2019


Hi -


> $ sudo stap helloworld.stp
> hello world
> $ sudo stap helloworld.stp -g
> hello world
> $ sudo rm -rf .systemtap/cache/
> $ sudo stap helloworld.stp -g
> ERROR: Couldn't insert module
> '/tmp/stapg2kVhy/stap_04e0f4dfbaee29e9464955e58a2f9dbf_1001.ko':
> Invalid module format

Thanks for your patience.  I have not been able to reproduce this here
on Fedora, so didn't look deeper until today.  I believe the problem
may be buildrun.cxx:124, which for guru mode adds a
CONFIG_MODEVERSIONS= override into the module kbuild makefile.
Non-fedora kernels may interpret this differently.

commit c8084763b75fe4c8c61a0ddfa69e2d13f04de18e
Author: Serhei Makarov <smakarov@redhat.com>
Date:   Wed Jan 16 13:56:23 2019 -0500

    PR10280 initial fix: force vermagic for guru-mode scripts


- FChE



More information about the Systemtap mailing list