[Ecls-list] slime

2012-01-14 Thread Alessandro Serra
Hi all,
I had a problem with the last version of slime (the one used by
quickload) and the cvs of ecl.
Ecl generates a memory condition in cl-peek-char.
I fixed it adding the :element-type key to the socket-accept function
in the swank-ecl.lisp.

-
 (defimplementation accept-connection (socket
  key external-format
  buffering timeout)
  (declare (ignore timeout))
  (sb-bsd-sockets:socket-make-stream (accept socket)
 :output t
 :input t
 :buffering (ecase buffering
  ((t) :full)
  ((nil) :none)
  (:line line))
 :external-format external-format
 :element-type '(unsigned-byte 8)))


You can test the bug using the following code:


(defun accept-connection (socket)
  (sb-bsd-sockets:socket-make-stream
   (sb-bsd-sockets:socket-accept socket)
   :output t
   :input t
   :buffering :full
   :external-format nil
;   :element-type '(unsigned-byte 8)))
   ))

(defun resolve-hostname (name)
  (car (sb-bsd-sockets:host-ent-addresses
(sb-bsd-sockets:get-host-by-name name

(defun create-socket ()
  (let ((socket (make-instance 'sb-bsd-sockets:inet-socket
   :type :stream
   :protocol :tcp)))
(setf (sb-bsd-sockets:sockopt-reuse-address socket) t)
(sb-bsd-sockets:socket-bind socket (resolve-hostname 127.0.0.1) 5000)
(sb-bsd-sockets:socket-listen socket 1)
socket))

(defun test ()
  (let ((socket (create-socket)))
(format t created~%)
(let ((stream (accept-connection socket))
  (length 5))
  (format t accepted~%)
  (let* ((buffer (make-array length
 :initial-element 0
 :element-type '(unsigned-byte 8)))
 (count (read-sequence buffer stream)))
(format t ~A~% buffer)))
(sb-bsd-sockets:socket-close socket)))

(test)
---

Best Regards,
Alessandro

-- 
The basic tool for the manipulation of reality is the manipulation of
words. If you can control the meaning of words, you can control the
people who must use the words.
                   How To Build A Universe That Doesn't Fall Apart Two
Days Later
                   Philip K. Dick

--
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
___
Ecls-list mailing list
Ecls-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecls-list


Re: [Ecls-list] (require 'sockets) doesn't work

2012-01-14 Thread Juan Jose Garcia-Ripoll
What configuration and version (see first lines of ECL's prompt) are you
using?

On Mon, Jan 9, 2012 at 8:34 PM, Stas Boukarev stass...@gmail.com wrote:


  (require 'sockets)

 ;;; Loading #P/home/stas/lisp/impl/ecl/build/sockets.fas

 Condition of type: SIMPLE-TYPE-ERROR
 The value of ASDF::NAME is SOCKETS, which is not of type STRING.

 While (require sockets) works.

 --
 With best regards, Stas.


 --
 Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
 infrastructure or vast IT resources to deliver seamless, secure access to
 virtual desktops. With this all-in-one solution, easily deploy virtual
 desktops for less than the cost of PCs and save 60% on VDI infrastructure
 costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
 ___
 Ecls-list mailing list
 Ecls-list@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/ecls-list




-- 
Instituto de Física Fundamental, CSIC
c/ Serrano, 113b, Madrid 28006 (Spain)
http://juanjose.garciaripoll.googlepages.com
--
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2___
Ecls-list mailing list
Ecls-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecls-list


Re: [Ecls-list] Hang opening named pipe?

2012-01-14 Thread Juan Jose Garcia-Ripoll
Hmm, I do not know much about pipes. Inspecting a running ECL, I see that
it does not hang in ECL, but in the C library: in open()

Attaching to program: `/Users/jjgarcia/bin/ecl', process 49213.
Reading symbols for shared libraries ++.. done
0x7fff86e3543e in open ()
(gdb) info threads
  2 0x7fff86e8c99e in __sigwait ()
* 1 com.apple.main-thread 0x7fff86e3543e in open ()
(gdb) bt
#0  0x7fff86e3543e in open ()
#1  0x0001000f71d4 in ecl_open_stream (fn=0x10311bf30, smm=smm_output,
if_exists=0x1002167c8, if_does_not_exist=0x100216e90, byte_size=0,
flags=256, external_format=0x100216b80) at file.d:4804


Do you have any idea why this might happen? ECL is resolving the fifo name
to a full path, btw. I do not know whether this might cause part of the
problem.

Juanjo

-- 
Instituto de Física Fundamental, CSIC
c/ Serrano, 113b, Madrid 28006 (Spain)
http://juanjose.garciaripoll.googlepages.com
--
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2___
Ecls-list mailing list
Ecls-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecls-list


Re: [Ecls-list] building static ecl

2012-01-14 Thread Juan Jose Garcia-Ripoll
Works here. What version is this? What platform? What configuration flags?

2012/1/11 Jędrzej Nasiadek jedrzej.nasia...@gmail.com

 Hi!

 I tried to build ecl with --disable-shared option, it fails however
 with the following error:

 ;;; Note:
 ;;;   Invoking external command:
 ;;;   ranlib libcmp.a
 Cannot print object #hash-table 088f65d0 readably.

 No restarts available.

 Top level.
 

 I found, the error is generaten by the build-fake-module function
 which in turn is invoked by the build-module function.

 Do you have any ideas how to make it work?

 best regards,
   Jędrzej


 --
 Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
 infrastructure or vast IT resources to deliver seamless, secure access to
 virtual desktops. With this all-in-one solution, easily deploy virtual
 desktops for less than the cost of PCs and save 60% on VDI infrastructure
 costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
 ___
 Ecls-list mailing list
 Ecls-list@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/ecls-list




-- 
Instituto de Física Fundamental, CSIC
c/ Serrano, 113b, Madrid 28006 (Spain)
http://juanjose.garciaripoll.googlepages.com
--
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2___
Ecls-list mailing list
Ecls-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecls-list


Re: [Ecls-list] how to prevent ECL entering debugger when C compiler fails?

2012-01-14 Thread Matthew Mondor
On Sun, 15 Jan 2012 00:46:02 +0100
Juan Jose Garcia-Ripoll juanjose.garciarip...@googlemail.com wrote:

 I am afraid this is due to ASDF: it overrides your handlers by inserting
 one that breaks when the compiler signals some error or some warning. I
 find it very annoying because it makes debugging compiler errors very very
 hard.

I agree that this could be annoying, it sounds like something that
should be configurable, if it isn't already...  This rings back a
memory where another ECL user I know was discussing a similar problem
(I'm not sure if the cause was actually this same ASDF issue, though).
-- 
Matt

--
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
___
Ecls-list mailing list
Ecls-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecls-list


Re: [Ecls-list] (require 'sockets) doesn't work

2012-01-14 Thread Stas Boukarev
Juan Jose Garcia-Ripoll juanjose.garciarip...@googlemail.com writes:

 What configuration and version (see first lines of ECL's prompt) are you
 using?
That was the latest git revision at the moment, with --enable-threads and 
--enable-unicode.

-- 
With best regards, Stas.

--
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
___
Ecls-list mailing list
Ecls-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecls-list