0 Replies Latest reply: Jun 13, 2010 11:41 AM by 807559 RSS

    GDB error when breakpoint hit: no thread can be found to satisfy query

    807559
      Hi. I'm trying to track down leaks in a 32bit MT program on Solaris 10
      sparc.
      Without breakpoints the program works normally, but if I place
      breakpoints to the suspicious places, when the program starts to
      actively use threads, very soon gdb prints the following error and
      can't continue:
      [LWP    21         exited]
      sol_thread_fetch_registers: td_ta_map_id2thr: no thread can be found to satisfy query

      Currently I'm using gdb 7.1. I was getting a similar error with gdb
      6.8 in the same conditions:
      procfs: fetch_registers, get_gregs line 3768, /proc/08694/lwp/21: No such file or directory.
      [LWP 21 exited]

      The command file sets some breakpoints to periodically print the backtrace

      Any hints?
      handle SIGABRT nostop pass
      handle SIGTERM nostop pass
      start
      set breakpoint pending on
      #
      #
      # 0xfdd0de88
      # 0xfdd0de88 in nlnvmal () from /export/home/testora/product/10.2.0/Db_1/lib32/libclntsh.so.10.1
      b *nlnvmal + 4
      commands
      backtrace
      continue 200
      end
      #
      # 0xfd92f080
      # 0xfd92f0c8 in sqlalc () from /export/home/testora/product/10.2.0/Db_1/lib32/libclntsh.so.10.1
      b *sqlalc + 4 + 0x48
      commands
      backtrace
      continue 200
      end
      #
      # 0xfe03d6f4
      # 0xfe03d7ec in kpummapg () from /export/home/testora/product/10.2.0/Db_1/lib32/libclntsh.so.10.1
      b *kpummapg + 4 + 0xf8
      commands
      backtrace
      continue 100
      end
      #
      # continue
      #