Skip to content

[BUG] Closing an already closed connection kills the Erlang VM #161

@mindreframer

Description

@mindreframer

Code to reproduce:

Interactive Elixir (1.12.2) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)>
nil
iex(2)> alias Exqlite.Sqlite3
Exqlite.Sqlite3
iex(3)> {:ok, conn} = Sqlite3.open(":memory:")
{:ok, #Reference<0.3373779577.804651032.117242>}
iex(4)> Sqlite3.close(conn)
:ok
iex(5)>  Sqlite3.close(conn)
fish: Job 1, 'iex -S mix' terminated by signal SIGSEGV (Address boundary error)

It would be nice to handle this situation more gracefully.

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