[Aptitude-devel] Bug#751117: aptitude segfaults when trying to acquire root powers via sudo

Jose A. Ortega Ruiz jao at gnu.org
Sat Jun 14 08:21:33 UTC 2014


On Sat, Jun 14 2014, Daniel Hartwig wrote:

> Control: tags -1 + moreinfo
>
> On 10 June 2014 21:32, Jose Antonio Ortega Ruiz <jao at gnu.org> wrote:
>> Package: aptitude
>> Version: 0.6.11-1
>> Severity: important
>>
>> I've got a local configuration file in ~/.aptitude/config with the
>> contents:
>>
>>   aptitude::Keep-Unused-Pattern "";
>>   aptitude::Delete-Unused-Pattern "";
>>   aptitude::Suppress-Read-Only-Warning "true";
>>   aptitude::Get-Root-Command "sudo";
>>
>>
>> and my user belongs to the sudoers group, and sudo is configured so
>> that that user does not need to type her password when executing sudo
>> commands.  This setup has been working for years, and broke a few days
>> ago.
>>
>> When i do a U in aptitude to update the package list, i get the usual
>> dialog asking me if i'd like to change the root account.  When i
>> accept by hitting return on the "Become root" button, aptitude
>> immediately segfaults.
>>
>
> Hello
>
> I can not reproduce this on i386 using same versions of dependencies
> as listed in your report.
>
> Please install the packages aptitude-dbg and libcwidget3-dbg,
> reproduce, and provide a backtrace.

Here it is: 

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ffff43cb700 (LWP 14322)]                                                                   
__lll_unlock_elision (lock=0x7ffff7422480 <cwidget::toplevel::input_thread::input_event_mutex>, private=0)         
    at ../nptl/sysdeps/unix/sysv/linux/x86/elision-unlock.c:29                                                     
29      ../nptl/sysdeps/unix/sysv/linux/x86/elision-unlock.c: No such file or directory.                           
(gdb) bt                                                                                                           
#0  __lll_unlock_elision (lock=0x7ffff7422480 <cwidget::toplevel::input_thread::input_event_mutex>, private=0)     
    at ../nptl/sysdeps/unix/sysv/linux/x86/elision-unlock.c:29                                                     
#1  0x00007ffff7175cb6 in ~lock (this=<synthetic pointer>, __in_chrg=<optimized out>)                              
    at ../../src/cwidget/generic/threads/threads.h:389                                                             
#2  cwidget::toplevel::input_thread::operator() (                                                                  
    this=this at entry=0x7ffff7422421 <cwidget::toplevel::input_thread::instance>) at toplevel.cc:512                 
#3  0x00007ffff7175ce1 in operator() (this=<synthetic pointer>) at ../../src/cwidget/generic/threads/threads.h:1008
#4  cwidget::threads::thread::bootstrap<cwidget::threads::bootstrap_proxy<cwidget::toplevel::input_thread> > (     
    p=<optimized out>) at ../../src/cwidget/generic/threads/threads.h:117                                          
#5  0x00007ffff66350ca in start_thread (arg=0x7ffff43cb700) at pthread_create.c:312                                
#6  0x00007ffff5b47ffd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111                                
(gdb)


Cheers,
jao



More information about the Aptitude-devel mailing list