[Rpm-maint] [rpm-software-management/rpm] Fix regression wrt Lua reinitialization (RhBug:1958095) (#1678)

Panu Matilainen notifications at github.com
Fri May 7 12:24:28 UTC 2021


Commit 2579d3e5ad5d713f2c161b9fb4835366ea4ea291 started storing the Lua
context in the spec, but this leads to problems as what is actually a
global context is now stored in two places, and can get out of sync.
So if you parse a spec, and then reset the global context, you get a
fancy segfault when the freeing the spec because it's pointing to
la-la-lua land.

Revert back to always using the global Lua handle.
You can view, comment on, or merge this pull request online at:

  https://github.com/rpm-software-management/rpm/pull/1678

-- Commit Summary --

  * Fix regression wrt Lua reinitialization (RhBug:1958095)

-- File Changes --

    M build/parsePreamble.c (3)
    M build/rpmbuild_internal.h (1)
    M build/spec.c (4)
    M build/speclua.c (2)
    M tests/rpmpython.at (7)

-- Patch Links --

https://github.com/rpm-software-management/rpm/pull/1678.patch
https://github.com/rpm-software-management/rpm/pull/1678.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/1678
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20210507/47a80ae6/attachment.html>


More information about the Rpm-maint mailing list