chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] Segfault with large data-structures


From: Arthur Maciel
Subject: Re: [Chicken-users] Segfault with large data-structures
Date: Sat, 2 Feb 2013 22:05:55 -0200

Kristian, thanks for reporting that.

I've been running through csi for aproxiamtely 10 hours and it never seems to finish. I'm not sure this task is that big.

2013/2/2 Kristian Lein-Mathisen <address@hidden>

I'm getting the same result here, when I run it through csc. When I run it through csi, though, it never seems to finish - is the task that big? I had to kill it after 2-3 hours.

address@hidden ~]$ csi -version

CHICKEN
(c)2008-2012 The Chicken Team
(c)2000-2007 Felix L. Winkelmann
Version 4.8.1 (rev e5ed396)
linux-unix-gnu-x86-64 [ 64bit manyargs dload ptables ]
compiled 2012-09-30 on kth (Linux)

address@hidden ~]$ uname -a
Linux kth 3.7.5-1-ARCH #1 SMP PREEMPT Mon Jan 28 10:03:32 CET 2013 x86_64 GNU/Linux

K.



On Sat, Feb 2, 2013 at 9:40 PM, Jim Ursetto <address@hidden> wrote:
What version of chicken, and if 4.8.0 for example could you try 4.7?

On Feb 2, 2013, at 11:51, Arthur Maciel <address@hidden> wrote:

> Hello! I don't know if it is related to Ivan's problem, but when I compile and run this code:
>
> (use srfi-69)
>
> (define NODES 250000)
> (define EDGES 1000)
>
> (define graph (make-hash-table))
>
> (define (insert-edges)
>   (printf "~N Hash-tables - Inserting edges ~N")
>   (do ((n 1 (+ n 1))) ((= n NODES))
>     (if (= (remainder n 5000) 0)
>         (printf " ~S nodes inserted ~N" n))
>     (do ((e 2 (+ e 1))) ((= e (+ 1 EDGES)))
>       (hash-table-update!/default graph
>                                   n
>                                   (lambda (edges-list)
>                                     (if (member e edges-list)
>                                         edges-list
>                                         (cons e edges-list)))
>                                   (list e)))))
>
> (time  (insert-edges))
>
> I get this:
>
>  $ csc list-in-hash-table-partials.scm -o list-partials.scm
>  $ ./list-partials.scm
>
>  Hash-tables - Inserting edges
>  5000 nodes inserted
>  10000 nodes inserted
>  15000 nodes inserted
>  20000 nodes inserted
>  25000 nodes inserted
>  30000 nodes inserted
>  35000 nodes inserted
>  40000 nodes inserted
> Segmentation fault
>
>
> I tried to compile with -O2, -O -d2 and -O3. It doesn't make difference for me: it always present a segfault. Any hint on how to make it work?
>
> Thanks!
> Arthur
> _______________________________________________
> Chicken-users mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/chicken-users

_______________________________________________
Chicken-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/chicken-users



reply via email to

[Prev in Thread] Current Thread [Next in Thread]