Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8368124

Show useful thread names in ASAN reports

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 26
    • hotspot
    • Fix Understood
    • linux

      ASAN only shows some internal thread designation on reports, e.g.:

      ```
      WRITE of size 8 at 0x7b749d2d9190 thread T49
      ```

      which is useless. We should add this capability to Linux. JDK-7102541 added support for thread names in gdb, which uses `_pthread_setname_np`, but for some reason, these names don't show up in ASAN. If we set them with `prctl`, they do show up. I originally assumed glibc's version of `_pthread_setname_np` uses `prctl`, but apparently it doesn't.

            stuefe Thomas Stuefe
            stuefe Thomas Stuefe
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: