Bug 19842

Summary: SIGSEGV
Product: Sisyphus Reporter: ildar <ildar>
Component: aptAssignee: Ivan Zakharyaschev <imz>
Status: NEW --- QA Contact: qa-sisyphus
Severity: minor    
Priority: P3 CC: boyarsh, glebfm, imz, ldv, mike, placeholder
Version: unstable   
Hardware: all   
OS: Linux   
Attachments:
Description Flags
strace
none
использованный файл get-i586.list
none
strace поменьше none

Description ildar 2009-04-30 09:17:01 MSD
/usr/bin/apt-get -o "Dir::Etc::sourceparts=''" -o "Dir::Etc::sourcelist=/etc/apt/sources.list.d/local.list" install -y `cat ~ildar/buffer/get-i586.list`

...

250 upgraded, 33 newly installed, 3 replaced, 9 removed and 2 not upgraded.
Need to get 0B/160MB of archives.
After unpacking 31.3MB of additional disk space will be used.
             
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1214708016 (LWP 20699)]
0xb7bb93cc in Fileno () from /usr/lib/librpmio-4.0.4.so
(gdb) bt
#0  0xb7bb93cc in Fileno () from /usr/lib/librpmio-4.0.4.so
#1  0xb7c0c601 in pthread_cancel () from /usr/lib/librpm-4.0.4.so
#2  0x00000000 in ?? ()


Версии:
 rpm -q rpm apt glibc
rpm-4.0.4-alt98.7
apt-0.5.15lorg2-alt26
glibc-2.9-alt5
Comment 1 ildar 2009-04-30 09:22:13 MSD
Created attachment 3498 [details]
strace
Comment 2 ildar 2009-04-30 09:23:16 MSD
Created attachment 3499 [details]
использованный файл get-i586.list
Comment 3 ildar 2009-04-30 09:35:16 MSD
Created attachment 3500 [details]
strace поменьше

Вот пример попроще:
gdb run -o "Dir::Etc::sourceparts=''" -o "Dir::Etc::sourcelist=/etc/apt/sources.list.d/local.list" install tex-common
...
The following packages will be upgraded
  tex-common
1 upgraded, 0 newly installed, 0 removed and 253 not upgraded.
Need to get 0B/4254B of archives.
After unpacking 988B of additional disk space will be used.
---Type <return> to continue, or q <return> to quit---

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1214957872 (LWP 25511)]
0xb7b7c3cc in Fileno () from /usr/lib/librpmio-4.0.4.so
(gdb) bt
#0  0xb7b7c3cc in Fileno () from /usr/lib/librpmio-4.0.4.so
#1  0xb7bcf601 in pthread_cancel () from /usr/lib/librpm-4.0.4.so
#2  0x00000000 in ?? ()
Comment 4 ildar 2009-04-30 09:45:25 MSD
проблема обнаружена: причиной SIGSEGV оказалось 
rpm -Uvh /mnt/nfs/heap/software/ALTLinux/i586/tex-common_0.2-alt2_noarch.rpm 
error: open of /mnt/nfs/heap/software/ALTLinux/i586/tex-common_0.2-alt2_noarch.rpm failed: Permission denied

Для рута это нетипично, но всё равно ошибка. Исправил на minor