Bug 23574 - gpg-agent падает при использовании его в качестве ssh-agent-а
Summary: gpg-agent падает при использовании его в качестве ssh-agent-а
Status: CLOSED WORKSFORME
Alias: None
Product: Sisyphus
Classification: Development
Component: gnupg2 (show other bugs)
Version: unstable
Hardware: all Linux
: P3 normal
Assignee: Alexey Gladkov
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-01 17:56 MSD by Fr. Br. George
Modified: 2010-06-07 19:10 MSD (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fr. Br. George 2010-06-01 17:56:54 MSD
[demo@grail ~]$ ps gax | grep agent
19735 tty3     S+     0:00 grep agent
[demo@grail ~]$ eval "`gpg-agent --daemon --enable-ssh-support --write-env-file $HOME/.gpg-agent-info`"
[demo@grail ~]$ ps gax | grep agent
19751 ?        Ss     0:00 gpg-agent --daemon --enable-ssh-support --write-env-file /home/demo/.gpg-agent-19755 tty3     S+     0:00 grep agent
[demo@grail ~]$ ssh-add -l
The agent has no identities.
[demo@grail ~]$ ssh-add -l
The agent has no identities.
[demo@grail ~]$ ssh-add
Enter passphrase for /home/demo/.ssh/id_dsa:
ssh-add: Error reading response length from authentication socket.
ssh-add: Error writing to authentication socket.
Could not add identity: /home/demo/.ssh/id_dsa
[demo@grail ~]$ ps gax | grep agent
19776 tty3     S+     0:00 grep agent
[demo@grail ~]$ tail /var/log/messages
Jun  1 17:39:11 grail kernel: [16126.073128] gpg-agent[19524]: segfault at 20 ip 00007f5f77a089a6 sp 00000000006a9110 error 4 in libassuan2.so.0.0.0[7f5f77a04000+e000]
Comment 1 Fr. Br. George 2010-06-02 01:11:44 MSD
А на другой машине он и так падает, причём диагностику выводит в ru_RU.UTF-8, несмотря на значение LOCALE:

george@arnor:~> ps gax | grep gpg-agent  
22815 pts/2    S+     0:00 grep gpg-agent 
george@arnor:~> eval `gpg-agent --daemon`
george@arnor:~> ps gax | grep gpg-agent  
22819 ?        Ss     0:00 gpg-agent --daemon 
22822 pts/2    S+     0:00 grep gpg-agent 
george@arnor:~> gpg --use-agent -s o     

Необходим пароль для доступа к секретному ключу пользователя: "George V. Kouryachy (Fr. Br. George) <george@altlinux.ru>"
1024-бит DSA ключ, ID 7C10D900, создан 2003-10-17

gpg: п©я─п╬п╠п╩п╣п╪п╟ я│ п╟пЁп╣п╫я┌п╬п╪ - п╦я│п©п╬п╩я▄п╥п╬п╡п╟п╫п╦п╣ п╟пЁп╣п╫я┌п╟ п╬я┌п╨п╩я▌я┤п╣п╫п╬
Введите пароль: 
gpg: Interrupt caught ... exiting

george@arnor:~> ps gax | grep gpg-agent
22832 pts/2    S+     0:00 grep gpg-agent 
george@arnor:~>
Comment 2 Sergey V Turchin 2010-06-02 15:46:25 MSD
(В ответ на комментарий №0)
> ssh-add: Error reading response length from authentication socket.
> ssh-add: Error writing to authentication socket.
А у меня не упал и пароль спросил через pinentry
Comment 3 Fr. Br. George 2010-06-07 18:31:00 MSD
Перестало воспроизводиться после dist-supgrade (обновился pinentry: 0.7.6 -> 0.8.0)