Hello crvi c,
could you please add an example command
that you want to have completed?

And if you have changed the environment GLIBC_TUNABLES,
to which value?

Otherwise a gdb session driven by the two commands below
could maybe point to the exact location where the overwriting
takes place, if watchpoint 5 is reached, and we assume
that __pthread_tunables_init is just called once...

Kind regards,
Bernhard


cat <<EOF > /tmp/gdb-cmd.txt
set width 0
set pagination off
display/i \$pc
set breakpoint pending on
b __pthread_tunables_init
run
dele 1
b * (__pthread_tunables_init+30)
cont
dele 2
disassemble __pthread_tunables_init, __pthread_tunables_init+70
print/x \$rax
print/x \$rsp + 0x8
print/x *(long*) \$2
bt
b * (__pthread_tunables_init+37)
cont
dele 3
print/x *(long*) \$2
b * (__pthread_tunables_init+56)
watch *(long*) \$2
cont
info b
bt full
disa 4
disa 5
cont
bt
quit
EOF

gdb -q -batch -command /tmp/gdb-cmd.txt --args bash

Reply via email to