From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan McMahill Newsgroups: gmane.lisp.guile.user Subject: Re: debugging guile test failure and segfault. Date: Sun, 10 Jun 2007 12:50:14 -0400 Message-ID: <466C2BC6.2020609@mtl.mit.edu> References: <46644283.2070003@mtl.mit.edu> <87myzd4hj5.fsf@laas.fr> <46679313.6070100@mtl.mit.edu> <87myzcw397.fsf@laas.fr> <4669DDE1.6040901@mtl.mit.edu> <87645vvrwn.fsf@chbouib.org> Reply-To: mcmahill@mtl.mit.edu NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1181494757 6133 80.91.229.12 (10 Jun 2007 16:59:17 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 10 Jun 2007 16:59:17 +0000 (UTC) To: =?ISO-8859-1?Q?Ludovic_Court=E8s?= , guile-user Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sun Jun 10 18:59:16 2007 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HxQl2-0006ni-1N for guile-user@m.gmane.org; Sun, 10 Jun 2007 18:59:16 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HxQl1-00079J-Ir for guile-user@m.gmane.org; Sun, 10 Jun 2007 12:59:15 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HxQkw-000787-BR for guile-user@gnu.org; Sun, 10 Jun 2007 12:59:10 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HxQku-00075c-7v for guile-user@gnu.org; Sun, 10 Jun 2007 12:59:09 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HxQku-00075U-3N for guile-user@gnu.org; Sun, 10 Jun 2007 12:59:08 -0400 Original-Received: from rwcrmhc13.comcast.net ([204.127.192.83]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HxQkt-0005ks-Np for guile-user@gnu.org; Sun, 10 Jun 2007 12:59:07 -0400 Original-Received: from [10.0.0.13] (c-67-191-147-129.hsd1.ga.comcast.net[67.191.147.129]) by comcast.net (rwcrmhc13) with ESMTP id <20070610165849m1300dnemce>; Sun, 10 Jun 2007 16:59:05 +0000 User-Agent: Mail/News 1.5.0.10 (X11/20070512) In-Reply-To: <87645vvrwn.fsf@chbouib.org> X-detected-kernel: NetCache Data OnTap 5.x X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:5979 Archived-At: Ludovic Courtès wrote: > Hi, > > Dan McMahill writes: > >> Backtrace: >> In unknown file: >> ?: 0* [primitive-load "test-suite/tests/r4rs.test"] >> In test-suite/tests/r4rs.test: >> 923: 1* >> Exception during displaying of backtrace: system-error >> >> test-suite/tests/r4rs.test:88:45: In procedure ttyname in expression >> (write (cons fun args) port): >> test-suite/tests/r4rs.test:88:45: No such file or directory >> ABORT: (system-error) >> guile> (debug) >> Frame 9 at test-suite/tests/r4rs.test:88:45 >> ERROR: In procedure ttyname: >> ERROR: No such file or directory >> ABORT: (system-error) >> guile> >> >> this doesn't look promising. > > Well, it's much better than a segfault. ;-) > > This happens when trying to display a file port allegedly backed by a > TTY file descriptor. See `fports.c:fport_print' (line 676): > > if (isatty (fdes)) > scm_display (scm_ttyname (exp), port); > > What seems to be happening is that `isatty (fdes)' returns true but then > `ttyname (fdes)' fails. > > I suspect that the port at hand is `(current-output-port)' or some > such. On GNU/Linux, we get the following: > > guile> (ttyname (current-output-port)) > "/dev/pts/11" > > Can you try this on your OS? I think it has to do with running inside of a chroot-ed environment. I'll have to try this out with guile-1.8.1, but with 1.6.8, this is what I see on Solaris-2.9/sparc: chroot: guile> (ttyname (current-output-port)) standard input:3:1: In procedure ttyname in expression (ttyname (current-output-port)): standard input:3:1: No such file or directory ABORT: (system-error) Type "(backtrace)" to get more information or "(debug)" to enter the debugger. guile> (version) "1.6.8" not chroot: guile> (ttyname (current-output-port)) "/dev/pts/13" guile> (version) "1.6.8" with 1.8.1 on this system, it works outside the chroot and I need to try in the chroot still. I'll bet thats whats going on with NetBSD as well. My failed tests are all inside a chroot environment. -Dan _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user