gimp_brush_get_pixels(): terminates SFConsole with ld.so error
Environment/Versions
- GIMP version: 2.99
- Package: self built, meson
- Operating System: Linux
Description of the bug
In SF Console, (gimp-brush-get-pixels "z Pepper") crashes SF Console, with this in stderr:
script-fu:4553): scriptfu-DEBUG: 14:14:10.094: calling gimp-brush-get-pixels
(script-fu:4553): scriptfu-DEBUG: 14:14:10.095: done.
(script-fu:4553): scriptfu-DEBUG: 14:14:10.095: Count of non-status values returned: 6
(script-fu:4553): scriptfu-DEBUG: 14:14:10.095: Return value 6 is type GBytes
Inconsistency detected by ld.so: dl-runtime.c: 63: _dl_fixup: Assertion `ELFW(R_TYPE)(reloc->r_info) == ELF_MACHINE_JMP_SLOT' failed!
Terminating plug-in: '/usr/local/lib/x86_64-linux-gnu/gimp/2.99/plug-ins/script-fu/script-fu'
Reproduction
Is the bug reproducible? Yes.
Additional information
The code is intending to return an array of bytes from core to the SF Console. I suppose the bug is in ScriptFu, marshalling a byte array to a Lisp type to give to the TinyScheme REPL which is directing its output to the SFConsole?
Note that ScriptFu still uses name strings to identify brush resources.
GByte and GimpResource are relatively new changes to GIMP.
I haven't tried running SF Console in the debugger.
This one totally baffles me, I don't know why ld.so is involved, why it would seem to be loading a shared library at that point in time. Maybe trashing memory and PC wandering where it shouldn't?