Tomas Hlavaty | 22 May 09:56
Favicon

UNIX error 14 (EFAULT)

Hi all,

I would like to ask if there is a way to avoid the following crash:

1) In the first terminal run

   $ tcpserver 127.0.0.1 3333 clisp -norc -q -x '(print :hi)'

2) In the second terminal run

   $ nc localhost 3333 

   :HI 
   :HI
   $

3) In the first terminal I get

   *** - UNIX error 14 (EFAULT): Bad address

   [/build/buildd/clisp-2.49/src/eval.d:573] reset() found no driver frame
   (sp=0x7fff36a66930-0x7fff36a612f0)

which doesn't seem right, there seems to be an issue with closing the
pipe.

I am running the default clisp which comes with the latest ubuntu GNU
CLISP 2.49 (2010-07-07) on machine with Linux 3.2.0-24-generic
#37-Ubuntu SMP x86_64 GNU/Linux.

(Continue reading)

Didier Verna | 21 May 11:58
X-Face
Face
Picon
Picon
Picon
Picon
Gravatar

stream-handles behavior


  Hello,

The current behavior of EXT:STREAM-HANDLES is to return two file
descriptors (input and output) when possible, and error otherwise.

The problem I have with this behavior is that (apparently) there's no
way to predict whether it is possible to perform this operation or not
on a random stream (notably when it's just of class STREAM): IIUC,
stream_handles does the validity check based on information which is
only available at the C level.

I can currently work around this by catching STREAM-SIMPLE-ERROR but
this is not satisfactory (too coarse a grain). So my question is:

- would it hurt if EXT:STREAM-HANDLES were changed to return nil instead
  of error'ing? CCL does this with his STREAM-DEVICE function for
  instance.

- otherwise, could we have a predicate such as STREAM-HAS-HANDLES-P
  please?

Or, we could enrich the STREAM class hierarchy with a mixin for streams
with handles, or, expose the current implementation details (the
strmtype field) to the Lisp level. But maybe we don't want to go that
far :-)

Thanks!

--

-- 
(Continue reading)

Don Cohen | 11 May 19:45
Favicon

advice sought - debugging core files


I see some core files sitting around.
The file command shows, e.g.,
/home/jack/data2012/core.29192: ELF 32-bit LSB core file Intel 80386,
version 1 (SYSV), SVR4-style, from '/usr/lib/clisp-2.49/base/lisp.run -B
/usr/lib/clisp-2.49 -M /usr/lib/clisp-2.49' 

Is there some way to use the lisp debugger to see what was going on?

So far I'm up to here:

$ gdb /usr/lib/clisp-2.49/base/lisp.run /home/jack/data2012/core.29192

