From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Nov 30 22:20:02 2007 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9411716A41B for ; Fri, 30 Nov 2007 22:20:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 748F813C461 for ; Fri, 30 Nov 2007 22:20:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id lAUMK244013979 for ; Fri, 30 Nov 2007 22:20:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id lAUMK2AK013978; Fri, 30 Nov 2007 22:20:02 GMT (envelope-from gnats) Resent-Date: Fri, 30 Nov 2007 22:20:02 GMT Resent-Message-Id: <200711302220.lAUMK2AK013978@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Dan Mahoney Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9EC2F16A417 for ; Fri, 30 Nov 2007 22:19:00 +0000 (UTC) (envelope-from danm@prime.gushi.org) Received: from prime.gushi.org (prime.gushi.org [72.9.101.130]) by mx1.freebsd.org (Postfix) with ESMTP id 5D2A013C467 for ; Fri, 30 Nov 2007 22:19:00 +0000 (UTC) (envelope-from danm@prime.gushi.org) Received: from prime.gushi.org (localhost [127.0.0.1]) by prime.gushi.org (8.14.1/8.14.1) with ESMTP id lAULthpJ017802 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 30 Nov 2007 16:55:49 -0500 (EST) (envelope-from danm@prime.gushi.org) Received: (from danm@localhost) by prime.gushi.org (8.14.1/8.13.8/Submit) id lAULth2s017799; Fri, 30 Nov 2007 16:55:43 -0500 (EST) (envelope-from danm) Message-Id: <200711302155.lAULth2s017799@prime.gushi.org> Date: Fri, 30 Nov 2007 16:55:43 -0500 (EST) From: Dan Mahoney To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/118363: bug in pinentry-curses causes gpg2 port to be unusable X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Dan Mahoney List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Nov 2007 22:20:02 -0000 >Number: 118363 >Category: ports >Synopsis: bug in pinentry-curses causes gpg2 port to be unusable >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Nov 30 22:20:01 UTC 2007 >Closed-Date: >Last-Modified: >Originator: Dan Mahoney >Release: FreeBSD 6.2-PRERELEASE i386 >Organization: Gushi Systems >Environment: System: FreeBSD prime.gushi.org 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #0: Wed Dec 20 05:43:31 EST 2006 danm@prime.gushi.org:/usr/obj/usr/src/sys/GENERIC i386 Copyright (c) 1992-2006 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 6.2-PRERELEASE #0: Wed Dec 20 05:43:31 EST 2006 danm@prime.gushi.org:/usr/obj/usr/src/sys/GENERIC ACPI APIC Table: Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel(R) Pentium(R) 4 CPU 2.40GHz (2399.33-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0xf29 Stepping = 9 Features=0xbfebfbff Features2=0x4400> real memory = 2147418112 (2047 MB) avail memory = 2096463872 (1999 MB) pnpbios: Bad PnP BIOS data checksum ioapic0: Changing APIC ID to 1 ioapic1: Changing APIC ID to 2 ioapic2: Changing APIC ID to 3 MADT: Forcing active-low polarity and level trigger for SCI ioapic0 irqs 0-15 on motherboard ioapic1 irqs 16-31 on motherboard ioapic2 irqs 32-47 on motherboard kbd1 at kbdmux0 ath_hal: 0.9.17.2 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413) acpi0: on motherboard acpi0: Power Button (fixed) Timecounter "ACPI-safe" frequency 3579545 Hz quality 1000 acpi_timer0: <32-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0 cpu0: on acpi0 pcib0: on acpi0 pci0: on pcib0 em0: port 0xecc0-0xecff mem 0xfe100000-0xfe11ffff irq 17 at device 2.0 on pci0 em0: Ethernet address: 00:c0:9f:32:c0:98 pci0: at device 8.0 (no driver attached) atapci0: port 0x1e8-0x1ef,0x3ec-0x3ef,0x168-0x16f,0x36c-0x36f,0x900-0x90f irq 11 at device 14.0 on pci0 ata2: on atapci0 ata3: on atapci0 atapci1: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x8b0-0x8bf at device 15.1 on pci0 ata0: on atapci1 ata1: on atapci1 ohci0: mem 0xfe120000-0xfe120fff irq 5 at device 15.2 on pci0 ohci0: [GIANT-LOCKED] usb0: OHCI version 1.0, legacy support usb0: SMM does not respond, resetting usb0: on ohci0 usb0: USB revision 1.0 uhub0: (0x1166) OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered isab0: at device 15.3 on pci0 isa0: on isab0 fdc0: port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0 fdc0: [FAST] fd0: <1440-KB 3.5" drive> on fdc0 drive 0 atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] psm0: irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: model IntelliMouse, device ID 3 sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 sio0: type 16550A ppc0: port 0x378-0x37f,0x778-0x77f irq 7 drq 1 on acpi0 ppc0: Generic chipset (ECP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/8 bytes threshold ppbus0: on ppc0 plip0: on ppbus0 lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 pmtimer0 on isa0 orm0: at iomem 0xc0000-0xc7fff,0xe3000-0xea7ff,0xec000-0xeffff on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> sio1: configured irq 3 not in bitmap of probed irqs 0 sio1: port may not be enabled vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 Timecounter "TSC" frequency 2399333544 Hz quality 800 Timecounters tick every 1.000 msec ad0: 76319MB at ata0-master UDMA100 ad1: 238475MB at ata0-slave UDMA100 ad2: 238475MB at ata1-master UDMA100 acd0: CDROM at ata2-master UDMA33 Trying to mount root from ufs:/dev/ad0s1a WARNING: / was not properly dismounted WARNING: /tmp was not properly dismounted WARNING: /usr was not properly dismounted WARNING: /var was not properly dismounted WARNING: /home5 was not properly dismounted ipfw2 (+ipv6) initialized, divert loadable, rule-based forwarding disabled, default to deny, logging disabled em0: link state changed to UP gpg2 and pinentry-curses built from ports prime# ls /var/db/pkg|grep pinen pinentry-curses-0.7.3 prime# ls /var/db/pkg | grep gnupg gnupg-1.4.7_1 gnupg-2.0.4 >Description: gpg2, in its race to become more complex, now *requires* that you use the gpg-engine for everything, and the actual core programs have become little more than calls to the engine. To wit, this means that any prompting for a password must be done via a "pinentry" program (for which there is no straight "console" port -- only a "curses" version. To do little more than ask a password. However, this utility (pinentry-curses) is broken in ports. I do not believe this breaks anything non-pin-related (such as, say, verifying a signature), but haven't tested extensively since I can no longer access my keyring. >How-To-Repeat: (apologies for the ugly escape codes) Script started on Fri Nov 30 16:47:39 2007 kendif endif [prime.gushi.org]\k [prime.gushi.org]\k [prime.gushi.org]\k [prime.gushi.org]\You have mail. ktcsh [prime.gushi.org]\%exit %gpg2 -e -c disk.sizesssh danm@oldprimegpg2 -e -c disk.sizes kgpg2 disk.sizes [prime.gushi.org]\Warning: using insecure memory! Warning: using insecure memory! [?1049h[?1h=(0lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk(B(0x(B Enter passphrase(0x(B(0x(B(0x(B(0x(B(0x(B(0x(B Passphrase ________________________________________ (0x(B(0x(B(0x(B(0x(B(0x(B(0mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj(B****[?1049l [?1l>pinentry in free(): error: page is already free gpg-agent[14752]: command get_passphrase failed: End of file gpg: disk.sizes: encryption failed: Bad passphrase ktcsh [prime.gushi.org]\%exit kexit exit [prime.gushi.org]\ktcsh [prime.gushi.org]\exit Script done on Fri Nov 30 16:47:47 2007 I have seen others report (on mailing lists, and such) the above modified as "chunk is already free" as opposed to "page". As I am a non-coder I am not sure of the difference. >Fix: Michael Nottebrock suggested making a change to malloc.conf (I tried it with the environment variable, to no success), in this thread: http://groups.google.com/group/lucky.freebsd.questions/browse_thread/thread/8b973b58e090817e/db8d076bf53a8ea1 No fix is known -- unsure of whether to take this to the gpg team or not. >Release-Note: >Audit-Trail: >Unformatted: