From knauel@informatik.uni-tuebingen.de Thu May 17 22:23:50 2007 Return-Path: Received: from abbruchco.de ([unix socket]) by h8114.serverkompetenz.net (Cyrus v2.2.12) with LMTPA; Thu, 17 May 2007 22:23:50 +0200 X-Sieve: CMU Sieve 2.2 Received: from abbruchco.de (localhost.serverkompetenz.net [127.0.0.1]) by int.abbruchco.de (Postfix) with ESMTP id 8F90C80 for ; Thu, 17 May 2007 22:23:47 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on h8114.serverkompetenz.net X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.1.0 X-Spam-Level: Received: from mx4.informatik.uni-tuebingen.de (mx4.Informatik.Uni-Tuebingen.De [134.2.12.29]) by abbruchco.de (Postfix) with ESMTP id 32FB413 for ; Thu, 17 May 2007 22:23:47 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mx4.informatik.uni-tuebingen.de (Postfix) with ESMTP id C8CFA3528 for ; Thu, 17 May 2007 22:23:46 +0200 (MEST) Received: from mx4.informatik.uni-tuebingen.de ([127.0.0.1]) by localhost (mx4.informatik.uni-tuebingen.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id A3+ch99RRhNs for ; Thu, 17 May 2007 22:23:41 +0200 (MEST) Received: by mx4.informatik.uni-tuebingen.de (Postfix, from userid 5324) id 6EFEF3530; Thu, 17 May 2007 22:23:38 +0200 (MEST) X-Original-To: knauel@informatik.uni-tuebingen.de Delivered-To: knauel@informatik.uni-tuebingen.de Received: from localhost (localhost [127.0.0.1]) by mx4.informatik.uni-tuebingen.de (Postfix) with ESMTP id 8C18E3529; Thu, 17 May 2007 22:23:36 +0200 (MEST) Received: from mx4.informatik.uni-tuebingen.de ([127.0.0.1]) by localhost (mx4.informatik.uni-tuebingen.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CUQDuB9uqm7P; Thu, 17 May 2007 22:23:35 +0200 (MEST) Received: from www.scsh.net (bernard.Informatik.Uni-Tuebingen.De [134.2.12.122]) by mx4.informatik.uni-tuebingen.de (Postfix) with ESMTP id 80A823519; Thu, 17 May 2007 22:23:34 +0200 (MEST) Received: by www.scsh.net (Postfix, from userid 3123) id 7F9BB5EE3; Thu, 17 May 2007 22:23:31 +0200 (MST) Old-Return-Path: X-Original-To: scsh-users@scsh.net Delivered-To: scsh-users@scsh.net X-Authenticated: #3737989 X-Provags-ID: V01U2FsdGVkX1+AUiwUXY6AKgJBRjzEad2gyJE9sm0MPZjmCAC/kN ZiOXB4qnrt+KJO To: scsh-users@scsh.net Subject: Problem using sockets Organization: The Church of Emacs From: Emilio Lopes Date: Thu, 17 May 2007 22:18:15 +0200 Message-ID: <0mk5v719x4.fsf@freenet.de> User-Agent: Emacs Gnus MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Y-GMX-Trusted: 0 Resent-Message-ID: Resent-From: scsh-users@scsh.net X-Mailing-List: unarchived X-Loop: scsh-users@scsh.net List-Post: List-Help: List-Subscribe: List-Unsubscribe: Precedence: list Resent-Sender: scsh-users-request@scsh.net List-Id: List-Archive: Resent-Date: Thu, 17 May 2007 22:23:31 +0200 (MST) X-Spam: no; 0.00; exception:01 debugging:01 level:01 debug:01 level:01 debug:01 error:01 permission:01 denied:01 case:01 matters:99 uname:01 mon:01 utc:01 2007:01 X-EJK: scsh Status: RO Content-Length: 2147 Lines: 66 I hope the transcript bellow is enough to describe the problem. Basically I get an exception when trying to write to a socket. I'm pretty sure this used to work, but it doesn't anymore... I also tried to enable some debugging, but it failed: > (socket-option *server-socket* level/socket socket/debug) #f > (set-socket-option *server-socket* level/socket socket/debug #t) Error: 13 "Permission denied" #{Procedure 11768 (%setsockopt in scsh-level-0)} 9 1 1 1 In case it matters: ~% uname -a Linux jumeirah 2.6.18-4-k7 #1 SMP Mon Mar 26 17:57:15 UTC 2007 i686 GNU/Linux Any hint? Welcome to scsh 0.6.7 (R6RS) Type ,? for help. > ,open threads > (define (server-start socket socket-addr) (format #t "Hello, ~a!\n" (host-info:name (host-info socket-addr))) (let ((inport (socket:inport socket)) (outport (socket:outport socket))) (let loop () (let ((input (read-line inport 'trim))) (cond ((eof-object? input) (display "Goodbye.\n" outport) (shutdown-socket socket shutdown/sends+receives)) (else (format outport "You said: \"~A\".\n" input) (loop))))))) > (spawn (lambda () (bind-listen-accept-loop protocol-family/internet server-start 6666))) > (define *server-socket* (socket-connect protocol-family/internet socket-type/stream "localhost" 6666)) Hello, jumeirah! > (connect-socket-successful? *server-socket*) #t > (send-message *server-socket* "hi!") Error: exception gc-protection-mismatch (call-external-value "send_substring") 1> ,debug '#{Exception-continuation (pc 3) (call-external-value in scheme-level-0)} inspect: d '#{Continuation (pc 62) (with-dynamic-env in fluids)} [0] '#{Procedure 1109 (unnamed in with-dynamic-env in fluids)} [1] '((# . #f) (# # # # # ---) (# . #) (# # # # # ---) (# # # # #) ---) [2] #f [3] #f inspect: q '#{Continuation (pc 62) (with-dynamic-env in fluids)} 1> From knauel@informatik.uni-tuebingen.de Fri May 18 07:53:29 2007 Return-Path: Received: from abbruchco.de ([unix socket]) by h8114.serverkompetenz.net (Cyrus v2.2.12) with LMTPA; Fri, 18 May 2007 07:53:29 +0200 X-Sieve: CMU Sieve 2.2 Received: from abbruchco.de (localhost.serverkompetenz.net [127.0.0.1]) by int.abbruchco.de (Postfix) with ESMTP id D098056 for ; Fri, 18 May 2007 07:53:26 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on h8114.serverkompetenz.net X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.1.0 X-Spam-Level: Received: from mx4.informatik.uni-tuebingen.de (mx4.Informatik.Uni-Tuebingen.De [134.2.12.29]) by abbruchco.de (Postfix) with ESMTP id ACCE613 for ; Fri, 18 May 2007 07:53:26 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mx4.informatik.uni-tuebingen.de (Postfix) with ESMTP id 710BF34E9 for ; Fri, 18 May 2007 07:53:26 +0200 (MEST) Received: from mx4.informatik.uni-tuebingen.de ([127.0.0.1]) by localhost (mx4.informatik.uni-tuebingen.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cNh-nI5dnnRo for ; Fri, 18 May 2007 07:53:22 +0200 (MEST) Received: by mx4.informatik.uni-tuebingen.de (Postfix, from userid 5324) id 668AD34F7; Fri, 18 May 2007 07:53:21 +0200 (MEST) X-Original-To: knauel@informatik.uni-tuebingen.de Delivered-To: knauel@informatik.uni-tuebingen.de Received: from localhost (localhost [127.0.0.1]) by mx4.informatik.uni-tuebingen.de (Postfix) with ESMTP id A44B534E7; Fri, 18 May 2007 07:53:19 +0200 (MEST) Received: from mx4.informatik.uni-tuebingen.de ([127.0.0.1]) by localhost (mx4.informatik.uni-tuebingen.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id j57YJdTjay6J; Fri, 18 May 2007 07:53:19 +0200 (MEST) Received: from www.scsh.net (bernard.Informatik.Uni-Tuebingen.De [134.2.12.122]) by mx4.informatik.uni-tuebingen.de (Postfix) with ESMTP id 6B72134BF; Fri, 18 May 2007 07:53:18 +0200 (MEST) Received: by www.scsh.net (Postfix, from userid 3123) id B044B5EE3; Fri, 18 May 2007 07:53:15 +0200 (MST) Old-Return-Path: X-Original-To: scsh-users@scsh.net Delivered-To: scsh-users@scsh.net X-Greylist: delayed 11773 seconds by postgrey-1.27 at mx4; Fri, 18 May 2007 07:51:04 MEST From: "Trent Buck" Date: Fri, 18 May 2007 09:31:33 +1000 To: scsh-users@scsh.net Subject: Re: Problem using sockets Message-ID: <20070517233133.GA30573@baal.lan> References: <0mk5v719x4.fsf@freenet.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="huq684BweRXVnRxX" Content-Disposition: inline In-Reply-To: <0mk5v719x4.fsf@freenet.de> User-Agent: Mutt/1.5.13 (2006-08-11) Resent-Message-ID: Resent-From: scsh-users@scsh.net X-Mailing-List: unarchived X-Loop: scsh-users@scsh.net List-Post: List-Help: List-Subscribe: List-Unsubscribe: Precedence: list Resent-Sender: scsh-users-request@scsh.net List-Id: List-Archive: Resent-Date: Fri, 18 May 2007 07:53:15 +0200 (MST) X-Spam: no; 0.00; 2007:01 exception:01 wrote:01 used:02 using:02 thu:03 describe:03 U4:05 code:07 ...:09 gmail:10 pretty:10 sure:11 while:12 i'm:13 X-Attachments: type="application/pgp-signature" name="signature.asc" X-EJK: scsh Status: RO Content-Length: 948 Lines: 33 --huq684BweRXVnRxX Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, May 17, 2007 at 10:18:15PM +0200, Emilio Lopes wrote: > I hope the transcript bellow is enough to describe the problem. > Basically I get an exception when trying to write to a socket. I'm > pretty sure this used to work, but it doesn't anymore... FWIW, while I don't understand any of the code, I can reproduce the symptoms with ii linux-image-2.6.20-1-amd64 2.6.20-3 ii scsh-0.6 0.6.7-4 --=20 Trent Buck --huq684BweRXVnRxX Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFGTOXVLpef9iTtxAYRAstxAJ9U3LwPldT/f5GGKhB9bt+Wwvqg1QCeK54H 8wOyvTMHeEdJCRDhwv0H9mk= =npiB -----END PGP SIGNATURE----- --huq684BweRXVnRxX-- From knauel@informatik.uni-tuebingen.de Fri May 18 18:19:42 2007 Return-Path: Received: from abbruchco.de ([unix socket]) by h8114.serverkompetenz.net (Cyrus v2.2.12) with LMTPA; Fri, 18 May 2007 18:19:42 +0200 X-Sieve: CMU Sieve 2.2 Received: from abbruchco.de (localhost.serverkompetenz.net [127.0.0.1]) by int.abbruchco.de (Postfix) with ESMTP id 8C1C183 for ; Fri, 18 May 2007 18:19:39 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on h8114.serverkompetenz.net X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.1.0 X-Spam-Level: Received: from mx4.informatik.uni-tuebingen.de (mx4.Informatik.Uni-Tuebingen.De [134.2.12.29]) by abbruchco.de (Postfix) with ESMTP id 6280E80 for ; Fri, 18 May 2007 18:19:39 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mx4.informatik.uni-tuebingen.de (Postfix) with ESMTP id 3001334F0 for ; Fri, 18 May 2007 18:19:39 +0200 (MEST) Received: from mx4.informatik.uni-tuebingen.de ([127.0.0.1]) by localhost (mx4.informatik.uni-tuebingen.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zZ1mjpTc7vvp for ; Fri, 18 May 2007 18:19:33 +0200 (MEST) Received: by mx4.informatik.uni-tuebingen.de (Postfix, from userid 5324) id A71F934F8; Fri, 18 May 2007 18:19:32 +0200 (MEST) X-Original-To: knauel@informatik.uni-tuebingen.de Delivered-To: knauel@informatik.uni-tuebingen.de Received: from localhost (localhost [127.0.0.1]) by mx4.informatik.uni-tuebingen.de (Postfix) with ESMTP id EDF7A34F1; Fri, 18 May 2007 18:19:30 +0200 (MEST) Received: from mx4.informatik.uni-tuebingen.de ([127.0.0.1]) by localhost (mx4.informatik.uni-tuebingen.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Ik7LovJvkm2E; Fri, 18 May 2007 18:19:30 +0200 (MEST) Received: from www.scsh.net (bernard.Informatik.Uni-Tuebingen.De [134.2.12.122]) by mx4.informatik.uni-tuebingen.de (Postfix) with ESMTP id BF8E634ED; Fri, 18 May 2007 18:19:29 +0200 (MEST) Received: by www.scsh.net (Postfix, from userid 3123) id 13E5C5EE4; Fri, 18 May 2007 18:19:26 +0200 (MST) Old-Return-Path: X-Original-To: scsh-users@scsh.net Delivered-To: scsh-users@scsh.net X-Authenticated: #3737989 X-Provags-ID: V01U2FsdGVkX18/3cslrxI/1cJdunZm1cLgXw0Qg+qQ6kmmUTYgnt DlueEY4QZzMZwC To: "Trent Buck" Cc: scsh-users@scsh.net Subject: Re: Problem using sockets Organization: The Church of Emacs From: Emilio Lopes References: <0mk5v719x4.fsf@freenet.de> <20070517233133.GA30573@baal.lan> Date: Fri, 18 May 2007 18:14:09 +0200 In-Reply-To: <20070517233133.GA30573@baal.lan> (Trent Buck's message of "Fri\, 18 May 2007 09\:31\:33 +1000") Message-ID: User-Agent: Emacs Gnus MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Y-GMX-Trusted: 0 Resent-Message-ID: Resent-From: scsh-users@scsh.net X-Mailing-List: unarchived X-Loop: scsh-users@scsh.net List-Post: List-Help: List-Subscribe: List-Unsubscribe: Precedence: list Resent-Sender: scsh-users-request@scsh.net List-Id: List-Archive: Resent-Date: Fri, 18 May 2007 18:19:26 +0200 (MST) X-Spam: no; 0.00; writes:01 2007:01 exception:01 turns:99 scsh:01 king:01 define:01 stream:01 hello:99 wohin:01 type:01 wann:01 wrote:01 ich:02 ich:02 X-EJK: scsh Status: RO Content-Length: 1194 Lines: 31 Trent Buck writes: > On Thu, May 17, 2007 at 10:18:15PM +0200, Emilio Lopes wrote: >> I hope the transcript bellow is enough to describe the problem. >> Basically I get an exception when trying to write to a socket. I'm >> pretty sure this used to work, but it doesn't anymore... > FWIW, while I don't understand any of the code, I can reproduce the > symptoms with > ii linux-image-2.6.20-1-amd64 2.6.20-3 > ii scsh-0.6 0.6.7-4 Thanks for confirming the problem. It turns out it the code really worked with version 0.6.6: Welcome to scsh 0.6.6 (King Conan) Type ,? for help. > ... > (define *server-socket* (socket-connect protocol-family/internet socket-type/stream "localhost" 6666)) Hello, jumeirah! > (send-message *server-socket* "hi!\n") > (read-line (socket:inport *server-socket*)) "You said: \"hi!\"." > -- Emílio C. Lopes Ich leb und weiß nit wie lang, Munich, Germany ich stirb und weiß nit wann, ich fahr und weiß nit wohin, (Martinus von Biberach) mich wundert, dass ich fröhlich bin!