all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Philip McGrath" <philip@philipmcgrath.com>
To: "Guix Help" <help-guix@gnu.org>
Subject: Re: Racket REPL not working
Date: Fri, 30 Jun 2023 08:08:54 -0400	[thread overview]
Message-ID: <43b871d9-2612-4964-a90d-7c732b5f3c8f@app.fastmail.com> (raw)
In-Reply-To: <87edltee40.fsf@catsu.it>

Hi,

On Fri, Jun 30, 2023, at 12:52 AM, Chris Keschnat wrote:
> Hi,
> to me/on my machine this seems to be some environment issue.
>
> Locations are the same:
> #+begin_src sh
>   ck@brak ~  $ guix shell racket -- which racket
>   /gnu/store/36ckdvyykaz3y5xbcvsbjqj4c7sazgsm-profile/bin/racket
>
>   ck@brak ~  $ which racket
>   /home/ck/.guix-profile/bin/racket
>   ck@brak ~  $ ll /home/ck/.guix-profile/bin/racket
>   lrwxrwxrwx 1 root root 65 01.01.1970 01:00
>   /home/ck/.guix-profile/bin/racket ->
>   /gnu/store/z0a42imbmy6563wvdavapb6c8vbi1s1z-racket-8.8/bin/racket
> #+end_src
>
>
> I can run racket in a guix shell:
> #+begin_src sh
>   ck@brak ~  $ guix shell racket -- racket
>   Welcome to Racket v8.8 [cs].
>   >
> #+end_src
>
>
> And also when I use the full path:
> #+begin_src sh
>   ck@brak ~  $ ll /home/ck/.guix-profile/bin/racket
>   lrwxrwxrwx 1 root root 65 01.01.1970 01:00
>   /home/ck/.guix-profile/bin/racket ->
>   /gnu/store/z0a42imbmy6563wvdavapb6c8vbi1s1z-racket-8.8/bin/racket
>
>   ck@brak ~  $ /gnu/store/36ckdvyykaz3y5xbcvsbjqj4c7sazgsm-profile/bin/racket
>   Welcome to Racket v8.8 [cs].
>   >
> #+end_src
>
>
> Just using ~racket~ segfaults.
> #+begin_src sh
>   ck@brak ~  $ racket
>   Segmentation fault
> #+end_src
>
>
> Maybe this help?
>
> Chris
>

I just noticed this thread. As it happens, I may have hit upon the issue a few days ago:

```
$ realpath $(command -v racket)
    /gnu/store/c9l5fwhfmdspnyn5ch2g522ssxkh530a-racket-8.8/bin/racket
$ racket --version
    free(): invalid pointer
    Aborted (core dumped)
$ guix describe --format=channels
    (list (channel
            (name 'guix)
            (url "https://git.savannah.gnu.org/git/guix.git")
            (branch "master")
            (commit
              "6bc3e3f9baa52beb318dde77d1773ae83aa8683e")
            (introduction
              (make-channel-introduction
                "9edb3f66fd807b096b48283debdcddccfea34bad"
                (openpgp-fingerprint
                  "BBB0 2DDF 2CEA F6A8 0D1D  E643 A2A0 6DF2 A33A 54FA")))))
$ raco cross --workspace 20230612-5c15ebc0da/ racket -e- "(require (submod \
"indent.rkt\" cli))" --generate-from-nat 0
    >> Cross configuration
     Target:    x86_64-linux [native]
     Host:      x86_64-linux
     Version:   current
     VM:        cs
     Workspace: /home/philip/code/21.10-bastet/tmp/racket/pkgs/racket-test/t
ests/json/20230612-5c15ebc0da/
    #<infinite-enum: '(#\tab ()) '(1 ()) '(2 ())...>
    #<infinite-enum: '() '#hasheq() '(())...>
    #<11-count-enum: #\tab 1 2 3 4 5 6 7 8...>
    #<procedure:in-indent-order-cycle>
    #<procedure:random-element>
    #<procedure:to-nat>
    #<procedure:from-nat>
```

I haven't been been able to reproduce since: IIRC, it was only happening within a single Konsole tab, and it was a session in which I'd done a bunch of interactive changes that I assumed had broken something. However, I did keep a copy of the core dump, and I'll see if I can find anything from that or ask upstream for help.

Are any of you able to reproduce the problem consistently at this point?

I'd also be interested to know if the problem persists when using the pending 8.9 update: https://issues.guix.gnu.org/64247

Philip


  reply	other threads:[~2023-06-30 12:13 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-14 21:56 Racket REPL not working Zelphir Kaltstahl
2023-05-15  0:20 ` Felix Lechner via
2023-05-15 21:55   ` Zelphir Kaltstahl
2023-05-15 16:18 ` Efraim Flashner
2023-05-15 21:58   ` Zelphir Kaltstahl
2023-05-17 11:11   ` Giovanni Biscuolo
2023-06-30  4:52     ` Chris Keschnat
2023-06-30 12:08       ` Philip McGrath [this message]
2023-07-01 11:41         ` Chris Keschnat
2023-07-02  2:31           ` Philip McGrath
2023-07-02 15:34             ` Philip McGrath
2023-07-02 16:12             ` Chris Keschnat
2023-07-02 19:57               ` Philip McGrath
2023-07-05  4:16                 ` Chris Keschnat
2023-07-05  7:13                   ` How to find what grafts have been applied? [Was: Racket REPL not working] Philip McGrath
2023-08-23 14:48                 ` Racket REPL not working Simon Tournier
2023-08-23 17:54                   ` Chris Keschnat

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

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

  git send-email \
    --in-reply-to=43b871d9-2612-4964-a90d-7c732b5f3c8f@app.fastmail.com \
    --to=philip@philipmcgrath.com \
    --cc=help-guix@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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.