NetBSD Problem Report #46553

From martin@aprisoft.de  Wed Jun  6 12:02:06 2012
Return-Path: <martin@aprisoft.de>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	by www.NetBSD.org (Postfix) with ESMTP id 8D8EC63BA27
	for <gnats-bugs@gnats.NetBSD.org>; Wed,  6 Jun 2012 12:02:06 +0000 (UTC)
Message-Id: <20120606120157.E562CAF582B@emmas.aprisoft.de>
Date: Wed,  6 Jun 2012 14:01:57 +0200 (CEST)
From: martin@NetBSD.org
Reply-To: martin@NetBSD.org
To: gnats-bugs@gnats.NetBSD.org
Subject: terminfo stopped working on sparc machines
X-Send-Pr-Version: 3.95

>Number:         46553
>Category:       lib
>Synopsis:       terminfo stopped working on sparc machines
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    lib-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jun 06 12:05:00 +0000 2012
>Closed-Date:    Wed Jun 06 14:39:11 +0000 2012
>Last-Modified:  Wed Jun 06 21:25:01 +0000 2012
>Originator:     Martin Husemann
>Release:        NetBSD 6.99.7
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD nelly.aprisoft.de 6.99.7 NetBSD 6.99.7 (NELLY32) #13: Wed Jun 6 13:24:29 CEST 2012 martin@emmas.aprisoft.de:/nelly/usr/src/sys/arch/sparc64/compile/NELLY32 sparc
Architecture: sparc
Machine: sparc
>Description:

On sparc (32bit) the terminfo.cdb file is not usable:

   432      1 infocmp  CALL  open(0x40306040,0,0xffffffe8)
   432      1 infocmp  NAMI  "/usr/share/misc/terminfo.cdb"
   432      1 infocmp  RET   open 3
   432      1 infocmp  CALL  __fstat50(3,0xffff9410)
   432      1 infocmp  RET   __fstat50 0, -27632/0xffff9410
   432      1 infocmp  CALL  read(3,0xffff94b0,0x28)
   432      1 infocmp  GIO   fd 3 read 40 bytes
       "NBCDB\n\0\^ANetBSD terminfo\0 \M^T\^U\08\n\0\0\M-F\f\0\0\^A\0\0\0"
   432      1 infocmp  RET   read 40/0x28, -27472/0xffff94b0
   432      1 infocmp  CALL  mmap(0,0x15d6b8,1,1,3,0,0,0)
   432      1 infocmp  RET   mmap 1077936128/0x40400000, 1431224/0x15d6b8
   432      1 infocmp  CALL  close(3)
   432      1 infocmp  RET   close 0, 1431224/0x15d6b8
   432      1 infocmp  CALL  munmap(0x40400000,0x15d6b8)
   432      1 infocmp  RET   munmap 0, 1431224/0x15d6b8
   432      1 infocmp  CALL  write(2,0xffff91b0,9)
   432      1 infocmp  GIO   fd 2 wrote 9 bytes
       "infocmp: "
   432      1 infocmp  RET   write 9, -28240/0xffff91b0
   432      1 infocmp  CALL  write(2,0xffff9218,0x31)
   432      1 infocmp  GIO   fd 2 wrote 49 bytes
       "no terminal definition found in internal database"
   432      1 infocmp  RET   write 49/0x31, -28136/0xffff9218
   432      1 infocmp  CALL  write(2,0x22f6b,1)
   432      1 infocmp  GIO   fd 2 wrote 1 bytes
       "\n"
   432      1 infocmp  RET   write 1, 143211/0x22f6b

>How-To-Repeat:

Just try to boot -current on sparc and use a non-builtin terminfo entry.
See also the failing automatic tests on the releng site.

>Fix:

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: martin@NetBSD.org
State-Changed-When: Wed, 06 Jun 2012 14:39:11 +0000
State-Changed-Why:
Joerg just fixed it


From: "Martin Husemann" <martin@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/46553 CVS commit: src
Date: Wed, 6 Jun 2012 21:23:10 +0000

 Module Name:	src
 Committed By:	martin
 Date:		Wed Jun  6 21:23:10 UTC 2012

 Modified Files:
 	src/distrib/sets/lists/tests: mi
 	src/etc/mtree: NetBSD.dist.tests
 	src/tests/usr.bin: Makefile
 Added Files:
 	src/tests/usr.bin/infocmp: Makefile t_terminfo.sh

 Log Message:
 Add a basic test for infocmp - this would have cought todays terminfo
 lossage (PR lib/46553).


 To generate a diff of this commit:
 cvs rdiff -u -r1.472 -r1.473 src/distrib/sets/lists/tests/mi
 cvs rdiff -u -r1.77 -r1.78 src/etc/mtree/NetBSD.dist.tests
 cvs rdiff -u -r1.14 -r1.15 src/tests/usr.bin/Makefile
 cvs rdiff -u -r0 -r1.1 src/tests/usr.bin/infocmp/Makefile \
     src/tests/usr.bin/infocmp/t_terminfo.sh

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.