From 07c6b75662eabb645bcac32b3e929b85231f7d2e Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Tue, 28 Jan 2014 09:53:12 +0100 Subject: libpthread dlopen: mention just linking the application against libpthread --- faq/libpthread_dlopen.mdwn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'faq') diff --git a/faq/libpthread_dlopen.mdwn b/faq/libpthread_dlopen.mdwn index 5fb77767..a959ad37 100644 --- a/faq/libpthread_dlopen.mdwn +++ b/faq/libpthread_dlopen.mdwn @@ -20,6 +20,6 @@ in errors such as: ./pthread/../sysdeps/generic/pt-mutex-timedlock.c:70: __pthread_mutex_timedlock_internal: Assertion `__pthread_threads' failed. -This can be worked around by explicitly pre-loading libpthread, for example: +This can be worked around by making the application link against libpthread (i.e. not only the plugin, but also the main binary), or without recompiling by explicitly pre-loading libpthread, for example: $ LD_PRELOAD=/lib/i386-gnu/libpthread.so.0.3 [application] -- cgit v1.2.3 From ce87d100dcfd09ba08a27f2a788998753126be43 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Tue, 28 Jan 2014 23:49:54 +0100 Subject: better just start an active translator when debugging --- faq/debugging_translators.mdwn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'faq') diff --git a/faq/debugging_translators.mdwn b/faq/debugging_translators.mdwn index 195b2276..1a9de256 100644 --- a/faq/debugging_translators.mdwn +++ b/faq/debugging_translators.mdwn @@ -16,7 +16,7 @@ during it, on Debian you need the `hurd-dbg` and `libc0.3-dbg` packages installe If you need to debug the initialization of the translator, start the translator like - $ settrans -P /foo /usr/bin/env LD_LIBRARY_PATH=/usr/lib/debug /hurd/foofs + $ settrans -Pa /foo /usr/bin/env LD_LIBRARY_PATH=/usr/lib/debug /hurd/foofs The `-P` option will make it pause and you will be able to attach [[debugging/GDB]] to the process. -- cgit v1.2.3