unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Damien Mattei <damien.mattei@gmail.com>
To: guile-user <guile-user@gnu.org>
Subject: Re: error : mutex already locked by thread
Date: Thu, 5 Jan 2023 16:31:00 +0100	[thread overview]
Message-ID: <CADEOadc3cRzPkXQO6fEnvn3Tw9EODfTN3BUyWp06k=8gZhZBBQ@mail.gmail.com> (raw)
In-Reply-To: <CADEOadcxSaOJadhpDVhg26YeoD+qnupHEO+ZkmuC2_VMvdNgZA@mail.gmail.com>

sorry for the inconvenience
in fact the code compile,the message is only displayed at compile time when
using and uncommenting  (parallel vector) used later here:
 (parallel-vector-map function-unify-minterms-list-index minterms-vector)
which cause a crash of the code:

scheme@(guile-user)> (logic-test)
test 1
(or (and (not a) (not b) (not c) (not d)) (and (not a) (not b) (not c) d)
(and (not a) (not b) c (not d)) (and (not a) b (not c) d) (and (not a) b c
(not d)) (and (not a) b c d) (and a (not b) (not c) (not d)) (and a (not b)
(not c) d) (and a (not b) c (not d)) (and c (not d))) =
ice-9/boot-9.scm:1685:16: In procedure raise-exception:
In procedure variable-ref: Unbound variable: #<variable 7fdb92501ba0 value:
#<undefined>>

Entering a new prompt.  Type `,bt' for a backtrace or `,q' to continue.
scheme@(guile-user) [1]> ,bt
In ice-9/eval.scm:
    619:8 13 (_ #(#(#(#<directory (guile-user) 7fdb9e3c0c80>)
#<continuation 7fdb93671ba0>) #<variable 7fdb932f2ff0 v…> …))
   626:19 12 (_ #(#(#(#<directory (guile-user) 7fdb9e3c0c80>)
#<continuation 7fdb93671ba0>) #<variable 7fdb932f2ff0 v…> …))
    155:9 11 (_ #(#(#<directory (guile-user) 7fdb9e3c0c80>) (or (and (not
a) (not b) (not c) (not d)) (and (not …) …) …)))
    619:8 10 (_ #(#(#(#<directory (guile-user) 7fdb9e3c0c80>) (or (and (not
a) (not b) (not c) (not d)) (and # …) …)) # …))
   626:19  9 (_ #(#(#(#<directory (guile-user) 7fdb9e3c0c80>) (or (and (not
a) (not b) (not c) (not d)) (and # …) …)) # …))
    619:8  8 (_ #(#(#(#<directory (guile-user) 7fdb9e3c0c80> (a b c d) (or
(and c (not d)) (and a (not b) # d) …)) #) # …))
   626:19  7 (_ #(#(#(#<directory (guile-user) 7fdb9e3c0c80> (a b c d) (or
(and c (not d)) (and a (not b) # d) …)) #) # …))
In unknown file:
           6 (sort ((1 1 1 0) (1 0 1 0) (1 0 0 1) (1 0 0 0) (0 1 1 1) (0 1
1 0) (0 1 0 1) (0 0 1 0) (0 0 0 1) (0 0 0 …)) #)
In ice-9/eval.scm:
    159:9  5 (_ #(#(#<directory (guile-user) 7fdb9e3c0c80>) (1 0 0 1) (1 0
1 0)))
    619:8  4 (_ #(#(#(#<directory (guile-user) 7fdb9e3c0c80>) (1 0 0 1))
#<variable 7fdb92501bb0 value: #<undefined>> # …))
   304:50  3 (_ #(#(#(#<directory (guile-user) 7fdb9e3c0c80>) (1 0 0 1))
#<variable 7fdb92501bb0 value: #<undefined>> # …))
   196:27  2 (_ #(#(#(#<directory (guile-user) 7fdb9e3c0c80>) (1 0 0 1))
#<variable 7fdb92501bb0 value: #<undefined>> # …))
    227:9  1 (_ _)
In ice-9/boot-9.scm:
  1685:16  0 (raise-exception _ #:continuable? _)

i will investigate further parallel-vector-map on simpler example,
again sorry for the incovenience.
Damien


On Thu, Jan 5, 2023 at 4:16 PM Damien Mattei <damien.mattei@gmail.com>
wrote:

> Hi,
>
> i have an error i never seen, without a line in code ,  the code worked on
> Mac OS and on Linux , i did a fresh install of Linux and Guile and now i
> have this error that seems unrelated with my code ( that did not changed) :
>
> In procedure lock-mutex: mutex already locked by thread
>
> any idea?
>
> GNU Guile 3.0.8.99-f3ea8
> Copyright (C) 1995-2022 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@(guile-user)> (load "start-λογικι-guile+.scm")
> ;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0
> ;;;       or pass the --no-auto-compile argument to disable.
> ;;; compiling
> /home/mattei/Dropbox/git/library-FunctProg/start-λογικι-guile+.scm
> ;;; WARNING: compilation of
> /home/mattei/Dropbox/git/library-FunctProg/start-λογικι-guile+.scm failed:
> ;;; In procedure lock-mutex: mutex already locked by thread
>
> Damien
>


      reply	other threads:[~2023-01-05 15:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-05 15:16 error : mutex already locked by thread Damien Mattei
2023-01-05 15:31 ` Damien Mattei [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CADEOadc3cRzPkXQO6fEnvn3Tw9EODfTN3BUyWp06k=8gZhZBBQ@mail.gmail.com' \
    --to=damien.mattei@gmail.com \
    --cc=guile-user@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).