Re: dlopen() and -pg

2019-11-26 Thread Manuel Bouyer
On Tue, Nov 26, 2019 at 06:14:37PM +0100, Joerg Sonnenberger wrote: > devel/gperftools? thanks. From first tests, it seems to have trouble building call graphs, and decoding library function names, but I'll keep experimenting. Maybe it'll give something usefull. -- Manuel Bouyer NetBSD: 26

Re: dlopen() and -pg

2019-11-26 Thread Joerg Sonnenberger
On Tue, Nov 26, 2019 at 04:05:22PM +0100, Manuel Bouyer wrote: > On Tue, Nov 26, 2019 at 03:24:20PM +0100, Joerg Sonnenberger wrote: > > On Tue, Nov 26, 2019 at 03:18:03PM +0100, Manuel Bouyer wrote: > > > trying to profile a c++ program which uses dlopen and pthreads (opencpn, > > > FWIW), > > >

Re: dlopen() and -pg

2019-11-26 Thread Manuel Bouyer
On Tue, Nov 26, 2019 at 03:24:20PM +0100, Joerg Sonnenberger wrote: > On Tue, Nov 26, 2019 at 03:18:03PM +0100, Manuel Bouyer wrote: > > trying to profile a c++ program which uses dlopen and pthreads (opencpn, > > FWIW), > > I'm not surprised at all. -pg will only work reliable with -static. And

Re: dlopen() and -pg

2019-11-26 Thread Joerg Sonnenberger
On Tue, Nov 26, 2019 at 03:18:03PM +0100, Manuel Bouyer wrote: > trying to profile a c++ program which uses dlopen and pthreads (opencpn, > FWIW), I'm not surprised at all. -pg will only work reliable with -static. Joerg

dlopen() and -pg

2019-11-26 Thread Manuel Bouyer
Hello, trying to profile a c++ program which uses dlopen and pthreads (opencpn, FWIW), I get a core dump: Program received signal SIGSEGV, Segmentation fault. 0x006fb040 in dl_iterate_phdr () (gdb) where