svn commit: r364222 - in head: lib/liblua libexec/flua

Oleksandr Tymoshenko gonzo at bluezbox.com
Fri Aug 14 00:39:48 UTC 2020


Ed Maste (emaste at FreeBSD.org) wrote:
> Author: emaste
> Date: Thu Aug 13 23:13:05 2020
> New Revision: 364222
> URL: https://svnweb.freebsd.org/changeset/base/364222
> 
> Log:
>   flua: support "require" for binary objects in the base system
>   
>   Export symbols from flua, and enable dlopen.
>   
>   Sponsored by:	The FreeBSD Foundation
>   Differential Revision:	https://reviews.freebsd.org/D26059
> 
> Modified:
>   head/lib/liblua/luaconf.h
>   head/libexec/flua/Makefile

Hi Ed,

This change breaks the build. flua segfaults when it is called during
libifconfig build.

Backtrace:

* thread #1, name = 'flua', stop reason = signal SIGSEGV
  * frame #0: 0x00000000002e166c flua.full`__je_malloc_tsd_boot0 [inlined] tsd_fetch_impl(init=true, minimal=false) at tsd.h:265:6
    frame #1: 0x00000000002e166c flua.full`__je_malloc_tsd_boot0 [inlined] tsd_fetch at tsd.h:292
    frame #2: 0x00000000002e166c flua.full`__je_malloc_tsd_boot0 at jemalloc_tsd.c:266
    frame #3: 0x00000000002c30d5 flua.full`__malloc [inlined] malloc_init_hard at jemalloc_jemalloc.c:1527:8
    frame #4: 0x00000000002c30bd flua.full`__malloc [inlined] malloc_init at jemalloc_jemalloc.c:221
    frame #5: 0x00000000002c30bd flua.full`__malloc [inlined] imalloc(sopts=<unavailable>, dopts=<unavailable>) at jemalloc_jemalloc.c:1990
    frame #6: 0x00000000002c2d10 flua.full`__malloc(size=1560) at jemalloc_jemalloc.c:2042
    frame #7: 0x000000000027e742 flua.full`lua_newstate(f=(flua.full`l_alloc at lauxlib.c:1008), ud=0x0000000000000000) at lstate.c:299:11
    frame #8: 0x000000000027e0d2 flua.full`luaL_newstate at lauxlib.c:1027:18
    frame #9: 0x000000000026d316 flua.full`main(argc=3, argv=0x00007fffffffc458) at lua.c:598:18
    frame #10: 0x000000000026d10f flua.full`_start(ap=<unavailable>, cleanup=<unavailable>) at crt1.c:76:7

Host build system: 12.1-RELEASE-p7
Target: arm64

-- 
gonzo


More information about the svn-src-all mailing list