On Thursday 2011-11-24 02:46, Jan Engelhardt wrote:
>
>root@vjng-debian:/home/jengelh/sudo-1.8.3p1/src# gdb sudo
>GNU gdb (GDB) 7.3-debian
>Copyright (C) 2011 Free Software Foundation, Inc.
>License GPLv3+: GNU GPL version 3 or later
><http://gnu.org/licenses/gpl.html>
>This is free software: you are free to change and redistribute it.
>There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
>and "show warranty" for details.
>This GDB was configured as "x86_64-linux-gnu".
>For bug reporting instructions, please see:
><http://www.gnu.org/software/gdb/bugs/>...
>Reading symbols from /home/jengelh/sudo-1.8.3p1/src/sudo...done.
>(gdb) b policy_check
>Breakpoint 1 at 0x40b0c4: file ./sudo.c, line 1123.
>(gdb) r -Hu jengelh id
>Starting program: /home/jengelh/sudo-1.8.3p1/src/sudo -Hu jengelh id
>
>Breakpoint 1, policy_check (plugin=0x615e20, argc=1, argv=0x7fffffffe640,
>    env_add=0x61b9a0, command_info=0x7fffffffe4e0, argv_out=0x7fffffffe4d8,
>    user_env_out=0x7fffffffe4d0) at ./sudo.c:1123
>1123        return plugin->u.policy->check_policy(argc, argv, env_add, 
>command_info,  
>(gdb) s
>[Thread debugging using libthread_db enabled]
>Cannot find new threads: generic error
>
>
>sudo itself is not linked to libpthread, nor is any of its modules.
>The whole sudo thing does not even seem to make use of pthreads.

And with

  LD_PRELOAD=/lib/x86_64-linux-gnu/libpthread.so.0 gdb sudo

this suddenly starts to work. (Why is it that I only need this kludge
on Debian? openSUSE also ships gdb 7.3)



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to