On my machine with 4 procs the following program crash after a while:
(define-module (hn))
(use-modules (srfi srfi-1))
(use-modules (ice-9 receive))
(use-modules (ice-9 threads))
(use-modules (ice-9 iconv))
(use-modules (web client))
(use-modules (json))
(define (max-id)
(receive (response
On 2017-11-22 16:21, l...@gnu.org wrote:
Hi Amirouche,
Amirouche Boubekki skribis:
GNU Guile 2.2.2
Copyright (C) 1995-2017 Free Software Foundation, Inc.
Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'.
This program is free software, and you are welcome to redistr
GNU Guile 2.2.2
Copyright (C) 1995-2017 Free Software Foundation, Inc.
Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'.
This program is free software, and you are welcome to redistribute it
under certain conditions; type `,show c' for details.
Enter `,help' for help.
scheme@(
The code for SRFI-64 does implement error catching, but that it might
return #f if an error happens causing a passed test when it should have
been marked as FAIL
(use-modules (srfi srfi-64))
(test-begin "repository")
(test-equal
#f
(throw 'key))
(test-end)
On 2016-09-03 20:49, Amirouche Boubekki wrote:
On 2016-09-03 11:54, Andy Wingo wrote:
On Sat 03 Sep 2016 09:20, Amirouche Boubekki
writes:
Using guile 2.1.3, I have a program that:
- reads urls from a text file
- download the urls using curl command via popen
- output the result to stdout
On 2016-09-03 11:54, Andy Wingo wrote:
On Sat 03 Sep 2016 09:20, Amirouche Boubekki
writes:
Using guile 2.1.3, I have a program that:
- reads urls from a text file
- download the urls using curl command via popen
- output the result to stdout
Also, it relies on n-for-each-par-map for ice-9
Wingo wrote:
We could just expose `open-process' from (ice-9 popen) to start with.
AFAIK, that's what Mark wants.
Here is an example use of `open-process' to wrap `html2text':
(use-modules (ice-9 popen))
(define open-process (@@ (ice-9 popen) open-process))
(define (html2text str
Using guile 2.1.3, I have a program that:
- reads urls from a text file
- download the urls using curl command via popen
- output the result to stdout
Also, it relies on n-for-each-par-map for ice-9 threads.
IMO, the most suspicious is the definition of the `curl' proc:
(define (curl url)
wingo said:
wingo | i don't think that's a guile bug -- i think in that case you
need to handle SIGPIPE
wingo | b/c posix is weird
wingo | (sigaction SIGPIPE SIG_IGN)
wingo | the web server does it.
The attached client.scm will crash with a SIGPIPE (based on strace) when
run. It should raise an error instead.
The error happens when we try to send over socket that is closed on the
other side.
Happens on 2.0 and master.
--
Amirouche ~ amz3 ~ http://www.hyperdev.fr(define-module (client))
Héllo,
I reproduce the bug every time with the attached files. Here is gdb backtrace:
8<--8<--8<--8<--8<--8<--8<--
#0 0x77921e56 in vm_debug_engine (vm=0x6f8020,
program=0xf5b280, argv=0x7fffc100,
11 matches
Mail list logo