[PATCHv4] print stack trace after each syscall

Luca Clementi luca.clementi at gmail.com
Sat Sep 14 18:35:49 UTC 2013


On Fri, Sep 13, 2013 at 7:58 AM, Dmitry V. Levin <ldv at altlinux.org> wrote:
> On Thu, Sep 12, 2013 at 11:03:41PM -0700, Luca Clementi wrote:
>> On Thu, Sep 12, 2013 at 8:49 AM, Dmitry V. Levin <ldv at altlinux.org> wrote:

...

>>
>> AFAIK if you want to avoid the LDFLAG/LIBS variable you need add the test on:
>>         AC_CHECK_LIB([unwind], [backtrace],
>>         AC_CHECK_LIB([unwind-generic], [_U${UNWIND_ARCH}_create_addr_space],
>> I know that it is not the prettiest code ever but that's the only way
>> I could get to configure with my setup.
>
> I'd prefer configure checks to be written without these libunwind internals;
> unwind.c is using unw_create_addr_space macro, so configure check should
> do the same.
>
> I've tweaked configure.ac part of the patch and re-pushed it to ldv/unwind
> branch (commit v4.8-67-g709259c).
> Please give it a try.
>

Now it works!
Thanks for fixing it.

Luca



diff --git a/configure.ac b/configure.ac
index 7f6cd2e..65c47d7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -376,7 +376,7 @@ AS_IF([test "x$with_libunwind" != xno],
              LIBS="$saved_LIBS"
             ],
             [if test "x$with_libunwind" != xcheck; then
-               AC_MSG_FAILURE([failed to find libunwind])
+               AC_MSG_FAILURE([failed to find backtrace in libunwind])
              fi
             ],
             [$libunwind_LIBS]




More information about the Strace-devel mailing list