https://bugzilla.redhat.com/show_bug.cgi?id=2111138
Bug ID: 2111138
Summary: luac: free(): double free detected in tcache 2
Product: Fedora
Version: 36
Status: NEW
Component: lua
Assignee: spotrh(a)gmail.com
Reporter: cra(a)fea.st
QA Contact: extras-qa(a)fedoraproject.org
CC: 4le(a)live.com, drjohnson1(a)gmail.com,
lua-packagers-sig(a)lists.fedoraproject.org,
mhroncok(a)redhat.com, michel(a)michel-slm.name,
rob.myers(a)gtri.gatech.edu, spotrh(a)gmail.com
Target Milestone: ---
Classification: Fedora
Created attachment 1899463
-->
https://bugzilla.redhat.com/attachment.cgi?id=1899463&action=edit
proposed fix for luac double free
Description of problem:
luac crashes with a double free when building lsyncd on f36 on armv7hl.
Strangely, it builds fine on f37 and on other f36 arches.
Version-Release number of selected component (if applicable):
lua-5.4.4-1.fc36
How reproducible:
always
Steps to Reproduce:
1. fedpkg clone lsyncd
2. fedpkg switch-branch f36
3. fedpkg scratch-build
Actual results:
https://koji.fedoraproject.org/koji/taskinfo?taskID=90077485
Building target platforms: armv7hl
Building for target armv7hl
...
gmake[2]: Entering directory
'/builddir/build/BUILD/lsyncd-2.3.0/redhat-linux-build'
/usr/bin/cmake -E create_symlink /builddir/build/BUILD/lsyncd-2.3.0/tests tests
Compiling built-in runner
Compiling built-in default configs
/usr/bin/luac -o defaults.out /builddir/build/BUILD/lsyncd-2.3.0/default.lua
/builddir/build/BUILD/lsyncd-2.3.0/default-rsync.lua
/builddir/build/BUILD/lsyncd-2.3.0/default-rsyncssh.lua
/builddir/build/BUILD/lsyncd-2.3.0/default-direct.lua
/usr/bin/luac -o runner.out /builddir/build/BUILD/lsyncd-2.3.0/lsyncd.lua
free(): double free detected in tcache 2
gmake[2]: Leaving directory
'/builddir/build/BUILD/lsyncd-2.3.0/redhat-linux-build'
[ 22%] Built target prepare_tests
[ 33%] Generating runner.c
/usr/bin/cmake -E echo Generating\ built-in\ runner\ linkable
Generating built-in runner linkable
/usr/bin/lua /builddir/build/BUILD/lsyncd-2.3.0/bin2carray.lua runner.out
runner runner.c
gmake[2]: *** [CMakeFiles/lsyncd.dir/build.make:96: defaults.out] Aborted (core
dumped)
gmake[2]: *** Deleting file 'defaults.out'
gmake[2]: Leaving directory
'/builddir/build/BUILD/lsyncd-2.3.0/redhat-linux-build'
gmake[1]: Leaving directory
'/builddir/build/BUILD/lsyncd-2.3.0/redhat-linux-build'
gmake[1]: *** [CMakeFiles/Makefile2:194: CMakeFiles/lsyncd.dir/all] Error 2
gmake: *** [Makefile:139: all] Error 2
Expected results:
No crash
Additional info:
Upstream mailing list proposes this fix which I've attached as a patch:
http://lua-users.org/lists/lua-l/2022-02/msg00113.html
--
You are receiving this mail because:
You are on the CC list for the bug.
https://bugzilla.redhat.com/show_bug.cgi?id=2111138