Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mysql_close crash #44

Closed
Casperhr opened this issue Sep 7, 2016 · 1 comment
Closed

mysql_close crash #44

Casperhr opened this issue Sep 7, 2016 · 1 comment
Labels
bug Something isn't working

Comments

@Casperhr
Copy link
Member

Casperhr commented Sep 7, 2016

let mysql = try MySQL.Database(
            host: "127.0.0.1",
            user: "root",
            password: "secret",
            database: "ironman-old"
)

let result = try mysql.execute("SELECT * FROM checklist_items")

Running this from a command over and over will throw this error now and then

#12 0x0000000100bfc10c in Connection.deinit at /Users/casper_r/vapor/ironman/Packages/MySQL-0.5.0/Sources/MySQL/Connection.swift:44
#13 0x0000000100bfc0d1 in Connection.__deallocating_deinit ()
#14 0x0000000100bff82d in Database.execute(String, [NodeRepresentable], Connection?) throws -> [[String : Node]] at /Users/casper_r/vapor/ironman/Packages/MySQL-0.5.0/Sources/MySQL/Database.swift:205
#15 0x0000000100004b61 in CheckListItemsSeeder.run(arguments : [String]) throws -> () at /Users/casper_r/vapor/ironman/App/Commands/CheckListItemsSeeder.swift:28
#16 0x000000010000504b in protocol witness for Command.run(arguments : [String]) throws -> () in conformance CheckListItemsSeeder ()
#17 0x000000010071a385 in ConsoleProtocol.run(Group, arguments : [String]) throws -> () at /Users/casper_r/vapor/ironman/Packages/Console-0.6.2/Sources/Console/Console/Console+Run.swift:79
#18 0x000000010071aaee in ConsoleProtocol.run(executable : String, commands : [Runnable], arguments : [String], help : [String]) throws -> () at /Users/casper_r/vapor/ironman/Packages/Console-0.6.2/Sources/Console/Console/Console+Run.swift:94
#19 0x0000000100ac2d39 in Droplet.runCommands() throws -> () at /Users/casper_r/vapor/ironman/Packages/Vapor-0.17.1/Sources/Vapor/Droplet/Droplet+Serve.swift:61
#20 0x0000000100ac1d15 in Droplet.serve(() throws -> ()?) -> Never at /Users/casper_r/vapor/ironman/Packages/Vapor-0.17.1/Sources/Vapor/Droplet/Droplet+Serve.swift:14
#21 0x000000010000418f in main at /Users/casper_r/vapor/ironman/App/main.swift:71
@Casperhr Casperhr added the bug Something isn't working label Sep 7, 2016
@tanner0101
Copy link
Member

@Casperhr Can you please provide the schema for that table?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants