[Bug debugedit/33789] debugedit corrupts RISC-V object files

jmontleo at redhat dot com sourceware-bugzilla@sourceware.org
Tue Jan 13 22:20:53 GMT 2026


https://sourceware.org/bugzilla/show_bug.cgi?id=33789

Jason Montleon <jmontleo at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jmontleo at redhat dot com

--- Comment #7 from Jason Montleon <jmontleo at redhat dot com> ---
Claude generated this suggestion for me before I saw the patch David shared.
While seeming somewhat similar my confidence in it being fully correct is low
with it being AI generated and my lack of familiarity.
https://gist.github.com/jmontleon/f57b7a2d282d64a4479cff094a94306c

That said, I built a debugedit package with it
(https://jmontleon.fedorapeople.org/debugedit-5.2-3.rvre0.1.fc43.riscv64.rpm)

And using it I was able to successfully rebuild tcl and environment-modules
mock -r fedora-43-riscv64 --init
mock -r fedora-43-riscv64 --no-clean install
./debugedit-5.2-3.rvre0.1.fc43.riscv64.rpm 
mock -r fedora-43-riscv64 --no-clean rebuild ./tcl-9.0.2-1.rvre1.fc43.src.rpm 
mock -r fedora-43-riscv64 --no-clean install
/var/lib/mock/fedora-43-riscv64/result/tcl-9.0.2-1.rvre1.fc43.riscv64.rpm
/var/lib/mock/fedora-43-riscv64/result/tcl-devel-9.0.2-1.rvre1.fc43.riscv64.rpm
mock -r fedora-43-riscv64 --no-clean rebuild
./environment-modules-5.6.1-1.fc43.src.rpm 

I took
https://src.fedoraproject.org/fork/u2fsdgvkx1/rpms/debugedit/c/120cd89d15831a32a0937562c3cda9dfb94391e5?branch=rawhide
instead after learning of it and rebuilt again
(https://jmontleon.fedorapeople.org/debugedit-5.2-3.rvre0.2.fc43.riscv64.rpm)

It also appeared to succeed running thru these steps with it:
mock -r fedora-43-riscv64 --init
mock -r fedora-43-riscv64 --no-clean install
./debugedit-5.2-3.rvre0.2.fc43.riscv64.rpm 
mock -r fedora-43-riscv64 --no-clean rebuild ./tcl-9.0.2-1.rvre1.fc43.src.rpm 
mock -r fedora-43-riscv64 --no-clean install
/var/lib/mock/fedora-43-riscv64/result/tcl-9.0.2-1.rvre1.fc43.riscv64.rpm
/var/lib/mock/fedora-43-riscv64/result/tcl-devel-9.0.2-1.rvre1.fc43.riscv64.rpm
mock -r fedora-43-riscv64 --no-clean rebuild
./environment-modules-5.6.1-1.fc43.src.rpm

SRPMs are also uploaded to https://jmontleon.fedorapeople.org/
https://jmontleon.fedorapeople.org/debugedit-5.2-3.rvre0.1.fc43.src.rpm
https://jmontleon.fedorapeople.org/debugedit-5.2-3.rvre0.2.fc43.src.rpm

If you are able to use mock it should do the right thing with qemu-user-static
installed without having to resort to VMs, containers, etc. Albeit maybe not
the most fun environment to debug in but you can install additional packages as
in the examples above and get a shell in the environment with `mock -r
fedora-43-riscv64 --no-clean --shell` if desired or needed. It is not super
fast, but tolerable in the absence or real hardware in a small case like this.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Debugedit mailing list