• Bug#836802: gdb: Process record does not support instruction 0xc5

    From Sergio Durigan Junior@21:1/5 to mudongliang on Mon Jul 28 04:30:01 2025
    Control: severity -1 wishlist

    On Monday, September 05 2016, mudongliang wrote:

    Package: gdb
    Version: 7.11.1-2
    Severity: normal
    Tags: newcomer

    Dear Maintainer,

    $ cat simple.c

    #include <string.h>
    void foo (char *bar)
    {
    char c[12];

    strcpy(c, bar); // no bounds checking
    }
    int main (int argc, char **argv)
    {
    foo(argv[1]);
    }

    $ gdb simple
    ......
    (gdb) b main
    Breakpoint 1 at 0x40050c
    (gdb) r
    Starting program: /home/mudongliang/Work/simple

    Breakpoint 1, 0x000000000040050c in main ()
    (gdb) record full
    (gdb) c
    Continuing.
    Process record does not support instruction 0xc5 at address 0x7ffff7dee807. Process record: failed to record execution log.

    Program stopped.
    _dl_runtime_resolve_avx () at ../sysdeps/x86_64/dl-trampoline.h:81
    81 ../sysdeps/x86_64/dl-trampoline.h: No such file or directory.

    This is unfortunately a common problem when using the process record
    feature. It happens because the feature hasn't received much love since
    it was implemented more than a decade ago, and new CPUs implement new instructions which GDB doesn't know about, so someone needs to teach GDB
    how to decode these new instructions in order to make process record
    work with them.

    I'm demoting this bug to a wishlist status; feel free to report it
    upstream (although you will be able to find several other similar bugs
    reported as well).

    Thanks,

    --
    Sergio
    GPG key ID: 237A 54B1 0287 28BF 00EF 31F4 D0EB 7628 65FC 5E36
    Please send encrypted e-mail if possible
    https://sergiodj.net/

    --=-=-Content-Type: application/pgp-signature; name="signature.asc"

    -----BEGIN PGP SIGNATURE-----

    iQIzBAEBCgAdFiEEI3pUsQKHKL8A7zH00Ot2KGX8XjYFAmiG3JQACgkQ0Ot2KGX8 XjagCg//WgSWUx2UX82J7YR5459kVbJImrjmQbzGTowk7hX6V0SWQlS0utJm9PoD ppl2QG4E4Ka25+sFSA4PFVE3TYkaqDVu1lfIax40wJLt/DAvQmstyguFoqgvaxPJ 86/QGmoBpp6XeQ7ugqNtMmZbsGFbhQ9cNEFezQreCkNmT9v8+YvwiucFDaUdnrWk p6ed+30dTDl/hBDe9MW2JkA57R8RvD9PdNm2nM7EHHYiPHXtXa7PaSX05upMuZ9S ytyC49ULXqrooYQvkhRfTX8BELAEGGCHH0q9cwvUzIXd96UK/ZkjPbObDpjYZFcQ pv+vhp5qnFMexffP94jbjxvGgWARaB1AVvow3o6jDaA0aZSu6ns5+UveAW39LV7M aojU1HiiL7ILreRHCKzHNP1UrwtFQaIuntJxJty2E7c1PGMn80OEkm2tUhh8TFcm jtWKRz9tNe7nZCAzHttDQ5hMwYcqHma4xbHoQqajsocKjLWOHzqiTmirARp8WfXE XvNlKJhZnJR71+fKhpUwdceRI1laGqzhsgP2j/LBLoxF+pPKvSnU03W0TJlXiKjc z4pH4HCgymuGSKx7S/1j9R+Jx+xuQNrOXlnKaUj1aXBTJ8txEW7ZAajMmKBZV4Fb Vz5S/RBCoYvUF24Ws2Ow3DZ38l0V7KUUIl1hLi9eAjQkVvhT32