From owner-freebsd-alpha@FreeBSD.ORG Wed Apr 2 16:28:59 2003 Return-Path: Delivered-To: freebsd-alpha@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E9D8837B49D; Wed, 2 Apr 2003 16:28:58 -0800 (PST) Received: from mail.braz.ru (bsd.braz.ru [194.84.218.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6AC9743F75; Wed, 2 Apr 2003 16:28:56 -0800 (PST) (envelope-from amels@mail.braz.ru) Received: by mail.braz.ru (Postfix, from userid 1001) id C41E17B6F1; Thu, 3 Apr 2003 09:28:50 +0900 (IRKST) To: FreeBSD-gnats-submit@freebsd.org From: Sergey Amelyuschenko X-send-pr-version: 3.113 X-GNATS-Notify: Message-Id: <20030403002850.C41E17B6F1@mail.braz.ru> Date: Thu, 3 Apr 2003 09:28:50 +0900 (IRKST) cc: fjoe@freebsd.org cc: alpha@freebsd.org Subject: mc-4.6.0_2 is broken on alpha X-BeenThere: freebsd-alpha@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Alpha List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Apr 2003 00:28:59 -0000 >Submitter-Id: current-users >Originator: Sergey Amelyuschenko >Confidential: no >Synopsis: mc-4.6.0_2 is broken on alpha >Severity: non-critical >Priority: medium >Category: ports >Class: sw-bug >Release: FreeBSD 4.8-RC alpha >Environment: System: FreeBSD 4.8-RC FreeBSD 4.8-RC #8: Tue Apr 1 07:39:56 IRKST 2003 adminu5@mail.ru:/usr/obj/usr/src/sys/ALPHA alpha >Description: After upgrading mc port from 4.5.54_2 to 4.6.0_2 using of cvsup and portupgrade procedure I have in result broken mc. When I run mc it hangs. The only way to kill it is to execute "killall mc" from another console. Since CPU utilization is pretty high when mc is "hung", I think something is looping. If I roll back to mc-4.5.54_2, it works fine, so it is not kernel-related. I ran mc under truss trying to figure out what it is doing. Here is the tail of log truss mc on alpha: --- ... sigaction(SIGSYS,0x11ffb850,0x11ffb870) = 0 (0x0) __getcwd(0x12013a000,0x400) = 0 (0x0) sigaction(SIGSYS,0x11ffb870,0x0) = 0 (0x0) stat("/usr/home/user",0x11ffb928) = 0 (0x0) stat("/",0x11ffb9a0) = 0 (0x0) ioctl(1,CONS_GETINFO,0x12011b018) ERR#25 'Inappropriate ioctl for device' ioctl(1,TIOCGETA,0x12011cb2c) ERR#25 'Inappropriate ioctl for device' subshell.c: couldn't get terminal settings: Inappropriate ioctl for device writev(0x2,0x11ffb9f8,0x4) = 75 (0x4b) sigaction(SIGCHLD,0x11ffba28,0x0) = 0 (0x0) stat("/usr/home/user/.mc",0x11ffb9c8) = 0 (0x0) sigaction(SIGTSTP,0x0,0x120131410) = 0 (0x0) issetugid() = 0 (0x0) issetugid() = 0 (0x0) getuid() = 1001 (0x3e9) issetugid() = 0 (0x0) getuid() = 1001 (0x3e9) access("/usr/home/user/.terminfo/x/xterm",4) ERR#2 'No such file or directory' access("/usr/share/misc/terminfo/x/xterm",4) ERR#2 'No such file or directory' issetugid() = 0 (0x0) stat("/usr/home/user/.termcap.db",0x11ffa948) ERR#2 'No such file or directory' open("/usr/home/user/.termcap.db",0x0,00) ERR#2 'No such file or directory' open("/usr/home/user/.termcap",0x0,00) ERR#2 'No such file or directory' stat("/usr/share/misc/termcap.db",0x11ffa948) = 0 (0x0) open("/usr/share/misc/termcap.db",0x0,00) = 3 (0x3) fcntl(0x3,0x2,0x1) = 0 (0x0) read(0x3,0x120141000,0x104) = 260 (0x104) lseek(3,0x76000,0) = 483328 (0x76000) read(0x3,0x120142000,0x2000) = 8192 (0x2000) break(0x120146000) = 0 (0x0) lseek(3,0x90000,0) = 589824 (0x90000) read(0x3,0x120144000,0x2000) = 8192 (0x2000) close(3) = 0 (0x0) ioctl(1,TIOCGETA,0x11ffb928) ERR#25 'Inappropriate ioctl for device' ioctl(2,TIOCGETA,0x11ffb8e8) ERR#25 'Inappropriate ioctl for device' ioctl(1,TIOCGWINSZ,0x11ffb9a8) ERR#25 'Inappropriate ioctl for device' ioctl(0,TIOCGWINSZ,0x11ffb9a8) = 0 (0x0) ioctl(0,TIOCGETA,0x12011c5d0) = 0 (0x0) sigprocmask(0x1,0x11ffb988,0x16059b1bc) = 0 (0x0) open("/dev/tty",0x2,054026330674) = 3 (0x3) ioctl(3,TIOCGETA,0x1605893e0) = 0 (0x0) ioctl(3,TIOCGETA,0x11ffb9c8) = 0 (0x0) ioctl(3,TIOCSETAW,0x11ffb9c8) = 0 (0x0) sigprocmask(0x3,0x16059b1bc,0x0) = 0 (0x0) ioctl(3,TIOCGETA,0x12011c5fc) = 0 (0x0) ioctl(3,TIOCSETAW,0x12011c5fc) = 0 (0x0) ioctl(3,TIOCSETA,0x12011c5fc) = 0 (0x0) sigprocmask(0x1,0x11ffb9c8,0x16059b1bc) = 0 (0x0) break(0x120148000) = 0 (0x0) sigprocmask(0x3,0x16059b1bc,0x0) = 0 (0x0) sigaction(SIGINT,0x11ffba08,0x11ffba28) = 0 (0x0) access("/usr/home/user/.mc/ini",4) = 0 (0x0) open("/usr/home/user/.mc/ini",0x0,0666) = 4 (0x4) fstat(4,0x11ffa728) = 0 (0x0) break(0x12014a000) = 0 (0x0) read(0x4,0x120148000,0x2000) = 3109 (0xc25) break(0x12014c000) = 0 (0x0) read(0x4,0x120148000,0x2000) = 0 (0x0) close(4) = 0 (0x0) getuid() = 1001 (0x3e9) geteuid() = 1001 (0x3e9) getgid() = 0 (0x0) getegid() = 0 (0x0) open("/usr/local/share/mc/mc.charsets",0x0,0666) = 4 (0x4) fstat(4,0x11ffb758) = 0 (0x0) read(0x4,0x120148000,0x2000) = 213 (0xd5) read(0x4,0x120148000,0x2000) = 0 (0x0) lseek(4,0x0,0) = 213 (0xd5) lseek(4,0x0,0) = 0 (0x0) read(0x4,0x120148000,0x2000) = 213 (0xd5) read(0x4,0x120148000,0x2000) = 0 (0x0) close(4) = 0 (0x0) sigprocmask(0x1,0x11ffba18,0x16059b1bc) = 0 (0x0) 1;32r(B)032;1Hm37m40mm0mm K write(1,0x1605862e0,48) = 48 (0x30) sigprocmask(0x3,0x16059b1bc,0x0) = 0 (0x0) SIGNAL 15 SIGNAL 15 process exit, rval = 15 --- >How-To-Repeat: cvsup ports as of 04/01/03 and install /usr/ports/misc/mc port on alpha system. Run mc and it will hang. >Fix: When I roll back to mc-4.5.54_2, it works fine.