[Bug 274163] multimedia/arcan: Stack overflow when trying to start appl

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 29 Sep 2023 22:48:36 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274163

            Bug ID: 274163
           Summary: multimedia/arcan: Stack overflow when trying to start
                    appl
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: jbeich@FreeBSD.org
          Reporter: bugs.freebsd.org@a12l.xyz
          Assignee: jbeich@FreeBSD.org
             Flags: maintainer-feedback?(jbeich@FreeBSD.org)

Disclaimer: I don't have any prior experience running FreeBSD systems.  This is
my first FreeBSD problem report.  I've read *Writing FreeBSD Problem Reports*,
and follow it to the best of my abilities.

I've been a Linux user for the last decade.

There's no mention of "arcan" in `/usr/ports/UPDATING`.  There's no relevant
open or closed PRs against arcan currently in Bugzilla.

Expected behavior
=================

When I run `arcan ./console` (important with no slash at the end) in
`/usr/local/share/arcan/appl` the Arcan console should show up and occupy the
whole screen.

Actual behavior
===============

```
/usr/local/share/arcan/appl # arcan ./console
Sep 29 [...]: stack overflow detected; terminated
```

When I try to start the Arcan console I get an error saying that a stack
overflow happened.  A `arcan.core` file was created, which I assume is a
coredump.  When I ran `gdb ./arcan.core` I get the error
```
"/usr/local/share/arcan/appl/arcan.core": not in executable format: file format
not recognized
```
which make me unsure if `arcan.core` is actually a coredump.  I've regardless
attached `arcan.core` with this PR.

This is not something specific to the `console` app, because I get a similar
error message when I try to start Durden (another Arcan appl).

System
======

```
# uname -r
13.2-RELEASE-p3
```

Freshly installed FreeBSD 13.2 on a Thinkpad X230 with 16GB RAM, and on a
freshly installed FreeBSD system in a KVM/QEMU VM (much more constrained
hardware wise).  Both automatically partitioned with ZFS by `bsdinstall(8)`. 
Installation done with all available security features listed by
`bsdinstall(8)`.  The only non-base applications installed is `arcan`,
`durden`, `kakoune`, `ripgrep`, `bfs`, `gdb`; installed using `pkg install`. 
Everything executed as root, simply because I haven't yet created a separate
user account.

-- 
You are receiving this mail because:
You are the assignee for the bug.