Project

General

Profile

Actions

Bug #14999

open

Lttng: rados library linkage causes indefinite pthread hang

Added by Robert Augusteijn about 8 years ago. Updated almost 7 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
LTTNG
Target version:
-
% Done:

0%

Source:
other
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
rados
Component(RADOS):
librados
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

The following program wil hang indefinitely.

When the main thread exits, two pthreads will keep running, I believe these pthread are spawned by the LTTng-UST tracing framework.

#include <stdio.h>
#include <pthread.h>
#include <rados/librados.h>

int main(int argc, char **argv) {
    printf("%lu\n", (uintptr_t) rados_connect);

    pthread_exit(NULL);

}

Linked libraries:

$ ldd /usr/lib/librados.so.2
    linux-vdso.so.1 =>  (0x00007fff12df9000)
    libboost_thread.so.1.54.0 => /usr/lib/x86_64-linux-gnu/libboost_thread.so.1.54.0 (0x00007f85587a6000)
    liblttng-ust.so.0 => /usr/lib/x86_64-linux-gnu/liblttng-ust.so.0 (0x00007f855855c000)
       .......

Actions #1

Updated by Greg Farnum almost 7 years ago

  • Project changed from Ceph to RADOS
  • Subject changed from rados library linkage causes indefinite pthread hang to Lttng: rados library linkage causes indefinite pthread hang
  • Category changed from librados to LTTNG
  • Component(RADOS) librados added
Actions

Also available in: Atom PDF