GNU gdb (GDB) Fedora (7.3.50.20110722-13.fc16) 
Copyright (C) 2011 Free Software Foundation, Inc. 
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> 
This is free software: you are free to change and redistribute it. 
There is NO WARRANTY, to the extent permitted by law.  Type "show copying" 
and "show warranty" for details. 
This GDB was configured as "i686-redhat-linux-gnu". 
For bug reporting instructions, please see: 
<http://www.gnu.org/software/gdb/bugs/>... 
Reading symbols from /usr/lib/clisp-2.49/base/lisp.run...Reading
symbols from /usr/lib/debug/usr/lib/clisp-2.49/base/lisp.run.debug...done. 
done. 
[New LWP 29192] 
Core was generated by `/usr/lib/clisp-2.49/base/lisp.run -B
/usr/lib/clisp-2.49 -M /usr/lib/clisp-2.49'. 
Program terminated with signal 6, Aborted. 
#0  0x00ce1416 in __kernel_vsyscall () 
(Continue reading)

Mike Eggleston | 2 May 19:23
Picon

clisp, regexp:match, and subgroups?

I'm trying to understand (regexp:match...).  I have this function
where it is matching a pattern.  I'm trying to extract that pattern.
I found where the POSIX regexps will match subgroups.  Great. I have the
matching working.  Now, how do I see any subgroup other than the first
one?  I found a mention of a (multi-value-bind...), but clisp says that
function doesn't exist.  How do I access the other-than-first matches?

Mike

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
clisp-list mailing list
clisp-list <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/clisp-list

Christopher Stacy | 1 Apr 20:42

"full" does not "make install"

On Linux, I downloaded all the components source code and was able to "make install" them.

The base is installed, but the "full" directory does not get installed.
I succeeded by manually creating the directory, links, and copying the files.

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
clisp-list mailing list
clisp-list <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/clisp-list

Christopher Stacy | 1 Apr 21:03

status of clisp on OS X

I am trying to set up clisp for FastCGI on the Mac (Snow Leopard), and it's not going well.

I downloaded libsigsegv-2.9 and it will build, but doesn't work: stackoverflow2 fails.
The MacPorts libsigsegv-2.9.0 builds and installs (don't know if it runs the checks, though).

The ffcall-1.10 doesn't even configure without blowing up several times,
and once you get past that, it doesn't build (either from the downloaded version or from MacPorts).
I see that this was originally reported a little over a year ago and the answer was:
MacOS on Intel is not supported.

I was trying to avoid being stuck on an old release, but I wanted to use clisp, not debug it.
So at this point, I gave up and tried "port install clisp".

Error: Target org.macports.build returned: shell command failed (see log for details)
Error: Status 1 encountered during processing.

;;  Loading file
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_clisp/clisp/work/clisp-2.49/src/clos-methcomb1.fas ...
WARNING: in (SETF METHOD-COMBINATION-CHECK-OPTIONS) : 
NEW-VALUE is neither declared nor bound,
it will be treated as if it were declared SPECIAL.
;;  Loaded file /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_clisp/clisp/work/clisp-2.49/src/clos-methcomb1.fas
;;  Loading file
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_clisp/clisp/work/clisp-2.49/src/clos-genfun1.fas ...
;;  Loaded file /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_clisp/clisp/work/clisp-2.49/src/clos-genfun1.fas
;;  Loading file
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_clisp/clisp/work/clisp-2.49/src/clos-genfun2a.fas ...
;;  Loaded file /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_clisp/clisp/work/clisp-2.49/src/clos-genfun2a.fas
;;  Loading file
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_clisp/clisp/work/clisp-2.49/src/clos-methcomb2.fas ...
(Continue reading)

X-Face
Face
Favicon

(require "linux") fails.


On gentoo: 

$ uname -a
Linux kuiper 2.6.38-gentoo-r6-pjb-c9 #2 SMP Wed Jul 13 00:23:08 CEST 2011 x86_64 Intel(R) Core(TM) i7 CPU
950 @ 3.07GHz GenuineIntel GNU/Linux

I cannot load the linux module, because of some undefined symbol:

TEST> (lisp-implementation-version)
"2.49+ (2010-07-17) (built 3541129397) (memory 3541129660)"
TEST> (require "linux")
;; Loading file /data/languages/clisp-hg/lib/clisp-2.49+/dynmod/linux.lisp ...
;;  Loading module linux from /data/languages/clisp-hg/lib/clisp-2.49+/dynmod/lib-linux.so

*** - SYSTEM::DYNLOAD-MODULES: "dlopen" ->
"/data/languages/clisp-hg/lib/clisp-2.49+/dynmod/lib-linux.so: undefined symbol: rpl_ioctl"
The following restarts are available:
SKIP           :R1      skip (DYNLOAD-MODULES # '#)
RETRY          :R2      retry (DYNLOAD-MODULES # '#)
STOP           :R3      stop loading file /data/languages/clisp-hg/lib/clisp-2.49+/dynmod/linux.lisp
RETRY          :R4      Retry SLIME REPL evaluation request.
PROCESS-INPUT  :R5      Continue reading input.
ABORT          :R6      Return to SLIME's top level.
CLOSE-CONNECTION :R7    Close SLIME connection.
ABORT          :R8      Abort main loop
C/Break 1 COM.INFORMATIMAGO.RUN-PROGRAM.TEST[2]> :bt

Indeed, there's a reference to rpl_ioctl in lib-linux.so:
[pjb <at> kuiper :0 tmp]$ nm /data/languages/clisp-hg/lib/clisp-2.49+/dynmod/lib-linux.so|grep rpl
(Continue reading)

Al Steffens | 25 Mar 17:52

clisp with LAPACK floating-point underflow

Looking for hints from anyone using LAPACK with clisp (2.48).  I've built the
clocc software, and build and loaded f2cl, then compiled and loaded LAPACK. 
When I call an LAPACK function, say by calling (test-dgeev) in the
lapack-tests.lisp file, there is a floating-point underflow or divide by zero
failure.  But it is not the input data.  I have a build of maxima built on top
of clisp (2.41), and calling the same function with the same data (within the
to_lisp() environment) is successful.  Evidently, there is a step needed in the
f2cl usage which the maxima developers have figured out.

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
clisp-list mailing list
clisp-list <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/clisp-list

Picon
Picon
Favicon

Link error clisp-2.49 on MacOSX

Hi,

I am trying to compile clisp-2.49 on MacOSX 10.6.8 
and I get an error during link that libiconv is not defined.
(See snippet of the build log below).

I briefly looked at the error and it seems that 
stream.c uses a macro to define iconv --> libiconv and libiconv is not
in the libiconv.2.4.0.dylib.

Does anyone have some tips on how to fix this or debug this further.
(I hope it is just a configure time flag.)

Wim Oudshoorn.

gcc -g -O2 -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type -Wmissing-declarations
-Wno-sign-compare -Wno-format-nonliteral -O -falign-functions=4 -DUNIX_BINARY_DISTRIB
-DENABLE_UNICODE -DDYNAMIC_MODULES -DNO_GETTEXT -I.   spvw.o spvwtabf.o spvwtabs.o spvwtabo.o
eval.o control.o encoding.o pathname.o stream.o socket.o io.o funarg.o array.o hashtabl.o list.o
package.o record.o weak.o sequence.o charstrg.o debug.o error.o misc.o time.o predtype.o symbol.o
lisparit.o i18n.o unixaux.o built.o modules.o -lncurses  -liconv -L/usr/local/lib -lsigsegv -lc
libgnu_cl.a -o lisp.run
Undefined symbols:
  "_libiconv", referenced from:
      _oconv_unshift_output_buffered_ in stream.o
      _oconv_unshift_output_unbuffered_ in stream.o
      _iconv_mbstowcs in stream.o
      _iconv_mbstowcs in stream.o
      _iconv_mblen in stream.o
      _iconv_range in stream.o
(Continue reading)

Achilles Xu | 10 Mar 03:00
Picon

fastcgi doesn't apper in *FEATURES*

I built clisp on a ubuntu server with './confiugre --with-module=fastcgi',
and everything got ok when I run 'make' and 'make install'.

But then when I entered the clisp repl and checked *FEATURES*, it didn't
include ':FASTCGI' or any similar symbols.

What it the problem and how can I fix it?

Thanks.

--

-- 
---------------------------
Achilles Xu
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
clisp-list mailing list
clisp-list <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/clisp-list

santi | 6 Mar 20:21
Favicon

Re: connecting CLISP and Java

Hi Kaz,

I've tried to compile my lisp application using ABCL but a appears a lot of errors, because it has some 
implementation-specific extensions that doesn’t work with ABCL that's why I stopped using.

The only two implementations that works fine with my lisp application are Allegro CL and CLISP (http://www.clisp.org/)

Any Ideas how to communicate CLISP with Java?

Thanks

-----Mensaje original-----
De: Kaz Kylheku [mailto:kaz <at> kylheku.com] 
Enviado el: lunes, 05 de marzo de 2012 17:12
Para: scarbonell <at> ono.com
CC: clisp-list <at> lists.sourceforge.net
Asunto: Re: [clisp-list] connecting CLISP and Java

On Mon, 5 Mar 2012 15:28:32 +0100 (CET), "scarbonell <at> ono.com"
<scarbonell <at> ono.com> wrote:
> Hi,
>  
> I'm new to CLISP and I'd like if someone can advise me.
> 
> I'm trying to put a java interface to a lisp application. This lisp
> application is compatible with CLISP, so I've made a mem image and
> load some cl files and can call some functions and works fine. My
> problem is that I need to create an interfaz with Java but I don't
> know how to do it.

(Continue reading)


Gmane