Bug#579021: gdb fails only when not linked to libpthreads
On Mon, May 03, 2010 at 08:33:10AM -0400, Daniel Jacobowitz wrote: Does libdbi load libpthread dynamically? Indirectly it does. libdbi uses database-specific backends. So, for example, libdbd-mysql.so is dlopen()ed by libdbi and that mysql specific library is dynamically linked to libpthread. - Craig -- Craig Small GnuPG:1C1B D893 1418 2AF4 45EE 95CB C76C E5AC 12CA DFA5 http://www.enc.com.au/ csmall at : enc.com.au http://www.debian.org/ Debian GNU/Linux, software should be Free -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#579021: gdb fails only when not linked to libpthreads
On Tue, May 04, 2010 at 08:56:09PM +1000, Craig Small wrote: On Mon, May 03, 2010 at 08:33:10AM -0400, Daniel Jacobowitz wrote: Does libdbi load libpthread dynamically? Indirectly it does. libdbi uses database-specific backends. So, for example, libdbd-mysql.so is dlopen()ed by libdbi and that mysql specific library is dynamically linked to libpthread. OK, thanks. That's going to be the issue then; I'm surprised to see it resurface, but GDB has historically had trouble in this situation. -- Daniel Jacobowitz CodeSourcery -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#579021: gdb fails only when not linked to libpthreads
On Mon, Apr 26, 2010 at 11:19:26AM +1000, Craig Small wrote: Hello, I had a closer look at programs using libdbi. Most of them seem to link to libpthread. Programs such as rrdtool and syslog-ng use it. So I changed my command line to build my simple test program I sent in my initial report from: gcc -o test -ldbi -ggdb test.c to: gcc -o test -ldbi -lpthread -ggdb test.c Does libdbi load libpthread dynamically? -- Daniel Jacobowitz CodeSourcery -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#579021: gdb fails only when not linked to libpthreads
Hello, I had a closer look at programs using libdbi. Most of them seem to link to libpthread. Programs such as rrdtool and syslog-ng use it. So I changed my command line to build my simple test program I sent in my initial report from: gcc -o test -ldbi -ggdb test.c to: gcc -o test -ldbi -lpthread -ggdb test.c GDB now works as you expect, info threads sees threads and all is well. The question is, should gdb work fine without the program having to link to libpthread? Or is there a problem in libdbi? I built my own libdbi 0.8.3 just in case it was a problem with 0.8.2 but get the same results. - Craig -- Craig Small GnuPG:1C1B D893 1418 2AF4 45EE 95CB C76C E5AC 12CA DFA5 http://www.enc.com.au/ csmall at : enc.com.au http://www.debian.org/ Debian GNU/Linux, software should be Free -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org