Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Jan 2026 08:11:37 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 292452] devel/lua-luarocks: luarocks51 crashes in any case of usage
Message-ID:  <bug-292452-7788@https.bugs.freebsd.org/bugzilla/>

index | next in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=292452

            Bug ID: 292452
           Summary: devel/lua-luarocks: luarocks51 crashes in any case of
                    usage
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: sunpoet@FreeBSD.org
          Reporter: sniffsla@gmail.com
             Flags: maintainer-feedback?(sunpoet@FreeBSD.org)
                CC:
          Assignee: sunpoet@FreeBSD.org

/usr/local/bin/luarocks51 installed from pkg crashes in any case of usage:

# luarocks51 
/usr/local/bin/lua51: /usr/local/share/lua/5.1/luarocks/core/persist.lua:27:
bad argument #1 to 'load' (function expected, got string)
stack traceback:
        [C]: in function 'load'
        /usr/local/share/lua/5.1/luarocks/core/persist.lua:27: in function
'run_file'
        /usr/local/share/lua/5.1/luarocks/core/persist.lua:62: in function
'load_into_table'
        /usr/local/share/lua/5.1/luarocks/core/cfg.lua:139: in function
'load_config_file'
        /usr/local/share/lua/5.1/luarocks/core/cfg.lua:733: in function 'init'
        /usr/local/share/lua/5.1/luarocks/loader.lua:21: in main chunk
        [C]: in function 'require'
        /usr/local/bin/luarocks51:9: in main chunk
        [C]: ?

# luarock51 list - the same behavior

I reproduced this bug in a new vanila jail:

# freebsd-version -ru
15.0-RELEASE-p1
15.0-RELEASE-p1
# uname -a
FreeBSD luarocksjail 15.0-RELEASE-p1 FreeBSD 15.0-RELEASE-p1
releng/15.0-n280999-7bceec30b351 GENERIC amd64
# pkg prime-list
lua51-luarocks
pkg
# pkg -vv | grep pkg.FreeBSD
    url             : "pkg+https://pkg.FreeBSD.org/FreeBSD:15:amd64/quarterly",
    url             :
"pkg+https://pkg.FreeBSD.org/FreeBSD:15:amd64/kmods_quarterly_0",
    url             :
"pkg+https://pkg.FreeBSD.org/FreeBSD:15:amd64/base_release_0",
# date -u
Tue Jan 13 11:39:50 UTC 2026

----------------------------------------------------------

After upgrade to latest pkg branch nothing changes.

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

home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-292452-7788>