From nobody Fri Sep 20 16:51:20 2024 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4X9JLc3JkFz5W7F4 for ; Fri, 20 Sep 2024 16:51:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4X9JLc02zdz4qFc for ; Fri, 20 Sep 2024 16:51:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1726851080; a=rsa-sha256; cv=none; b=E9l/zNcDEjqJCr63MdgYVda/25XFzKUcFbE5TXlkJRVufAxHr8rjD7Lct8Kzl8iLnigYz5 PtQmohjMOt03T+lbMMimfp5Aeftmo7Koo79ZhbneggDOfNikjfQYdSU/IqC+DK0/cANNqM jteypMu316YrKFbVsNpj/ZLbg82Y7VfMOugGHpcnhULCUYy3PM0l9+KdsIxeHSlLDNqYML Z2jspBH6N0cMPeSZH+GhdHaW/MJZMSl5t+htLZq8ZLUL5DNrNcgyqSWtXlDgZb1N+K9mj8 aClD9MUajn7sPCFPY9L0lkeHGVsAhYJFh/2yz6Z36wgwobHcgEJ/+L8TXC+8ew== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1726851080; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ub8yKjo+9yPpAcMBq3SFCp9r3HEaXKzxP7Y3qjSgjrc=; b=nAwxrJGo3UR23Oq67d1Fo+7+z/xRbJLp/SHXKIJDlyZiN7V/dnudZUVsQKJpSh3Fpicb/c CrjZL2qu/qyj0LzWmyVtMZuo7xqmUgnjKa7ilPCboub6nEKafT3dyNO9K66GftIxeD4sQA bx8zvGcZ5kiJkBVQHaTa5JJtsATqSprF7l0Kgi9+dQFcSwB+X/BmqvBjkezAcvQ/hsfyhu BzFSyPSfLYim2+dQ/qHRN2wf7PzcwYvqeOdII3yG7g3IWCk1tPGEH0i85RK0w4By6ehX8d 1lp8G8nZXzRsjznHuL4U84yL8E5j6Vji9yGVYKZpZ/B0PKcI+OG0j1vzQdpu9A== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4X9JLb6jbwzx7Q for ; Fri, 20 Sep 2024 16:51:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 48KGpJHB049000 for ; Fri, 20 Sep 2024 16:51:19 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 48KGpJfG048999 for bugs@FreeBSD.org; Fri, 20 Sep 2024 16:51:19 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 281574] bc(1) runs in endless loop Date: Fri, 20 Sep 2024 16:51:20 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 15.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jfc@mit.edu X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D281574 --- Comment #4 from John F. Carr --- I was looking in the wrong place for bc when I commented on the change hist= ory. Source directory usr.bin/bc is not the one that is installed. (That one a= lso behaves oddly in response to ^D, probably due to the "error QUIT" rule in t= he grammar not causing it to quit.) Here is what truss says when I type ^D to an older bc, version 5.2.2 or 6.7= .6: 28787: ioctl(0,TIOCSETAW,0x75c7d3a5b264) =3D 0 (0x0) 28787: read(0,"\^D",1) =3D 1 (0x1) 28787: fstat(1,{ mode=3Dcrw--w---- ,inode=3D96,size=3D0,blksize=3D4096 }) = =3D 0 (0x0) 28787: ioctl(1,TIOCGETA,0x4c2f87f0125c) =3D 0 (0x0) 28787: write(1,"^D",2) =3D 2 (0x2) 28787: ioctl(0,TIOCSETAW,0x75c7d3a5b238) =3D 0 (0x0) 28787: write(1,"\n",1) =3D 1 (0x1) 28787: ioctl(0,TIOCSETAF,0x75c7d3a5b20c) =3D 0 (0x0) 28787: exit(0x0) All is well despite the odd behavior of a literal ^D being read. If I have 7.0.1 then it does not quit and truss says 37822: ioctl(0,TIOCSETAW,0x88d4efe5b264) =3D 0 (0x0) 37822: read(0,"\^D",1) =3D 1 (0x1) 37822: fstat(1,{ mode=3Dcrw------- ,inode=3D45,size=3D0,blksize=3D4096 }) = =3D 0 (0x0) 37822: ioctl(1,TIOCGETA,0x7ddad4152e7c) =3D 0 (0x0) 37822: write(1,"^D",2) =3D 2 (0x2) 37822: ioctl(0,TIOCSETAW,0x88d4efe5b238) =3D 0 (0x0) 37822: sigprocmask(SIG_BLOCK,{ SIGWINCH },{ }) =3D 0 (0x0) 37822: ioctl(0,TIOCGWINSZ,0x7ddad4153100) =3D 0 (0x0) 37822: sigprocmask(SIG_SETMASK,{ },0x0) =3D 0 (0x0) 37822: ioctl(0,TIOCGETA,0x88d4efe5b290) =3D 0 (0x0) 37822: ioctl(0,TIOCSETAW,0x88d4efe5b264) --=20 You are receiving this mail because: You are the assignee for the bug.=