On Tue, 7 Jan 2020 at 21:32, Bernhard Übelacker <bernha...@mailbox.org> wrote:
> Hello crvi c, > could you please add an example command > that you want to have completed? > > cd libdmapsharing I did cd libd <tab> and bash crashed. > And if you have changed the environment GLIBC_TUNABLES, > to which value? > > Nope. > 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 > gdb -q -batch -command ~/gdb-cmds.bash.txt --args bash Function "__pthread_tunables_init" not defined. Breakpoint 1 (__pthread_tunables_init) pending. [Detaching after fork from child process 37973]