Hello,
I was trying to attach to a process that has 96 threads and another process that has 126 threads. Working on a Suse x86-64 system with Dyninst 8.0
The Bpatch attach fails with the following logs.
[UI]dynProcess.C[1449]: value of tid in slot 0x7fff49f557b8 is 0x3d
[UI]dynProcess.C[1468]: Failed to find empty tid slot
[UI]dynProcess.C[525]: bootstrap failed while registering threads with RT library
Failed to bootstrap process 29726: terminating...
[UI]dynProcess.C[1151]: Terminating process 29726
[../src/procset.C:1513-U] - ProcessSet::terminate entry
[../src/procset.C:1522-U] - Clearing queue pre-force-terminate
The MAX_THREADS has a limit of 32 and THREAD_HASH_SIZE=40 hardcoded. Can these values be made configurable or the limit increased ?
I changed the hardcoded limit and made it work for the processes that I am trying to instrument.
Thanks
Husha Bilimale
Teradata, San Diego