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 via email to