Page MenuHome GnuPG

Various tests stalls on Solaris SPARC
Closed, ResolvedPublic

Description

Release: 0.9.0

Environment

SPARC, SunOS 5.8, standard libraries
GCC 3.3.3 and 3.4.1
GnuPG 1.2.4 and 1.2.6

Description

The test t-decrypt, t-sign and t-edit stalls when required to feed gpg with passphrases or keyedit.prompt.

When pointing the executable to 0.4.3 library it works, so this must be related to later releases, or at least 0.9.0.

A truss output excerpt looks like this for t-decrypt;
fcntl(10, F_GETFL, 0x00000000) = 2
fstat64(10, 0xFFBEF3D8) = 0
fstat64(10, 0xFFBEF438) = 0
fcntl(10, F_SETFL, 0x00000082) = 0
poll(0xFFBEF3B0, 3, 1000) = 1
write(10, " - - - - - B E G I N P".., 673) = 673
poll(0xFFBEF3B0, 3, 1000) = 1
close(10) = 0
poll(0xFFBEF3C8, 2, 1000) = 1
read(3, 0x00025A90, 1024) = 247

[ G N U P G : ]   P R O G R E S S   s t d i n   ?   0   0\n [ G
N U P G : ]   E N C _ T O   6 A E 6 D 7 E E 4 6 A 8 7 1 F 8   1
6   0\n [ G N U P G : ]   U S E R I D _ H I N T   6 A E 6 D 7 E
E 4 6 A 8 7 1 F 8   A l f a   T e s t   ( d e m o   k e y )   <
a l f a @ e x a m p l e . n e t >\n [ G N U P G : ]   N E E D _
P A S S P H R A S E   6 A E 6 D 7 E E 4 6 A 8 7 1 F 8   2 D 7 2
7 C C 7 6 8 6 9 7 7 3 4   1 6   0\n [ G N U P G : ]   G E T _ H
I D D E N   p a s s p h r a s e . e n t e r\n

poll(0xFFBEF3C8, 2, 1000) (sleeping...)
poll(0xFFBEF3C8, 2, 1000) = 0
poll(0xFFBEF3C8, 2, 1000) = 0
poll(0xFFBEF3C8, 2, 1000) = 0

Fix

Too deep into gpgme for me, sorry...

Event Timeline

Andreas, can you please try out the current GPGME CVS version, either HEAD or the 1-0-branch? There was a problem that could under some circumstances stall or hang GPGME, because it would call read() on a non-readable file descriptor. You want this change:

2005-06-02 Marcus Brinkmann <marcus@g10code.de>

  • wait.h (_gpgme_run_io_cb): New prototype.
  • wait.c (_gpgme_run_io_cb): New function.
  • wait-global.c (gpgme_wait): Call it.
  • wait-user.c (_gpgme_user_io_cb_handler): Likewise.
  • wait-private.c (_gpgme_wait_on_condition): Likewise.

Closing this report. No feedback for a year, and no similar reports.