Skip to content

Double free error when requiring vips in Busted tests #102

@scossu

Description

@scossu

When running Busted tests, if vips is required by more than one test file, the program crashes during garbage collection.

Arch Linux, Lua 5.4.8, lua-vips 1.1-12, busted 2.2.0-1.

Minimally reproducible example:

  1. Create two identical files, test1.lua and test2.lua, with the following content:
local vips = require "vips"
describe("Test", function() end)
  1. Run busted test1.lua test2.lua
  2. Lua crashes during garbage collection with the message: free(): double free detected in tcache 2.

I am unfamiliar with the way busted parses and runs the files, so I wasn't able to determine what exactly is causing the crash.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions