Skip to content

[Linux x86-64] 9.8.0-Beta3 crashes with Database:escape() if Database fails to connect #148

Description

@WinterPhoenix
> version
Protocol version 24
Network version 2025.03.26 (garrysmod)
Exe build: 13:34:44 Apr  1 2026 (10007) (4000)
GMod version 2026.04.03, branch: x86-64
Linux 64bit Dedicated Server

Minimum example is something like this:

local db = mysqloo.connect(...)
db:connect()

function db:onConnectionFailed()
    print(db:escape("")) -- crashes here
end

MySQLOO correctly errors with Cannot escape using database that is not connected if Database:escape() is called before the connection attempt is finished, but once it's failed, all bets are off.

Here's a HolyLib crash report, if it's helpful:
crash_2026-04-12_18_32_24-0.log

I don't have minidumps working correctly atm but I could maybe figure it out if you need that.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions