[Bug 279901] glibc-2.39-2 and above on the host segfault

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 23 Jul 2024 20:18:28 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=279901

--- Comment #13 from bugzilla@tunedal.net ---
(In reply to Konstantin Belousov from comment #12)

Here are the register values you asked for. Installing the debug symbols using
debuginfod (or find-dbgsym-packages) doesn't seem to have changed the
backtraces.

The damage is presumably done by something related to memcpy/memmove since this
commit is what causes the symptoms to manifest:
https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=aa4249266e9906c4bc833e4847f4d8feef59504f;hp=5a461f2949ded98d8211939f84988bc464c7b4fe

Python:

  root@localhost:~# gdb --core=python3.core
  GNU gdb (Debian 13.2-1+b2) 13.2
  ...
  This GDB supports auto-downloading debuginfo from the following URLs:
    <https://debuginfod.debian.net>
  Enable debuginfod for this session? (y or [n]) y
  Debuginfod has been enabled.
  To make this setting permanent, add 'set debuginfod enabled on' to .gdbinit.
  Core was generated by `python3'.
  Program terminated with signal SIGSEGV, Segmentation fault.
  #0  0x0000000000553914 in ?? ()

  (gdb) bt
  #0  0x0000000000553914 in ?? ()
  #1  0x0000000000000000 in ?? ()

  (gdb) info registers
  rax            0x5                 5
  rbx            0x1                 1
  rcx            0x7                 7
  rdx            0xc                 12
  rsi            0xa2967             665959
  rdi            0x7f1c2020d318      139758774833944
  rbp            0x7f1c201a4458      0x7f1c201a4458
  rsp            0x7ffd271820b0      0x7ffd271820b0
  r8             0xc                 12
  r9             0x1                 1
  r10            0x7f1c202eb078      139758775742584
  r11            0x7f1c20434d00      139758777093376
  r12            0x7f1c201a4480      139758774404224
  r13            0x7f1c201a4480      139758774404224
  r14            0xc                 12
  r15            0x7f1c201a4430      139758774404144
  rip            0x553914            0x553914
  eflags         0x10216             [ PF AF IF RF ]
  cs             0x33                51
  ss             0x2b                43
  ds             0x0                 0
  es             0x0                 0
  fs             0x0                 0
  gs             0x0                 0

Vim:

  root@localhost:~# gdb --core=vim.core
  GNU gdb (Debian 13.2-1+b2) 13.2
  ...
  This GDB supports auto-downloading debuginfo from the following URLs:
    <https://debuginfod.debian.net>
  Enable debuginfod for this session? (y or [n]) y
  Debuginfod has been enabled.
  To make this setting permanent, add 'set debuginfod enabled on' to .gdbinit.
  Core was generated by `vim'.
  Program terminated with signal SIGABRT, Aborted.
  #0  0x00007fee03ec47a7 in ?? ()

  (gdb) bt
  #0  0x00007fee03ec47a7 in ?? ()
  #1  0x0000559fc8dc4831 in ?? ()
  #2  0x00007fffc3822820 in ?? ()
  #3  0x00000000000001a6 in ?? ()
  #4  0x00007fee03de9440 in ?? ()
  #5  <signal handler called>
  #6  0x00007fee03f1339c in ?? ()
  #7  0x00007fffc3822860 in ?? ()
  #8  0x2c0d8adf099bf900 in ?? ()
  #9  0x0000000000000006 in ?? ()
  #10 0x00007fee03de9440 in ?? ()
  #11 0x00007fffc3822820 in ?? ()
  #12 0x00007fffc3822820 in ?? ()
  #13 0x00007fffc3822820 in ?? ()
  #14 0x00007fee03ec44f2 in ?? ()
  #15 0x00007fee04060b50 in ?? ()
  #16 0x00007fee03ead4ed in ?? ()
  #17 0x0000000000000020 in ?? ()
  #18 0x0000000000000000 in ?? ()

  (gdb) info registers
  rax            0x0                 0
  rbx            0x1                 1
  rcx            0x7fee03ec47a7      140660244760487
  rdx            0x0                 0
  rsi            0x6                 6
  rdi            0x1a6               422
  rbp            0x6                 0x6
  rsp            0x7fffc38220d8      0x7fffc38220d8
  r8             0x7fffc3822020      140736473473056
  r9             0x559fdb866f50      94145071181648
  r10            0x8                 8
  r11            0x206               518
  r12            0x7fffc3822820      140736473475104
  r13            0x6                 6
  r14            0x7fffc3822820      140736473475104
  r15            0x7fffc3822820      140736473475104
  rip            0x7fee03ec47a7      0x7fee03ec47a7
  eflags         0x206               [ PF IF ]
  cs             0x33                51
  ss             0x2b                43
  ds             0x0                 0
  es             0x0                 0
  fs             0x0                 0
  gs             0x0                 0

-- 
You are receiving this mail because:
You are the assignee for the bug.