Package: emacs23 Version: 23.2+1-7 Severity: normal File: /usr/bin/emacs23 I spent quite some time trying to make Emacs on Debian Squeeze connect to a Pop3 mailbox with starttls with no avail. My Emacs mail configuration is verified to work flawlessly with the Emacs 23.3.1 included in Ubuntu 11.10/amd64, however, with the same home directory mounted into my Squeeze/mipsel machine, mail retrival fails to work.
It just gets stuck after "Opening STARTTLS connection to `mosquito:110'...done", then times out after 120 seconds, asking "Mail source (pop :server mosquito :stream starttls) error (stringp). Continue?". Meanwhile the POP3 server logs: in.qpopper[12658]: (v4.0.9) TLSv1/SSLv3 handshake with client at mosquito.pool (192.168.0.99); new session-id; cipher: AES128-SHA (AES128-SHA SSLv3 Kx=RSA Au=RSA Enc=AES(128) Mac=SHA1), 128 bits [pop_tls_openssl.c:547] in.qpopper[12658]: (v4.0.9) Timeout (120 secs) during nw read from at mosquito.pool (192.168.0.99) [popper.c:608] in.qpopper[12658]: (null) at mosquito.pool (192.168.0.99): -ERR POP timeout from mosquito.pool [popper.c:825] I tried to narrow down the problem, but are currently stuck: - The failure occurs with two distinct pop3 servers, one being the debian system itself with 'qpopper' configured for starttls support. - gnutls-cli which is started as process by Emacs starttls.el works flawlessly. Manually starting it as gnutls-cli -s mosquito -p 110 (or gnutls-cli -s mosquito -p 110 --protocols ssl3) I can log into my mailbox without any problems (i.e. I enter 'STLS' <RET>, then do a 'killall -ALRM gnutls-cli' or press Ctrl-D) - attaching 'strace' to the running Emacs process, I can see that in fact gnutls-cli's TLS negotiation output was correctly read by Emacs: read(16, "- Certificate type: X.509\n - Got a certificate list of 1 certificates.\n - Certificate[0] info:\n - subject `CN=mosquito', issuer `CN=mosquito', RSA key 1024 bits, signed using RSA-SHA, activated `2009-01-07 12:57:36 UTC', expires `2019-01-05 12:57:36 UTC', SHA-1 fingerprint `37e8974209ccfe3ea73b371457c827fab68a1f5f'\n- The hostname in the certificate matches 'mosquito'.\n- Peer's certificate issuer is unknown\n- Peer's certificate is NOT trusted\n- Version: SSL3.0\n- Key Exchange: RSA\n- Cipher: AES-128-CBC\n- MAC: SHA1\n- Compression: NULL\n", 4096) = 539 But that is the last time Emacs reads anything from descriptor 16, so I suspect, it gets stuck somewhere in the process input management in 'process.c'. That's a huge mess of code and I didn't wrap my head around it yet. This is running on a Loongson-2f, kernel 2.6.39.4. Pagesize is 16k, but AFAIR pagesize doesn't have any effect on pipe buffering in recent kernels. What else can I do to narrow this down? Is this a known problem? Does it happen on non-mipsel architectures? cheers, David -- System Information: Debian Release: 6.0.3 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable') Architecture: mipsel (mips64) Kernel: Linux 2.6.39.4-dk1 Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages emacs23 depends on: ii emacs23-bin-common 23.2+1-7 The GNU Emacs editor's shared, arc ii libasound2 1.0.23-2.1 shared library for ALSA applicatio ii libatk1.0-0 1.30.0-1 The ATK accessibility toolkit ii libc6 2.11.2-10 Embedded GNU C Library: Shared lib ii libcairo2 1.8.10-6 The Cairo 2D vector graphics libra ii libdbus-1-3 1.2.24-4+squeeze1 simple interprocess messaging syst ii libfontconfig1 2.8.0-2.1 generic font configuration library ii libfreetype6 2.4.2-2.1+squeeze2 FreeType 2 font engine, shared lib ii libgconf2-4 2.28.1-6 GNOME configuration database syste ii libgif4 4.1.6-9 library for GIF images (library) ii libglib2.0-0 2.24.2-1 The GLib library of C routines ii libgpm2 1.20.4-3.3 General Purpose Mouse - shared lib ii libgtk2.0-0 2.20.1-2 The GTK+ graphical user interface ii libice6 2:1.0.6-2 X11 Inter-Client Exchange library ii libjpeg62 6b1-1 The Independent JPEG Group's JPEG ii libm17n-0 1.6.1-1 a multilingual text processing lib ii libncurses5 5.7+20100313-5 shared libraries for terminal hand ii libotf0 0.9.11-1 A Library for handling OpenType Fo ii libpango1.0-0 1.28.3-1+squeeze2 Layout and rendering of internatio ii libpng12-0 1.2.44-1+squeeze1 PNG library - runtime ii librsvg2-2 2.26.3-1 SAX-based renderer library for SVG ii libsm6 2:1.1.1-1 X11 Session Management library ii libtiff4 3.9.4-5+squeeze3 Tag Image File Format (TIFF) libra ii libx11-6 2:1.3.3-4 X11 client-side library ii libxft2 2.1.14-2 FreeType-based font drawing librar ii libxpm4 1:3.5.8-1 X11 pixmap library ii libxrender1 1:0.9.6-1 X Rendering Extension client libra ii zlib1g 1:1.2.3.4.dfsg-3 compression library - runtime emacs23 recommends no packages. Versions of packages emacs23 suggests: ii emacs23-common-non-dfsg 23.2+1-1 GNU Emacs shared, architecture ind -- no debconf information
pgp5NIkFLcxzz.pgp
Description: PGP signature