You can run the program under 'gdb' with a breakpoint on the 'abort' function to catch the program's abnormal exit. Assuming you have debug symbols installed, you should hopefully be able to see which probe is being re-registered.
-- Jason Dillaman ----- Original Message ----- > From: "Paul Mansfield" <paul.mansfi...@alcatel-lucent.com> > To: "Jason Dillaman" <dilla...@redhat.com>, "Nick Fisk" <n...@fisk.me.uk> > Cc: ceph-users@lists.ceph.com > Sent: Tuesday, September 22, 2015 5:28:51 AM > Subject: Re: [ceph-users] lttng duplicate registration problem when using > librados2 and libradosstriper > > > Thanks. I read the notes about mixing dynamic and static libraries, but > at the moment I can't see why that affects me as I'm not doing anything > clever with linking, my makefile simply has "-lrados -lradosstriper" in > it, and I'm using gcc in a standard way. > > If I used "ldd" and "nm" on the .o and executables it looks normal to me. > > That said, we have a unique and special build system here which could be > doing something odd, but I have delved through the logs and the compiler > and linker options look sane. > > thanks for your time > > > On 21/09/15 18:14, Jason Dillaman wrote: > > This is usually indicative of the same tracepoint event being included by > > both a static and dynamic library. See the following thread regarding > > this issue within Ceph when LTTng-ust was first integrated [1]. Since I > > don't have any insight into your application, are you somehow linking > > against Ceph static libraries? > > > > [1] http://comments.gmane.org/gmane.comp.file-systems.ceph.devel/20353 > > > > ----- Original Message ----- > >> From: "Nick Fisk" <n...@fisk.me.uk> > >> To: "Paul Mansfield" <paul.mansfi...@alcatel-lucent.com>, > >> ceph-users@lists.ceph.com > >> Sent: Saturday, September 19, 2015 3:10:02 AM > >> Subject: Re: [ceph-users] lttng duplicate registration problem when using > >> librados2 and libradosstriper > >> > >> Hi Paul, > >> > >> I hit the same problem here (see last post): > >> > >> https://groups.google.com/forum/#!topic/bareos-users/mEzJ7IbDxvA > >> > >> If I ever get to the bottom of it, I will let you know. Sorry I can't be > >> of > >> any more help. > >> > >> Nick > >> > >>> -----Original Message----- > >>> From: ceph-users [mailto:ceph-users-boun...@lists.ceph.com] On Behalf Of > >>> Paul Mansfield > >>> Sent: 18 September 2015 17:16 > >>> To: ceph-users@lists.ceph.com > >>> Subject: [ceph-users] lttng duplicate registration problem when using > >>> librados2 and libradosstriper > >>> > >>> Hello, > >>> thanks for your attention. > >>> > >>> I have started using rados striper library, calling the functions from a > >>> C > >>> program. > >>> > >>> As soon as I add libradosstriper to the linking process, I get this error > >> when > >>> the program runs, even though I am not calling any functions from the > >> rados > >>> striper library (I commented them out). > >>> > >>> LTTng-UST: Error (-17) while registering tracepoint probe. Duplicate > >>> registration of tracepoint probes having the same name is not allowed. > >>> /bin/sh: line 1: 61001 Aborted (core dumped) ./$test > >>> > >>> > >>> I had been using lttng in my program but removed it to ensure it wasn't > >>> causing the problem. > >>> > >>> I have tried running the program using gdb but the calls to initialise > >> lttng occur > >>> before main() is called and so I cannot add a break point to see what is > >>> happening. > >>> > >>> > >>> thanks > >>> Paul > >>> _______________________________________________ > >>> ceph-users mailing list > >>> ceph-users@lists.ceph.com > >>> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com > >> > >> > >> > >> > >> _______________________________________________ > >> ceph-users mailing list > >> ceph-users@lists.ceph.com > >> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com > >> > > -- > Paul Mansfield > DevOps Engineer > > _______________________________________________ ceph-users mailing list ceph-users@lists.ceph.com http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com