It appears to be a permissions problem
open("plugins/data/load_dat.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/load_dat.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=4730, ...}) = 0
read(19, "local datfile = {}\r\nlocal db, sq"..., 16384) = 4730
read(19, "", 16384) = 0
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=907, ...}) = 0
read(19, "local sql = require(\"lsqlite3\")\r"..., 16384) = 907
read(19, "", 16384) = 0
close(19) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
mkdir("history", 0775) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
lseek(19, 0, SEEK_SET) = 0
read(19, "", 100) = 0
write(2, "open not an error\n", 18open not an error
) = 18
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c4c00) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
brk(0xd955000) = 0xd955000
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c5370) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "select no such table: sqllite_ma"..., 37select no such table: sqllite_master
) = 37
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c51e0) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741825, l_len=1}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
open("/mnt/mame/history/history.db-journal", O_RDWR|O_CREAT|O_CLOEXEC, 0755) = 20
fstat(20, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
geteuid() = 1000
open("/dev/urandom", O_RDONLY|O_CLOEXEC) = 21
read(21, "6001053z324jN|375Zj*3b77i'"..., 256) = 256
close(21) = 0
lseek(20, 0, SEEK_SET) = 0
write(20, "
open("plugins/data/load_dat.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/load_dat.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=4730, ...}) = 0
read(19, "local datfile = {}\r\nlocal db, sq"..., 16384) = 4730
read(19, "", 16384) = 0
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=907, ...}) = 0
read(19, "local sql = require(\"lsqlite3\")\r"..., 16384) = 907
read(19, "", 16384) = 0
close(19) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
mkdir("history", 0775) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
lseek(19, 0, SEEK_SET) = 0
read(19, "", 100) = 0
write(2, "open not an error\n", 18open not an error
) = 18
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c4c00) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
brk(0xd955000) = 0xd955000
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c5370) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "select no such table: sqllite_ma"..., 37select no such table: sqllite_master
) = 37
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c51e0) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741825, l_len=1}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
open("/mnt/mame/history/history.db-journal", O_RDWR|O_CREAT|O_CLOEXEC, 0755) = 20
fstat(20, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
geteuid() = 1000
open("/dev/urandom", O_RDONLY|O_CLOEXEC) = 21
read(21, "\25\326\260\260\351\360\205\343\34z\253\232\314\10\20jN|\353\357\345Zj*\273\23b\377\217\26i'"..., 256) = 256
close(21) = 0
lseek(20, 0, SEEK_SET) = 0
write(20, "\0\0\0\0\0\0\0\0\0\0\0\0\316R\220\345\0\0\0\0\0\0\2\0\0\0\20\0\0\0\0\0"..., 512) = 512
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = -1 EACCES (Permission denied)
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
lseek(20, 8, SEEK_SET) = 8
read(20, "\0\0\0\0", 4) = 4
lseek(20, 12, SEEK_SET) = 12
read(20, "\316R\220\345", 4) = 4
lseek(20, 16, SEEK_SET) = 16
read(20, "\0\0\0\0", 4) = 4
lseek(20, 20, SEEK_SET) = 20
read(20, "\0\0\2\0", 4) = 4
lseek(20, 24, SEEK_SET) = 24
read(20, "\0\0\20\0", 4) = 4
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
close(20) = 0
unlink("/mnt/mame/history/history.db-journal") = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=2}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "CREATE TABLE 5 database is locke"..., 34CREATE TABLE 5 database is locked
) = 34
open("plugins/data/load_dat.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/load_dat.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=4730, ...}) = 0
read(19, "local datfile = {}\r\nlocal db, sq"..., 16384) = 4730
read(19, "", 16384) = 0
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=907, ...}) = 0
read(19, "local sql = require(\"lsqlite3\")\r"..., 16384) = 907
read(19, "", 16384) = 0
close(19) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
mkdir("history", 0775) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
lseek(19, 0, SEEK_SET) = 0
read(19, "", 100) = 0
write(2, "open not an error\n", 18open not an error
) = 18
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c4c00) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
brk(0xd955000) = 0xd955000
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c5370) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "select no such table: sqllite_ma"..., 37select no such table: sqllite_master
) = 37
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c51e0) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741825, l_len=1}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
open("/mnt/mame/history/history.db-journal", O_RDWR|O_CREAT|O_CLOEXEC, 0755) = 20
fstat(20, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
geteuid() = 1000
open("/dev/urandom", O_RDONLY|O_CLOEXEC) = 21
read(21, "\25\326\260\260\351\360\205\343\34z\253\232\314\10\20jN|\353\357\345Zj*\273\23b\377\217\26i'"..., 256) = 256
close(21) = 0
lseek(20, 0, SEEK_SET) = 0
write(20, "\0\0\0\0\0\0\0\0\0\0\0\0\316R\220\345\0\0\0\0\0\0\2\0\0\0\20\0\0\0\0\0"..., 512) = 512
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = -1 EACCES (Permission denied)
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
lseek(20, 8, SEEK_SET) = 8
read(20, "\0\0\0\0", 4) = 4
lseek(20, 12, SEEK_SET) = 12
read(20, "\316R\220\345", 4) = 4
lseek(20, 16, SEEK_SET) = 16
read(20, "\0\0\0\0", 4) = 4
lseek(20, 20, SEEK_SET) = 20
read(20, "\0\0\2\0", 4) = 4
lseek(20, 24, SEEK_SET) = 24
read(20, "\0\0\20\0", 4) = 4
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
close(20) = 0
unlink("/mnt/mame/history/history.db-journal") = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=2}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "CREATE TABLE 5 database is locke"..., 34CREATE TABLE 5 database is locked
) = 34
open("plugins/data/load_dat.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/load_dat.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=4730, ...}) = 0
read(19, "local datfile = {}\r\nlocal db, sq"..., 16384) = 4730
read(19, "", 16384) = 0
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=907, ...}) = 0
read(19, "local sql = require(\"lsqlite3\")\r"..., 16384) = 907
read(19, "", 16384) = 0
close(19) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
mkdir("history", 0775) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
lseek(19, 0, SEEK_SET) = 0
read(19, "", 100) = 0
write(2, "open not an error\n", 18open not an error
) = 18
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c4c00) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
brk(0xd955000) = 0xd955000
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c5370) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "select no such table: sqllite_ma"..., 37select no such table: sqllite_master
) = 37
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c51e0) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741825, l_len=1}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
open("/mnt/mame/history/history.db-journal", O_RDWR|O_CREAT|O_CLOEXEC, 0755) = 20
fstat(20, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
geteuid() = 1000
open("/dev/urandom", O_RDONLY|O_CLOEXEC) = 21
read(21, "\25\326\260\260\351\360\205\343\34z\253\232\314\10\20jN|\353\357\345Zj*\273\23b\377\217\26i'"..., 256) = 256
close(21) = 0
lseek(20, 0, SEEK_SET) = 0
write(20, "\0\0\0\0\0\0\0\0\0\0\0\0\316R\220\345\0\0\0\0\0\0\2\0\0\0\20\0\0\0\0\0"..., 512) = 512
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = -1 EACCES (Permission denied)
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
lseek(20, 8, SEEK_SET) = 8
read(20, "\0\0\0\0", 4) = 4
lseek(20, 12, SEEK_SET) = 12
read(20, "\316R\220\345", 4) = 4
lseek(20, 16, SEEK_SET) = 16
read(20, "\0\0\0\0", 4) = 4
lseek(20, 20, SEEK_SET) = 20
read(20, "\0\0\2\0", 4) = 4
lseek(20, 24, SEEK_SET) = 24
read(20, "\0\0\20\0", 4) = 4
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
close(20) = 0
unlink("/mnt/mame/history/history.db-journal") = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=2}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "CREATE TABLE 5 database is locke"..., 34CREATE TABLE 5 database is locked
) = 34
open("plugins/data/load_dat.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/load_dat.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=4730, ...}) = 0
read(19, "local datfile = {}\r\nlocal db, sq"..., 16384) = 4730
read(19, "", 16384) = 0
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=907, ...}) = 0
read(19, "local sql = require(\"lsqlite3\")\r"..., 16384) = 907
read(19, "", 16384) = 0
close(19) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
mkdir("history", 0775) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
lseek(19, 0, SEEK_SET) = 0
read(19, "", 100) = 0
write(2, "open not an error\n", 18open not an error
) = 18
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c4c00) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
brk(0xd955000) = 0xd955000
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c5370) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "select no such table: sqllite_ma"..., 37select no such table: sqllite_master
) = 37
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c51e0) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741825, l_len=1}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
open("/mnt/mame/history/history.db-journal", O_RDWR|O_CREAT|O_CLOEXEC, 0755) = 20
fstat(20, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
geteuid() = 1000
open("/dev/urandom", O_RDONLY|O_CLOEXEC) = 21
read(21, "\25\326\260\260\351\360\205\343\34z\253\232\314\10\20jN|\353\357\345Zj*\273\23b\377\217\26i'"..., 256) = 256
close(21) = 0
lseek(20, 0, SEEK_SET) = 0
write(20, "\0\0\0\0\0\0\0\0\0\0\0\0\316R\220\345\0\0\0\0\0\0\2\0\0\0\20\0\0\0\0\0"..., 512) = 512
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = -1 EACCES (Permission denied)
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
lseek(20, 8, SEEK_SET) = 8
read(20, "\0\0\0\0", 4) = 4
lseek(20, 12, SEEK_SET) = 12
read(20, "\316R\220\345", 4) = 4
lseek(20, 16, SEEK_SET) = 16
read(20, "\0\0\0\0", 4) = 4
lseek(20, 20, SEEK_SET) = 20
read(20, "\0\0\2\0", 4) = 4
lseek(20, 24, SEEK_SET) = 24
read(20, "\0\0\20\0", 4) = 4
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
close(20) = 0
unlink("/mnt/mame/history/history.db-journal") = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=2}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "CREATE TABLE 5 database is locke"..., 34CREATE TABLE 5 database is locked
) = 34
open("plugins/data/load_dat.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/load_dat.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=4730, ...}) = 0
read(19, "local datfile = {}\r\nlocal db, sq"..., 16384) = 4730
read(19, "", 16384) = 0
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=907, ...}) = 0
read(19, "local sql = require(\"lsqlite3\")\r"..., 16384) = 907
read(19, "", 16384) = 0
close(19) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
mkdir("history", 0775) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
lseek(19, 0, SEEK_SET) = 0
read(19, "", 100) = 0
write(2, "open not an error\n", 18open not an error
) = 18
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c4c00) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
brk(0xd955000) = 0xd955000
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c5370) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "select no such table: sqllite_ma"..., 37select no such table: sqllite_master
) = 37
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c51e0) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741825, l_len=1}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
open("/mnt/mame/history/history.db-journal", O_RDWR|O_CREAT|O_CLOEXEC, 0755) = 20
fstat(20, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
geteuid() = 1000
open("/dev/urandom", O_RDONLY|O_CLOEXEC) = 21
read(21, "\25\326\260\260\351\360\205\343\34z\253\232\314\10\20jN|\353\357\345Zj*\273\23b\377\217\26i'"..., 256) = 256
close(21) = 0
lseek(20, 0, SEEK_SET) = 0
write(20, "\0\0\0\0\0\0\0\0\0\0\0\0\316R\220\345\0\0\0\0\0\0\2\0\0\0\20\0\0\0\0\0"..., 512) = 512
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = -1 EACCES (Permission denied)
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
lseek(20, 8, SEEK_SET) = 8
read(20, "\0\0\0\0", 4) = 4
lseek(20, 12, SEEK_SET) = 12
read(20, "\316R\220\345", 4) = 4
lseek(20, 16, SEEK_SET) = 16
read(20, "\0\0\0\0", 4) = 4
lseek(20, 20, SEEK_SET) = 20
read(20, "\0\0\2\0", 4) = 4
lseek(20, 24, SEEK_SET) = 24
read(20, "\0\0\20\0", 4) = 4
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
close(20) = 0
unlink("/mnt/mame/history/history.db-journal") = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=2}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "CREATE TABLE 5 database is locke"..., 34CREATE TABLE 5 database is locked
) = 34
open("plugins/data/load_dat.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/load_dat.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=4730, ...}) = 0
read(19, "local datfile = {}\r\nlocal db, sq"..., 16384) = 4730
read(19, "", 16384) = 0
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=907, ...}) = 0
read(19, "local sql = require(\"lsqlite3\")\r"..., 16384) = 907
read(19, "", 16384) = 0
close(19) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
mkdir("history", 0775) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
lseek(19, 0, SEEK_SET) = 0
read(19, "", 100) = 0
write(2, "open not an error\n", 18open not an error
) = 18
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c4c00) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
brk(0xd955000) = 0xd955000
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c5370) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "select no such table: sqllite_ma"..., 37select no such table: sqllite_master
) = 37
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c51e0) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741825, l_len=1}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
open("/mnt/mame/history/history.db-journal", O_RDWR|O_CREAT|O_CLOEXEC, 0755) = 20
fstat(20, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
geteuid() = 1000
open("/dev/urandom", O_RDONLY|O_CLOEXEC) = 21
read(21, "\25\326\260\260\351\360\205\343\34z\253\232\314\10\20jN|\353\357\345Zj*\273\23b\377\217\26i'"..., 256) = 256
close(21) = 0
lseek(20, 0, SEEK_SET) = 0
write(20, "\0\0\0\0\0\0\0\0\0\0\0\0\316R\220\345\0\0\0\0\0\0\2\0\0\0\20\0\0\0\0\0"..., 512) = 512
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = -1 EACCES (Permission denied)
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
lseek(20, 8, SEEK_SET) = 8
read(20, "\0\0\0\0", 4) = 4
lseek(20, 12, SEEK_SET) = 12
read(20, "\316R\220\345", 4) = 4
lseek(20, 16, SEEK_SET) = 16
read(20, "\0\0\0\0", 4) = 4
lseek(20, 20, SEEK_SET) = 20
read(20, "\0\0\2\0", 4) = 4
lseek(20, 24, SEEK_SET) = 24
read(20, "\0\0\20\0", 4) = 4
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
close(20) = 0
unlink("/mnt/mame/history/history.db-journal") = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=2}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "CREATE TABLE 5 database is locke"..., 34CREATE TABLE 5 database is locked
) = 34
open("plugins/data/load_dat.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/load_dat.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=4730, ...}) = 0
read(19, "local datfile = {}\r\nlocal db, sq"..., 16384) = 4730
read(19, "", 16384) = 0
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=907, ...}) = 0
read(19, "local sql = require(\"lsqlite3\")\r"..., 16384) = 907
read(19, "", 16384) = 0
close(19) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
mkdir("history", 0775) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
lseek(19, 0, SEEK_SET) = 0
read(19, "", 100) = 0
write(2, "open not an error\n", 18open not an error
) = 18
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c4c00) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
brk(0xd955000) = 0xd955000
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c5370) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "select no such table: sqllite_ma"..., 37select no such table: sqllite_master
) = 37
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c51e0) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741825, l_len=1}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
open("/mnt/mame/history/history.db-journal", O_RDWR|O_CREAT|O_CLOEXEC, 0755) = 20
fstat(20, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
geteuid() = 1000
open("/dev/urandom", O_RDONLY|O_CLOEXEC) = 21
read(21, "\25\326\260\260\351\360\205\343\34z\253\232\314\10\20jN|\353\357\345Zj*\273\23b\377\217\26i'"..., 256) = 256
close(21) = 0
lseek(20, 0, SEEK_SET) = 0
write(20, "\0\0\0\0\0\0\0\0\0\0\0\0\316R\220\345\0\0\0\0\0\0\2\0\0\0\20\0\0\0\0\0"..., 512) = 512
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = -1 EACCES (Permission denied)
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
lseek(20, 8, SEEK_SET) = 8
read(20, "\0\0\0\0", 4) = 4
lseek(20, 12, SEEK_SET) = 12
read(20, "\316R\220\345", 4) = 4
lseek(20, 16, SEEK_SET) = 16
read(20, "\0\0\0\0", 4) = 4
lseek(20, 20, SEEK_SET) = 20
read(20, "\0\0\2\0", 4) = 4
lseek(20, 24, SEEK_SET) = 24
read(20, "\0\0\20\0", 4) = 4
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
close(20) = 0
unlink("/mnt/mame/history/history.db-journal") = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=2}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "CREATE TABLE 5 database is locke"..., 34CREATE TABLE 5 database is locked
) = 34
open("plugins/data/load_dat.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/load_dat.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=4730, ...}) = 0
read(19, "local datfile = {}\r\nlocal db, sq"..., 16384) = 4730
read(19, "", 16384) = 0
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=907, ...}) = 0
read(19, "local sql = require(\"lsqlite3\")\r"..., 16384) = 907
read(19, "", 16384) = 0
close(19) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
mkdir("history", 0775) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
lseek(19, 0, SEEK_SET) = 0
read(19, "", 100) = 0
write(2, "open not an error\n", 18open not an error
) = 18
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c4c00) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
brk(0xd955000) = 0xd955000
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c5370) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "select no such table: sqllite_ma"..., 37select no such table: sqllite_master
) = 37
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c51e0) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741825, l_len=1}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
open("/mnt/mame/history/history.db-journal", O_RDWR|O_CREAT|O_CLOEXEC, 0755) = 20
fstat(20, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
geteuid() = 1000
open("/dev/urandom", O_RDONLY|O_CLOEXEC) = 21
read(21, "\25\326\260\260\351\360\205\343\34z\253\232\314\10\20jN|\353\357\345Zj*\273\23b\377\217\26i'"..., 256) = 256
close(21) = 0
lseek(20, 0, SEEK_SET) = 0
write(20, "\0\0\0\0\0\0\0\0\0\0\0\0\316R\220\345\0\0\0\0\0\0\2\0\0\0\20\0\0\0\0\0"..., 512) = 512
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = -1 EACCES (Permission denied)
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
lseek(20, 8, SEEK_SET) = 8
read(20, "\0\0\0\0", 4) = 4
lseek(20, 12, SEEK_SET) = 12
read(20, "\316R\220\345", 4) = 4
lseek(20, 16, SEEK_SET) = 16
read(20, "\0\0\0\0", 4) = 4
lseek(20, 20, SEEK_SET) = 20
read(20, "\0\0\2\0", 4) = 4
lseek(20, 24, SEEK_SET) = 24
read(20, "\0\0\20\0", 4) = 4
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
close(20) = 0
unlink("/mnt/mame/history/history.db-journal") = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=2}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "CREATE TABLE 5 database is locke"..., 34CREATE TABLE 5 database is locked
) = 34
open("plugins/data/load_dat.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/load_dat.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=4730, ...}) = 0
read(19, "local datfile = {}\r\nlocal db, sq"..., 16384) = 4730
read(19, "", 16384) = 0
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=907, ...}) = 0
read(19, "local sql = require(\"lsqlite3\")\r"..., 16384) = 907
read(19, "", 16384) = 0
close(19) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
mkdir("history", 0775) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
lseek(19, 0, SEEK_SET) = 0
read(19, "", 100) = 0
write(2, "open not an error\n", 18open not an error
) = 18
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c4c00) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
brk(0xd955000) = 0xd955000
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c5370) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "select no such table: sqllite_ma"..., 37select no such table: sqllite_master
) = 37
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c51e0) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741825, l_len=1}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
open("/mnt/mame/history/history.db-journal", O_RDWR|O_CREAT|O_CLOEXEC, 0755) = 20
fstat(20, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
geteuid() = 1000
open("/dev/urandom", O_RDONLY|O_CLOEXEC) = 21
read(21, "\25\326\260\260\351\360\205\343\34z\253\232\314\10\20jN|\353\357\345Zj*\273\23b\377\217\26i'"..., 256) = 256
close(21) = 0
lseek(20, 0, SEEK_SET) = 0
write(20, "\0\0\0\0\0\0\0\0\0\0\0\0\316R\220\345\0\0\0\0\0\0\2\0\0\0\20\0\0\0\0\0"..., 512) = 512
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = -1 EACCES (Permission denied)
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
lseek(20, 8, SEEK_SET) = 8
read(20, "\0\0\0\0", 4) = 4
lseek(20, 12, SEEK_SET) = 12
read(20, "\316R\220\345", 4) = 4
lseek(20, 16, SEEK_SET) = 16
read(20, "\0\0\0\0", 4) = 4
lseek(20, 20, SEEK_SET) = 20
read(20, "\0\0\2\0", 4) = 4
lseek(20, 24, SEEK_SET) = 24
read(20, "\0\0\20\0", 4) = 4
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
close(20) = 0
unlink("/mnt/mame/history/history.db-journal") = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=2}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "CREATE TABLE 5 database is locke"..., 34CREATE TABLE 5 database is locked
) = 34
open("plugins/data/load_dat.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/load_dat.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=4730, ...}) = 0
read(19, "local datfile = {}\r\nlocal db, sq"..., 16384) = 4730
read(19, "", 16384) = 0
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=907, ...}) = 0
read(19, "local sql = require(\"lsqlite3\")\r"..., 16384) = 907
read(19, "", 16384) = 0
close(19) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
mkdir("history", 0775) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
lseek(19, 0, SEEK_SET) = 0
read(19, "", 100) = 0
write(2, "open not an error\n", 18open not an error
) = 18
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c4c00) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
brk(0xd955000) = 0xd955000
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c5370) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "select no such table: sqllite_ma"..., 37select no such table: sqllite_master
) = 37
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c51e0) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741825, l_len=1}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
open("/mnt/mame/history/history.db-journal", O_RDWR|O_CREAT|O_CLOEXEC, 0755) = 20
fstat(20, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
geteuid() = 1000
open("/dev/urandom", O_RDONLY|O_CLOEXEC) = 21
read(21, "\25\326\260\260\351\360\205\343\34z\253\232\314\10\20jN|\353\357\345Zj*\273\23b\377\217\26i'"..., 256) = 256
close(21) = 0
lseek(20, 0, SEEK_SET) = 0
write(20, "\0\0\0\0\0\0\0\0\0\0\0\0\316R\220\345\0\0\0\0\0\0\2\0\0\0\20\0\0\0\0\0"..., 512) = 512
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = -1 EACCES (Permission denied)
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
lseek(20, 8, SEEK_SET) = 8
read(20, "\0\0\0\0", 4) = 4
lseek(20, 12, SEEK_SET) = 12
read(20, "\316R\220\345", 4) = 4
lseek(20, 16, SEEK_SET) = 16
read(20, "\0\0\0\0", 4) = 4
lseek(20, 20, SEEK_SET) = 20
read(20, "\0\0\2\0", 4) = 4
lseek(20, 24, SEEK_SET) = 24
read(20, "\0\0\20\0", 4) = 4
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
close(20) = 0
unlink("/mnt/mame/history/history.db-journal") = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=2}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "CREATE TABLE 5 database is locke"..., 34CREATE TABLE 5 database is locked
) = 34
open("plugins/data/load_dat.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/load_dat.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=4730, ...}) = 0
read(19, "local datfile = {}\r\nlocal db, sq"..., 16384) = 4730
read(19, "", 16384) = 0
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=907, ...}) = 0
read(19, "local sql = require(\"lsqlite3\")\r"..., 16384) = 907
read(19, "", 16384) = 0
close(19) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
mkdir("history", 0775) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
lseek(19, 0, SEEK_SET) = 0
read(19, "", 100) = 0
write(2, "open not an error\n", 18open not an error
) = 18
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c4c00) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
brk(0xd955000) = 0xd955000
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c5370) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "select no such table: sqllite_ma"..., 37select no such table: sqllite_master
) = 37
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c51e0) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741825, l_len=1}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
open("/mnt/mame/history/history.db-journal", O_RDWR|O_CREAT|O_CLOEXEC, 0755) = 20
fstat(20, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
geteuid() = 1000
open("/dev/urandom", O_RDONLY|O_CLOEXEC) = 21
read(21, "\25\326\260\260\351\360\205\343\34z\253\232\314\10\20jN|\353\357\345Zj*\273\23b\377\217\26i'"..., 256) = 256
close(21) = 0
lseek(20, 0, SEEK_SET) = 0
write(20, "\0\0\0\0\0\0\0\0\0\0\0\0\316R\220\345\0\0\0\0\0\0\2\0\0\0\20\0\0\0\0\0"..., 512) = 512
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = -1 EACCES (Permission denied)
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
lseek(20, 8, SEEK_SET) = 8
read(20, "\0\0\0\0", 4) = 4
lseek(20, 12, SEEK_SET) = 12
read(20, "\316R\220\345", 4) = 4
lseek(20, 16, SEEK_SET) = 16
read(20, "\0\0\0\0", 4) = 4
lseek(20, 20, SEEK_SET) = 20
read(20, "\0\0\2\0", 4) = 4
lseek(20, 24, SEEK_SET) = 24
read(20, "\0\0\20\0", 4) = 4
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
close(20) = 0
unlink("/mnt/mame/history/history.db-journal") = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=2}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "CREATE TABLE 5 database is locke"..., 34CREATE TABLE 5 database is locked
) = 34
open("plugins/data/load_dat.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/load_dat.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=4730, ...}) = 0
read(19, "local datfile = {}\r\nlocal db, sq"..., 16384) = 4730
read(19, "", 16384) = 0
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=907, ...}) = 0
read(19, "local sql = require(\"lsqlite3\")\r"..., 16384) = 907
read(19, "", 16384) = 0
close(19) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
mkdir("history", 0775) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
lseek(19, 0, SEEK_SET) = 0
read(19, "", 100) = 0
write(2, "open not an error\n", 18open not an error
) = 18
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c4c00) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
brk(0xd955000) = 0xd955000
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c5370) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "select no such table: sqllite_ma"..., 37select no such table: sqllite_master
) = 37
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c51e0) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741825, l_len=1}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
open("/mnt/mame/history/history.db-journal", O_RDWR|O_CREAT|O_CLOEXEC, 0755) = 20
fstat(20, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
geteuid() = 1000
open("/dev/urandom", O_RDONLY|O_CLOEXEC) = 21
read(21, "\25\326\260\260\351\360\205\343\34z\253\232\314\10\20jN|\353\357\345Zj*\273\23b\377\217\26i'"..., 256) = 256
close(21) = 0
lseek(20, 0, SEEK_SET) = 0
write(20, "\0\0\0\0\0\0\0\0\0\0\0\0\316R\220\345\0\0\0\0\0\0\2\0\0\0\20\0\0\0\0\0"..., 512) = 512
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = -1 EACCES (Permission denied)
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
lseek(20, 8, SEEK_SET) = 8
read(20, "\0\0\0\0", 4) = 4
lseek(20, 12, SEEK_SET) = 12
read(20, "\316R\220\345", 4) = 4
lseek(20, 16, SEEK_SET) = 16
read(20, "\0\0\0\0", 4) = 4
lseek(20, 20, SEEK_SET) = 20
read(20, "\0\0\2\0", 4) = 4
lseek(20, 24, SEEK_SET) = 24
read(20, "\0\0\20\0", 4) = 4
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
close(20) = 0
unlink("/mnt/mame/history/history.db-journal") = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=2}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "CREATE TABLE 5 database is locke"..., 34CREATE TABLE 5 database is locked
) = 34
6R05
open("plugins/data/load_dat.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/load_dat.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=4730, ...}) = 0
read(19, "local datfile = {}\r\nlocal db, sq"..., 16384) = 4730
read(19, "", 16384) = 0
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=907, ...}) = 0
read(19, "local sql = require(\"lsqlite3\")\r"..., 16384) = 907
read(19, "", 16384) = 0
close(19) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
mkdir("history", 0775) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
lseek(19, 0, SEEK_SET) = 0
read(19, "", 100) = 0
write(2, "open not an error\n", 18open not an error
) = 18
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c4c00) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
brk(0xd955000) = 0xd955000
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c5370) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "select no such table: sqllite_ma"..., 37select no such table: sqllite_master
) = 37
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c51e0) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741825, l_len=1}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
open("/mnt/mame/history/history.db-journal", O_RDWR|O_CREAT|O_CLOEXEC, 0755) = 20
fstat(20, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
geteuid() = 1000
open("/dev/urandom", O_RDONLY|O_CLOEXEC) = 21
read(21, "\25\326\260\260\351\360\205\343\34z\253\232\314\10\20jN|\353\357\345Zj*\273\23b\377\217\26i'"..., 256) = 256
close(21) = 0
lseek(20, 0, SEEK_SET) = 0
write(20, "\0\0\0\0\0\0\0\0\0\0\0\0\316R\220\345\0\0\0\0\0\0\2\0\0\0\20\0\0\0\0\0"..., 512) = 512
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = -1 EACCES (Permission denied)
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
lseek(20, 8, SEEK_SET) = 8
read(20, "\0\0\0\0", 4) = 4
lseek(20, 12, SEEK_SET) = 12
read(20, "\316R\220\345", 4) = 4
lseek(20, 16, SEEK_SET) = 16
read(20, "\0\0\0\0", 4) = 4
lseek(20, 20, SEEK_SET) = 20
read(20, "\0\0\2\0", 4) = 4
lseek(20, 24, SEEK_SET) = 24
read(20, "\0\0\20\0", 4) = 4
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
close(20) = 0
unlink("/mnt/mame/history/history.db-journal") = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=2}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "CREATE TABLE 5 database is locke"..., 34CREATE TABLE 5 database is locked
) = 34
open("plugins/data/load_dat.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/load_dat.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=4730, ...}) = 0
read(19, "local datfile = {}\r\nlocal db, sq"..., 16384) = 4730
read(19, "", 16384) = 0
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=907, ...}) = 0
read(19, "local sql = require(\"lsqlite3\")\r"..., 16384) = 907
read(19, "", 16384) = 0
close(19) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
mkdir("history", 0775) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
lseek(19, 0, SEEK_SET) = 0
read(19, "", 100) = 0
write(2, "open not an error\n", 18open not an error
) = 18
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c4c00) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
brk(0xd955000) = 0xd955000
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c5370) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "select no such table: sqllite_ma"..., 37select no such table: sqllite_master
) = 37
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c51e0) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741825, l_len=1}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
open("/mnt/mame/history/history.db-journal", O_RDWR|O_CREAT|O_CLOEXEC, 0755) = 20
fstat(20, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
geteuid() = 1000
open("/dev/urandom", O_RDONLY|O_CLOEXEC) = 21
read(21, "\25\326\260\260\351\360\205\343\34z\253\232\314\10\20jN|\353\357\345Zj*\273\23b\377\217\26i'"..., 256) = 256
close(21) = 0
lseek(20, 0, SEEK_SET) = 0
write(20, "\0\0\0\0\0\0\0\0\0\0\0\0\316R\220\345\0\0\0\0\0\0\2\0\0\0\20\0\0\0\0\0"..., 512) = 512
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = -1 EACCES (Permission denied)
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
lseek(20, 8, SEEK_SET) = 8
read(20, "\0\0\0\0", 4) = 4
lseek(20, 12, SEEK_SET) = 12
read(20, "\316R\220\345", 4) = 4
lseek(20, 16, SEEK_SET) = 16
read(20, "\0\0\0\0", 4) = 4
lseek(20, 20, SEEK_SET) = 20
read(20, "\0\0\2\0", 4) = 4
lseek(20, 24, SEEK_SET) = 24
read(20, "\0\0\20\0", 4) = 4
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
close(20) = 0
unlink("/mnt/mame/history/history.db-journal") = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=2}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "CREATE TABLE 5 database is locke"..., 34CREATE TABLE 5 database is locked
) = 34
open("plugins/data/load_dat.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/load_dat.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=4730, ...}) = 0
read(19, "local datfile = {}\r\nlocal db, sq"..., 16384) = 4730
read(19, "", 16384) = 0
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=907, ...}) = 0
read(19, "local sql = require(\"lsqlite3\")\r"..., 16384) = 907
read(19, "", 16384) = 0
close(19) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
mkdir("history", 0775) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
lseek(19, 0, SEEK_SET) = 0
read(19, "", 100) = 0
write(2, "open not an error\n", 18open not an error
) = 18
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c4c00) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
brk(0xd955000) = 0xd955000
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c5370) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "select no such table: sqllite_ma"..., 37select no such table: sqllite_master
) = 37
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c51e0) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741825, l_len=1}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
open("/mnt/mame/history/history.db-journal", O_RDWR|O_CREAT|O_CLOEXEC, 0755) = 20
fstat(20, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
geteuid() = 1000
open("/dev/urandom", O_RDONLY|O_CLOEXEC) = 21
read(21, "\25\326\260\260\351\360\205\343\34z\253\232\314\10\20jN|\353\357\345Zj*\273\23b\377\217\26i'"..., 256) = 256
close(21) = 0
lseek(20, 0, SEEK_SET) = 0
write(20, "\0\0\0\0\0\0\0\0\0\0\0\0\316R\220\345\0\0\0\0\0\0\2\0\0\0\20\0\0\0\0\0"..., 512) = 512
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = -1 EACCES (Permission denied)
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
lseek(20, 8, SEEK_SET) = 8
read(20, "\0\0\0\0", 4) = 4
lseek(20, 12, SEEK_SET) = 12
read(20, "\316R\220\345", 4) = 4
lseek(20, 16, SEEK_SET) = 16
read(20, "\0\0\0\0", 4) = 4
lseek(20, 20, SEEK_SET) = 20
read(20, "\0\0\2\0", 4) = 4
lseek(20, 24, SEEK_SET) = 24
read(20, "\0\0\20\0", 4) = 4
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
close(20) = 0
unlink("/mnt/mame/history/history.db-journal") = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=2}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "CREATE TABLE 5 database is locke"..., 34CREATE TABLE 5 database is locked
) = 34
open("plugins/data/load_dat.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/load_dat.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=4730, ...}) = 0
read(19, "local datfile = {}\r\nlocal db, sq"..., 16384) = 4730
read(19, "", 16384) = 0
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=907, ...}) = 0
read(19, "local sql = require(\"lsqlite3\")\r"..., 16384) = 907
read(19, "", 16384) = 0
close(19) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
mkdir("history", 0775) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
lseek(19, 0, SEEK_SET) = 0
read(19, "", 100) = 0
write(2, "open not an error\n", 18open not an error
) = 18
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c4c00) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
brk(0xd955000) = 0xd955000
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c5370) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "select no such table: sqllite_ma"..., 37select no such table: sqllite_master
) = 37
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c51e0) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741825, l_len=1}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
open("/mnt/mame/history/history.db-journal", O_RDWR|O_CREAT|O_CLOEXEC, 0755) = 20
fstat(20, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
geteuid() = 1000
open("/dev/urandom", O_RDONLY|O_CLOEXEC) = 21
read(21, "\25\326\260\260\351\360\205\343\34z\253\232\314\10\20jN|\353\357\345Zj*\273\23b\377\217\26i'"..., 256) = 256
close(21) = 0
lseek(20, 0, SEEK_SET) = 0
write(20, "\0\0\0\0\0\0\0\0\0\0\0\0\316R\220\345\0\0\0\0\0\0\2\0\0\0\20\0\0\0\0\0"..., 512) = 512
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = -1 EACCES (Permission denied)
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
lseek(20, 8, SEEK_SET) = 8
read(20, "\0\0\0\0", 4) = 4
lseek(20, 12, SEEK_SET) = 12
read(20, "\316R\220\345", 4) = 4
lseek(20, 16, SEEK_SET) = 16
read(20, "\0\0\0\0", 4) = 4
lseek(20, 20, SEEK_SET) = 20
read(20, "\0\0\2\0", 4) = 4
lseek(20, 24, SEEK_SET) = 24
read(20, "\0\0\20\0", 4) = 4
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
close(20) = 0
unlink("/mnt/mame/history/history.db-journal") = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=2}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "CREATE TABLE 5 database is locke"..., 34CREATE TABLE 5 database is locked
) = 34
open("plugins/data/load_dat.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/load_dat.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=4730, ...}) = 0
read(19, "local datfile = {}\r\nlocal db, sq"..., 16384) = 4730
read(19, "", 16384) = 0
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=907, ...}) = 0
read(19, "local sql = require(\"lsqlite3\")\r"..., 16384) = 907
read(19, "", 16384) = 0
close(19) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
mkdir("history", 0775) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
lseek(19, 0, SEEK_SET) = 0
read(19, "", 100) = 0
write(2, "open not an error\n", 18open not an error
) = 18
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c4c00) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
brk(0xd955000) = 0xd955000
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c5370) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "select no such table: sqllite_ma"..., 37select no such table: sqllite_master
) = 37
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c51e0) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741825, l_len=1}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
open("/mnt/mame/history/history.db-journal", O_RDWR|O_CREAT|O_CLOEXEC, 0755) = 20
fstat(20, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
geteuid() = 1000
open("/dev/urandom", O_RDONLY|O_CLOEXEC) = 21
read(21, "\25\326\260\260\351\360\205\343\34z\253\232\314\10\20jN|\353\357\345Zj*\273\23b\377\217\26i'"..., 256) = 256
close(21) = 0
lseek(20, 0, SEEK_SET) = 0
write(20, "\0\0\0\0\0\0\0\0\0\0\0\0\316R\220\345\0\0\0\0\0\0\2\0\0\0\20\0\0\0\0\0"..., 512) = 512
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = -1 EACCES (Permission denied)
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
lseek(20, 8, SEEK_SET) = 8
read(20, "\0\0\0\0", 4) = 4
lseek(20, 12, SEEK_SET) = 12
read(20, "\316R\220\345", 4) = 4
lseek(20, 16, SEEK_SET) = 16
read(20, "\0\0\0\0", 4) = 4
lseek(20, 20, SEEK_SET) = 20
read(20, "\0\0\2\0", 4) = 4
lseek(20, 24, SEEK_SET) = 24
read(20, "\0\0\20\0", 4) = 4
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
close(20) = 0
unlink("/mnt/mame/history/history.db-journal") = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=2}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "CREATE TABLE 5 database is locke"..., 34CREATE TABLE 5 database is locked
) = 34
open("plugins/data/load_dat.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/load_dat.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=4730, ...}) = 0
read(19, "local datfile = {}\r\nlocal db, sq"..., 16384) = 4730
read(19, "", 16384) = 0
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=907, ...}) = 0
read(19, "local sql = require(\"lsqlite3\")\r"..., 16384) = 907
read(19, "", 16384) = 0
close(19) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
mkdir("history", 0775) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
lseek(19, 0, SEEK_SET) = 0
read(19, "", 100) = 0
write(2, "open not an error\n", 18open not an error
) = 18
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c4c00) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
brk(0xd955000) = 0xd955000
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c5370) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "select no such table: sqllite_ma"..., 37select no such table: sqllite_master
) = 37
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c51e0) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741825, l_len=1}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
open("/mnt/mame/history/history.db-journal", O_RDWR|O_CREAT|O_CLOEXEC, 0755) = 20
fstat(20, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
geteuid() = 1000
open("/dev/urandom", O_RDONLY|O_CLOEXEC) = 21
read(21, "\25\326\260\260\351\360\205\343\34z\253\232\314\10\20jN|\353\357\345Zj*\273\23b\377\217\26i'"..., 256) = 256
close(21) = 0
lseek(20, 0, SEEK_SET) = 0
write(20, "\0\0\0\0\0\0\0\0\0\0\0\0\316R\220\345\0\0\0\0\0\0\2\0\0\0\20\0\0\0\0\0"..., 512) = 512
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = -1 EACCES (Permission denied)
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
lseek(20, 8, SEEK_SET) = 8
read(20, "\0\0\0\0", 4) = 4
lseek(20, 12, SEEK_SET) = 12
read(20, "\316R\220\345", 4) = 4
lseek(20, 16, SEEK_SET) = 16
read(20, "\0\0\0\0", 4) = 4
lseek(20, 20, SEEK_SET) = 20
read(20, "\0\0\2\0", 4) = 4
lseek(20, 24, SEEK_SET) = 24
read(20, "\0\0\20\0", 4) = 4
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
close(20) = 0
unlink("/mnt/mame/history/history.db-journal") = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=2}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "CREATE TABLE 5 database is locke"..., 34CREATE TABLE 5 database is locked
) = 34
open("plugins/data/load_dat.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/load_dat.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=4730, ...}) = 0
read(19, "local datfile = {}\r\nlocal db, sq"..., 16384) = 4730
read(19, "", 16384) = 0
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=907, ...}) = 0
read(19, "local sql = require(\"lsqlite3\")\r"..., 16384) = 907
read(19, "", 16384) = 0
close(19) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
mkdir("history", 0775) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
lseek(19, 0, SEEK_SET) = 0
read(19, "", 100) = 0
write(2, "open not an error\n", 18open not an error
) = 18
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c4c00) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
brk(0xd955000) = 0xd955000
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c5370) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "select no such table: sqllite_ma"..., 37select no such table: sqllite_master
) = 37
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c51e0) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741825, l_len=1}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
open("/mnt/mame/history/history.db-journal", O_RDWR|O_CREAT|O_CLOEXEC, 0755) = 20
fstat(20, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
geteuid() = 1000
open("/dev/urandom", O_RDONLY|O_CLOEXEC) = 21
read(21, "\25\326\260\260\351\360\205\343\34z\253\232\314\10\20jN|\353\357\345Zj*\273\23b\377\217\26i'"..., 256) = 256
close(21) = 0
lseek(20, 0, SEEK_SET) = 0
write(20, "\0\0\0\0\0\0\0\0\0\0\0\0\316R\220\345\0\0\0\0\0\0\2\0\0\0\20\0\0\0\0\0"..., 512) = 512
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = -1 EACCES (Permission denied)
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
lseek(20, 8, SEEK_SET) = 8
read(20, "\0\0\0\0", 4) = 4
lseek(20, 12, SEEK_SET) = 12
read(20, "\316R\220\345", 4) = 4
lseek(20, 16, SEEK_SET) = 16
read(20, "\0\0\0\0", 4) = 4
lseek(20, 20, SEEK_SET) = 20
read(20, "\0\0\2\0", 4) = 4
lseek(20, 24, SEEK_SET) = 24
read(20, "\0\0\20\0", 4) = 4
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
close(20) = 0
unlink("/mnt/mame/history/history.db-journal") = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=2}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "CREATE TABLE 5 database is locke"..., 34CREATE TABLE 5 database is locked
) = 34
open("plugins/data/load_dat.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/load_dat.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=4730, ...}) = 0
read(19, "local datfile = {}\r\nlocal db, sq"..., 16384) = 4730
read(19, "", 16384) = 0
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=907, ...}) = 0
read(19, "local sql = require(\"lsqlite3\")\r"..., 16384) = 907
read(19, "", 16384) = 0
close(19) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
mkdir("history", 0775) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
lseek(19, 0, SEEK_SET) = 0
read(19, "", 100) = 0
write(2, "open not an error\n", 18open not an error
) = 18
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c4c00) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
brk(0xd955000) = 0xd955000
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c5370) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "select no such table: sqllite_ma"..., 37select no such table: sqllite_master
) = 37
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c51e0) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741825, l_len=1}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
open("/mnt/mame/history/history.db-journal", O_RDWR|O_CREAT|O_CLOEXEC, 0755) = 20
fstat(20, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
geteuid() = 1000
open("/dev/urandom", O_RDONLY|O_CLOEXEC) = 21
read(21, "\25\326\260\260\351\360\205\343\34z\253\232\314\10\20jN|\353\357\345Zj*\273\23b\377\217\26i'"..., 256) = 256
close(21) = 0
lseek(20, 0, SEEK_SET) = 0
write(20, "\0\0\0\0\0\0\0\0\0\0\0\0\316R\220\345\0\0\0\0\0\0\2\0\0\0\20\0\0\0\0\0"..., 512) = 512
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = -1 EACCES (Permission denied)
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
lseek(20, 8, SEEK_SET) = 8
read(20, "\0\0\0\0", 4) = 4
lseek(20, 12, SEEK_SET) = 12
read(20, "\316R\220\345", 4) = 4
lseek(20, 16, SEEK_SET) = 16
read(20, "\0\0\0\0", 4) = 4
lseek(20, 20, SEEK_SET) = 20
read(20, "\0\0\2\0", 4) = 4
lseek(20, 24, SEEK_SET) = 24
read(20, "\0\0\20\0", 4) = 4
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
close(20) = 0
unlink("/mnt/mame/history/history.db-journal") = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=2}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "CREATE TABLE 5 database is locke"..., 34CREATE TABLE 5 database is locked
) = 34
open("plugins/data/load_dat.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/load_dat.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=4730, ...}) = 0
read(19, "local datfile = {}\r\nlocal db, sq"..., 16384) = 4730
read(19, "", 16384) = 0
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=907, ...}) = 0
read(19, "local sql = require(\"lsqlite3\")\r"..., 16384) = 907
read(19, "", 16384) = 0
close(19) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
mkdir("history", 0775) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
lseek(19, 0, SEEK_SET) = 0
read(19, "", 100) = 0
write(2, "open not an error\n", 18open not an error
) = 18
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c4c00) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
brk(0xd955000) = 0xd955000
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c5370) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "select no such table: sqllite_ma"..., 37select no such table: sqllite_master
) = 37
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c51e0) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741825, l_len=1}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
open("/mnt/mame/history/history.db-journal", O_RDWR|O_CREAT|O_CLOEXEC, 0755) = 20
fstat(20, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
geteuid() = 1000
open("/dev/urandom", O_RDONLY|O_CLOEXEC) = 21
read(21, "\25\326\260\260\351\360\205\343\34z\253\232\314\10\20jN|\353\357\345Zj*\273\23b\377\217\26i'"..., 256) = 256
close(21) = 0
lseek(20, 0, SEEK_SET) = 0
write(20, "\0\0\0\0\0\0\0\0\0\0\0\0\316R\220\345\0\0\0\0\0\0\2\0\0\0\20\0\0\0\0\0"..., 512) = 512
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = -1 EACCES (Permission denied)
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
lseek(20, 8, SEEK_SET) = 8
read(20, "\0\0\0\0", 4) = 4
lseek(20, 12, SEEK_SET) = 12
read(20, "\316R\220\345", 4) = 4
lseek(20, 16, SEEK_SET) = 16
read(20, "\0\0\0\0", 4) = 4
lseek(20, 20, SEEK_SET) = 20
read(20, "\0\0\2\0", 4) = 4
lseek(20, 24, SEEK_SET) = 24
read(20, "\0\0\20\0", 4) = 4
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
close(20) = 0
unlink("/mnt/mame/history/history.db-journal") = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=2}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "CREATE TABLE 5 database is locke"..., 34CREATE TABLE 5 database is locked
) = 34
open("plugins/data/load_dat.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/load_dat.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=4730, ...}) = 0
read(19, "local datfile = {}\r\nlocal db, sq"..., 16384) = 4730
read(19, "", 16384) = 0
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=907, ...}) = 0
read(19, "local sql = require(\"lsqlite3\")\r"..., 16384) = 907
read(19, "", 16384) = 0
close(19) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
mkdir("history", 0775) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
lseek(19, 0, SEEK_SET) = 0
read(19, "", 100) = 0
write(2, "open not an error\n", 18open not an error
) = 18
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c4c00) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
brk(0xd955000) = 0xd955000
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c5370) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "select no such table: sqllite_ma"..., 37select no such table: sqllite_master
) = 37
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c51e0) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741825, l_len=1}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
open("/mnt/mame/history/history.db-journal", O_RDWR|O_CREAT|O_CLOEXEC, 0755) = 20
fstat(20, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
geteuid() = 1000
open("/dev/urandom", O_RDONLY|O_CLOEXEC) = 21
read(21, "\25\326\260\260\351\360\205\343\34z\253\232\314\10\20jN|\353\357\345Zj*\273\23b\377\217\26i'"..., 256) = 256
close(21) = 0
lseek(20, 0, SEEK_SET) = 0
write(20, "\0\0\0\0\0\0\0\0\0\0\0\0\316R\220\345\0\0\0\0\0\0\2\0\0\0\20\0\0\0\0\0"..., 512) = 512
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = -1 EACCES (Permission denied)
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
lseek(20, 8, SEEK_SET) = 8
read(20, "\0\0\0\0", 4) = 4
lseek(20, 12, SEEK_SET) = 12
read(20, "\316R\220\345", 4) = 4
lseek(20, 16, SEEK_SET) = 16
read(20, "\0\0\0\0", 4) = 4
lseek(20, 20, SEEK_SET) = 20
read(20, "\0\0\2\0", 4) = 4
lseek(20, 24, SEEK_SET) = 24
read(20, "\0\0\20\0", 4) = 4
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
close(20) = 0
unlink("/mnt/mame/history/history.db-journal") = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=2}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "CREATE TABLE 5 database is locke"..., 34CREATE TABLE 5 database is locked
) = 34
open("plugins/data/load_dat.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/load_dat.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=4730, ...}) = 0
read(19, "local datfile = {}\r\nlocal db, sq"..., 16384) = 4730
read(19, "", 16384) = 0
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=907, ...}) = 0
read(19, "local sql = require(\"lsqlite3\")\r"..., 16384) = 907
read(19, "", 16384) = 0
close(19) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
mkdir("history", 0775) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
lseek(19, 0, SEEK_SET) = 0
read(19, "", 100) = 0
write(2, "open not an error\n", 18open not an error
) = 18
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c4c00) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
brk(0xd955000) = 0xd955000
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c5370) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "select no such table: sqllite_ma"..., 37select no such table: sqllite_master
) = 37
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c51e0) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741825, l_len=1}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
open("/mnt/mame/history/history.db-journal", O_RDWR|O_CREAT|O_CLOEXEC, 0755) = 20
fstat(20, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
geteuid() = 1000
open("/dev/urandom", O_RDONLY|O_CLOEXEC) = 21
read(21, "\25\326\260\260\351\360\205\343\34z\253\232\314\10\20jN|\353\357\345Zj*\273\23b\377\217\26i'"..., 256) = 256
close(21) = 0
lseek(20, 0, SEEK_SET) = 0
write(20, "\0\0\0\0\0\0\0\0\0\0\0\0\316R\220\345\0\0\0\0\0\0\2\0\0\0\20\0\0\0\0\0"..., 512) = 512
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = -1 EACCES (Permission denied)
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
lseek(20, 8, SEEK_SET) = 8
read(20, "\0\0\0\0", 4) = 4
lseek(20, 12, SEEK_SET) = 12
read(20, "\316R\220\345", 4) = 4
lseek(20, 16, SEEK_SET) = 16
read(20, "\0\0\0\0", 4) = 4
lseek(20, 20, SEEK_SET) = 20
read(20, "\0\0\2\0", 4) = 4
lseek(20, 24, SEEK_SET) = 24
read(20, "\0\0\20\0", 4) = 4
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
close(20) = 0
unlink("/mnt/mame/history/history.db-journal") = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=2}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "CREATE TABLE 5 database is locke"..., 34CREATE TABLE 5 database is locked
) = 34
open("plugins/data/load_dat.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/load_dat.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=4730, ...}) = 0
read(19, "local datfile = {}\r\nlocal db, sq"..., 16384) = 4730
read(19, "", 16384) = 0
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=907, ...}) = 0
read(19, "local sql = require(\"lsqlite3\")\r"..., 16384) = 907
read(19, "", 16384) = 0
close(19) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
mkdir("history", 0775) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
lseek(19, 0, SEEK_SET) = 0
read(19, "", 100) = 0
write(2, "open not an error\n", 18open not an error
) = 18
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c4c00) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
brk(0xd955000) = 0xd955000
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c5370) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "select no such table: sqllite_ma"..., 37select no such table: sqllite_master
) = 37
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c51e0) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741825, l_len=1}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
open("/mnt/mame/history/history.db-journal", O_RDWR|O_CREAT|O_CLOEXEC, 0755) = 20
fstat(20, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
geteuid() = 1000
open("/dev/urandom", O_RDONLY|O_CLOEXEC) = 21
read(21, "\25\326\260\260\351\360\205\343\34z\253\232\314\10\20jN|\353\357\345Zj*\273\23b\377\217\26i'"..., 256) = 256
close(21) = 0
lseek(20, 0, SEEK_SET) = 0
write(20, "\0\0\0\0\0\0\0\0\0\0\0\0\316R\220\345\0\0\0\0\0\0\2\0\0\0\20\0\0\0\0\0"..., 512) = 512
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = -1 EACCES (Permission denied)
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
lseek(20, 8, SEEK_SET) = 8
read(20, "\0\0\0\0", 4) = 4
lseek(20, 12, SEEK_SET) = 12
read(20, "\316R\220\345", 4) = 4
lseek(20, 16, SEEK_SET) = 16
read(20, "\0\0\0\0", 4) = 4
lseek(20, 20, SEEK_SET) = 20
read(20, "\0\0\2\0", 4) = 4
lseek(20, 24, SEEK_SET) = 24
read(20, "\0\0\20\0", 4) = 4
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
close(20) = 0
unlink("/mnt/mame/history/history.db-journal") = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=2}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "CREATE TABLE 5 database is locke"..., 34CREATE TABLE 5 database is locked
) = 34
open("plugins/data/load_dat.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/load_dat.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=4730, ...}) = 0
read(19, "local datfile = {}\r\nlocal db, sq"..., 16384) = 4730
read(19, "", 16384) = 0
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=907, ...}) = 0
read(19, "local sql = require(\"lsqlite3\")\r"..., 16384) = 907
read(19, "", 16384) = 0
close(19) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
mkdir("history", 0775) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
lseek(19, 0, SEEK_SET) = 0
read(19, "", 100) = 0
write(2, "open not an error\n", 18open not an error
) = 18
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c4c00) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
brk(0xd955000) = 0xd955000
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c5370) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "select no such table: sqllite_ma"..., 37select no such table: sqllite_master
) = 37
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c51e0) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741825, l_len=1}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
open("/mnt/mame/history/history.db-journal", O_RDWR|O_CREAT|O_CLOEXEC, 0755) = 20
fstat(20, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
geteuid() = 1000
open("/dev/urandom", O_RDONLY|O_CLOEXEC) = 21
read(21, "\25\326\260\260\351\360\205\343\34z\253\232\314\10\20jN|\353\357\345Zj*\273\23b\377\217\26i'"..., 256) = 256
close(21) = 0
lseek(20, 0, SEEK_SET) = 0
write(20, "\0\0\0\0\0\0\0\0\0\0\0\0\316R\220\345\0\0\0\0\0\0\2\0\0\0\20\0\0\0\0\0"..., 512) = 512
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = -1 EACCES (Permission denied)
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
lseek(20, 8, SEEK_SET) = 8
read(20, "\0\0\0\0", 4) = 4
lseek(20, 12, SEEK_SET) = 12
read(20, "\316R\220\345", 4) = 4
lseek(20, 16, SEEK_SET) = 16
read(20, "\0\0\0\0", 4) = 4
lseek(20, 20, SEEK_SET) = 20
read(20, "\0\0\2\0", 4) = 4
lseek(20, 24, SEEK_SET) = 24
read(20, "\0\0\20\0", 4) = 4
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
close(20) = 0
unlink("/mnt/mame/history/history.db-journal") = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=2}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "CREATE TABLE 5 database is locke"..., 34CREATE TABLE 5 database is locked
) = 34
open("plugins/data/load_dat.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/load_dat.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=4730, ...}) = 0
read(19, "local datfile = {}\r\nlocal db, sq"..., 16384) = 4730
read(19, "", 16384) = 0
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=907, ...}) = 0
read(19, "local sql = require(\"lsqlite3\")\r"..., 16384) = 907
read(19, "", 16384) = 0
close(19) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
mkdir("history", 0775) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
lseek(19, 0, SEEK_SET) = 0
read(19, "", 100) = 0
write(2, "open not an error\n", 18open not an error
) = 18
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c4c00) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
brk(0xd955000) = 0xd955000
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c5370) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "select no such table: sqllite_ma"..., 37select no such table: sqllite_master
) = 37
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c51e0) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741825, l_len=1}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
open("/mnt/mame/history/history.db-journal", O_RDWR|O_CREAT|O_CLOEXEC, 0755) = 20
fstat(20, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
geteuid() = 1000
open("/dev/urandom", O_RDONLY|O_CLOEXEC) = 21
read(21, "\25\326\260\260\351\360\205\343\34z\253\232\314\10\20jN|\353\357\345Zj*\273\23b\377\217\26i'"..., 256) = 256
close(21) = 0
lseek(20, 0, SEEK_SET) = 0
write(20, "\0\0\0\0\0\0\0\0\0\0\0\0\316R\220\345\0\0\0\0\0\0\2\0\0\0\20\0\0\0\0\0"..., 512) = 512
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = -1 EACCES (Permission denied)
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
lseek(20, 8, SEEK_SET) = 8
read(20, "\0\0\0\0", 4) = 4
lseek(20, 12, SEEK_SET) = 12
read(20, "\316R\220\345", 4) = 4
lseek(20, 16, SEEK_SET) = 16
read(20, "\0\0\0\0", 4) = 4
lseek(20, 20, SEEK_SET) = 20
read(20, "\0\0\2\0", 4) = 4
lseek(20, 24, SEEK_SET) = 24
read(20, "\0\0\20\0", 4) = 4
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
close(20) = 0
unlink("/mnt/mame/history/history.db-journal") = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=2}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "CREATE TABLE 5 database is locke"..., 34CREATE TABLE 5 database is locked
) = 34
"..., 512) = 512
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = -1 EACCES (Permission denied)
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "
open("plugins/data/load_dat.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/load_dat.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=4730, ...}) = 0
read(19, "local datfile = {}\r\nlocal db, sq"..., 16384) = 4730
read(19, "", 16384) = 0
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=907, ...}) = 0
read(19, "local sql = require(\"lsqlite3\")\r"..., 16384) = 907
read(19, "", 16384) = 0
close(19) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
mkdir("history", 0775) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
lseek(19, 0, SEEK_SET) = 0
read(19, "", 100) = 0
write(2, "open not an error\n", 18open not an error
) = 18
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c4c00) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
brk(0xd955000) = 0xd955000
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c5370) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "select no such table: sqllite_ma"..., 37select no such table: sqllite_master
) = 37
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c51e0) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741825, l_len=1}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
open("/mnt/mame/history/history.db-journal", O_RDWR|O_CREAT|O_CLOEXEC, 0755) = 20
fstat(20, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
geteuid() = 1000
open("/dev/urandom", O_RDONLY|O_CLOEXEC) = 21
read(21, "\25\326\260\260\351\360\205\343\34z\253\232\314\10\20jN|\353\357\345Zj*\273\23b\377\217\26i'"..., 256) = 256
close(21) = 0
lseek(20, 0, SEEK_SET) = 0
write(20, "\0\0\0\0\0\0\0\0\0\0\0\0\316R\220\345\0\0\0\0\0\0\2\0\0\0\20\0\0\0\0\0"..., 512) = 512
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = -1 EACCES (Permission denied)
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
lseek(20, 8, SEEK_SET) = 8
read(20, "\0\0\0\0", 4) = 4
lseek(20, 12, SEEK_SET) = 12
read(20, "\316R\220\345", 4) = 4
lseek(20, 16, SEEK_SET) = 16
read(20, "\0\0\0\0", 4) = 4
lseek(20, 20, SEEK_SET) = 20
read(20, "\0\0\2\0", 4) = 4
lseek(20, 24, SEEK_SET) = 24
read(20, "\0\0\20\0", 4) = 4
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
close(20) = 0
unlink("/mnt/mame/history/history.db-journal") = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=2}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "CREATE TABLE 5 database is locke"..., 34CREATE TABLE 5 database is locked
) = 34
open("plugins/data/load_dat.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/load_dat.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=4730, ...}) = 0
read(19, "local datfile = {}\r\nlocal db, sq"..., 16384) = 4730
read(19, "", 16384) = 0
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=907, ...}) = 0
read(19, "local sql = require(\"lsqlite3\")\r"..., 16384) = 907
read(19, "", 16384) = 0
close(19) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
mkdir("history", 0775) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
lseek(19, 0, SEEK_SET) = 0
read(19, "", 100) = 0
write(2, "open not an error\n", 18open not an error
) = 18
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c4c00) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
brk(0xd955000) = 0xd955000
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c5370) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "select no such table: sqllite_ma"..., 37select no such table: sqllite_master
) = 37
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c51e0) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741825, l_len=1}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
open("/mnt/mame/history/history.db-journal", O_RDWR|O_CREAT|O_CLOEXEC, 0755) = 20
fstat(20, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
geteuid() = 1000
open("/dev/urandom", O_RDONLY|O_CLOEXEC) = 21
read(21, "\25\326\260\260\351\360\205\343\34z\253\232\314\10\20jN|\353\357\345Zj*\273\23b\377\217\26i'"..., 256) = 256
close(21) = 0
lseek(20, 0, SEEK_SET) = 0
write(20, "\0\0\0\0\0\0\0\0\0\0\0\0\316R\220\345\0\0\0\0\0\0\2\0\0\0\20\0\0\0\0\0"..., 512) = 512
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = -1 EACCES (Permission denied)
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
lseek(20, 8, SEEK_SET) = 8
read(20, "\0\0\0\0", 4) = 4
lseek(20, 12, SEEK_SET) = 12
read(20, "\316R\220\345", 4) = 4
lseek(20, 16, SEEK_SET) = 16
read(20, "\0\0\0\0", 4) = 4
lseek(20, 20, SEEK_SET) = 20
read(20, "\0\0\2\0", 4) = 4
lseek(20, 24, SEEK_SET) = 24
read(20, "\0\0\20\0", 4) = 4
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
close(20) = 0
unlink("/mnt/mame/history/history.db-journal") = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=2}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "CREATE TABLE 5 database is locke"..., 34CREATE TABLE 5 database is locked
) = 34
open("plugins/data/load_dat.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/load_dat.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=4730, ...}) = 0
read(19, "local datfile = {}\r\nlocal db, sq"..., 16384) = 4730
read(19, "", 16384) = 0
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=907, ...}) = 0
read(19, "local sql = require(\"lsqlite3\")\r"..., 16384) = 907
read(19, "", 16384) = 0
close(19) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
mkdir("history", 0775) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
lseek(19, 0, SEEK_SET) = 0
read(19, "", 100) = 0
write(2, "open not an error\n", 18open not an error
) = 18
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c4c00) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
brk(0xd955000) = 0xd955000
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c5370) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "select no such table: sqllite_ma"..., 37select no such table: sqllite_master
) = 37
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c51e0) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741825, l_len=1}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
open("/mnt/mame/history/history.db-journal", O_RDWR|O_CREAT|O_CLOEXEC, 0755) = 20
fstat(20, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
geteuid() = 1000
open("/dev/urandom", O_RDONLY|O_CLOEXEC) = 21
read(21, "\25\326\260\260\351\360\205\343\34z\253\232\314\10\20jN|\353\357\345Zj*\273\23b\377\217\26i'"..., 256) = 256
close(21) = 0
lseek(20, 0, SEEK_SET) = 0
write(20, "\0\0\0\0\0\0\0\0\0\0\0\0\316R\220\345\0\0\0\0\0\0\2\0\0\0\20\0\0\0\0\0"..., 512) = 512
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = -1 EACCES (Permission denied)
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
lseek(20, 8, SEEK_SET) = 8
read(20, "\0\0\0\0", 4) = 4
lseek(20, 12, SEEK_SET) = 12
read(20, "\316R\220\345", 4) = 4
lseek(20, 16, SEEK_SET) = 16
read(20, "\0\0\0\0", 4) = 4
lseek(20, 20, SEEK_SET) = 20
read(20, "\0\0\2\0", 4) = 4
lseek(20, 24, SEEK_SET) = 24
read(20, "\0\0\20\0", 4) = 4
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
close(20) = 0
unlink("/mnt/mame/history/history.db-journal") = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=2}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "CREATE TABLE 5 database is locke"..., 34CREATE TABLE 5 database is locked
) = 34
open("plugins/data/load_dat.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/load_dat.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=4730, ...}) = 0
read(19, "local datfile = {}\r\nlocal db, sq"..., 16384) = 4730
read(19, "", 16384) = 0
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=907, ...}) = 0
read(19, "local sql = require(\"lsqlite3\")\r"..., 16384) = 907
read(19, "", 16384) = 0
close(19) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
mkdir("history", 0775) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
lseek(19, 0, SEEK_SET) = 0
read(19, "", 100) = 0
write(2, "open not an error\n", 18open not an error
) = 18
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c4c00) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
brk(0xd955000) = 0xd955000
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c5370) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "select no such table: sqllite_ma"..., 37select no such table: sqllite_master
) = 37
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c51e0) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741825, l_len=1}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
open("/mnt/mame/history/history.db-journal", O_RDWR|O_CREAT|O_CLOEXEC, 0755) = 20
fstat(20, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
geteuid() = 1000
open("/dev/urandom", O_RDONLY|O_CLOEXEC) = 21
read(21, "\25\326\260\260\351\360\205\343\34z\253\232\314\10\20jN|\353\357\345Zj*\273\23b\377\217\26i'"..., 256) = 256
close(21) = 0
lseek(20, 0, SEEK_SET) = 0
write(20, "\0\0\0\0\0\0\0\0\0\0\0\0\316R\220\345\0\0\0\0\0\0\2\0\0\0\20\0\0\0\0\0"..., 512) = 512
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = -1 EACCES (Permission denied)
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
lseek(20, 8, SEEK_SET) = 8
read(20, "\0\0\0\0", 4) = 4
lseek(20, 12, SEEK_SET) = 12
read(20, "\316R\220\345", 4) = 4
lseek(20, 16, SEEK_SET) = 16
read(20, "\0\0\0\0", 4) = 4
lseek(20, 20, SEEK_SET) = 20
read(20, "\0\0\2\0", 4) = 4
lseek(20, 24, SEEK_SET) = 24
read(20, "\0\0\20\0", 4) = 4
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
close(20) = 0
unlink("/mnt/mame/history/history.db-journal") = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=2}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "CREATE TABLE 5 database is locke"..., 34CREATE TABLE 5 database is locked
) = 34
", 4) = 4
lseek(20, 8, SEEK_SET) = 8
read(20, "
open("plugins/data/load_dat.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/load_dat.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=4730, ...}) = 0
read(19, "local datfile = {}\r\nlocal db, sq"..., 16384) = 4730
read(19, "", 16384) = 0
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=907, ...}) = 0
read(19, "local sql = require(\"lsqlite3\")\r"..., 16384) = 907
read(19, "", 16384) = 0
close(19) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
mkdir("history", 0775) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
lseek(19, 0, SEEK_SET) = 0
read(19, "", 100) = 0
write(2, "open not an error\n", 18open not an error
) = 18
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c4c00) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
brk(0xd955000) = 0xd955000
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c5370) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "select no such table: sqllite_ma"..., 37select no such table: sqllite_master
) = 37
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c51e0) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741825, l_len=1}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
open("/mnt/mame/history/history.db-journal", O_RDWR|O_CREAT|O_CLOEXEC, 0755) = 20
fstat(20, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
geteuid() = 1000
open("/dev/urandom", O_RDONLY|O_CLOEXEC) = 21
read(21, "\25\326\260\260\351\360\205\343\34z\253\232\314\10\20jN|\353\357\345Zj*\273\23b\377\217\26i'"..., 256) = 256
close(21) = 0
lseek(20, 0, SEEK_SET) = 0
write(20, "\0\0\0\0\0\0\0\0\0\0\0\0\316R\220\345\0\0\0\0\0\0\2\0\0\0\20\0\0\0\0\0"..., 512) = 512
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = -1 EACCES (Permission denied)
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
lseek(20, 8, SEEK_SET) = 8
read(20, "\0\0\0\0", 4) = 4
lseek(20, 12, SEEK_SET) = 12
read(20, "\316R\220\345", 4) = 4
lseek(20, 16, SEEK_SET) = 16
read(20, "\0\0\0\0", 4) = 4
lseek(20, 20, SEEK_SET) = 20
read(20, "\0\0\2\0", 4) = 4
lseek(20, 24, SEEK_SET) = 24
read(20, "\0\0\20\0", 4) = 4
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
close(20) = 0
unlink("/mnt/mame/history/history.db-journal") = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=2}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "CREATE TABLE 5 database is locke"..., 34CREATE TABLE 5 database is locked
) = 34
open("plugins/data/load_dat.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/load_dat.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=4730, ...}) = 0
read(19, "local datfile = {}\r\nlocal db, sq"..., 16384) = 4730
read(19, "", 16384) = 0
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=907, ...}) = 0
read(19, "local sql = require(\"lsqlite3\")\r"..., 16384) = 907
read(19, "", 16384) = 0
close(19) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
mkdir("history", 0775) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
lseek(19, 0, SEEK_SET) = 0
read(19, "", 100) = 0
write(2, "open not an error\n", 18open not an error
) = 18
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c4c00) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
brk(0xd955000) = 0xd955000
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c5370) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "select no such table: sqllite_ma"..., 37select no such table: sqllite_master
) = 37
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c51e0) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741825, l_len=1}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
open("/mnt/mame/history/history.db-journal", O_RDWR|O_CREAT|O_CLOEXEC, 0755) = 20
fstat(20, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
geteuid() = 1000
open("/dev/urandom", O_RDONLY|O_CLOEXEC) = 21
read(21, "\25\326\260\260\351\360\205\343\34z\253\232\314\10\20jN|\353\357\345Zj*\273\23b\377\217\26i'"..., 256) = 256
close(21) = 0
lseek(20, 0, SEEK_SET) = 0
write(20, "\0\0\0\0\0\0\0\0\0\0\0\0\316R\220\345\0\0\0\0\0\0\2\0\0\0\20\0\0\0\0\0"..., 512) = 512
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = -1 EACCES (Permission denied)
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
lseek(20, 8, SEEK_SET) = 8
read(20, "\0\0\0\0", 4) = 4
lseek(20, 12, SEEK_SET) = 12
read(20, "\316R\220\345", 4) = 4
lseek(20, 16, SEEK_SET) = 16
read(20, "\0\0\0\0", 4) = 4
lseek(20, 20, SEEK_SET) = 20
read(20, "\0\0\2\0", 4) = 4
lseek(20, 24, SEEK_SET) = 24
read(20, "\0\0\20\0", 4) = 4
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
close(20) = 0
unlink("/mnt/mame/history/history.db-journal") = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=2}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "CREATE TABLE 5 database is locke"..., 34CREATE TABLE 5 database is locked
) = 34
open("plugins/data/load_dat.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/load_dat.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=4730, ...}) = 0
read(19, "local datfile = {}\r\nlocal db, sq"..., 16384) = 4730
read(19, "", 16384) = 0
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=907, ...}) = 0
read(19, "local sql = require(\"lsqlite3\")\r"..., 16384) = 907
read(19, "", 16384) = 0
close(19) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
mkdir("history", 0775) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
lseek(19, 0, SEEK_SET) = 0
read(19, "", 100) = 0
write(2, "open not an error\n", 18open not an error
) = 18
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c4c00) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
brk(0xd955000) = 0xd955000
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c5370) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "select no such table: sqllite_ma"..., 37select no such table: sqllite_master
) = 37
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c51e0) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741825, l_len=1}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
open("/mnt/mame/history/history.db-journal", O_RDWR|O_CREAT|O_CLOEXEC, 0755) = 20
fstat(20, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
geteuid() = 1000
open("/dev/urandom", O_RDONLY|O_CLOEXEC) = 21
read(21, "\25\326\260\260\351\360\205\343\34z\253\232\314\10\20jN|\353\357\345Zj*\273\23b\377\217\26i'"..., 256) = 256
close(21) = 0
lseek(20, 0, SEEK_SET) = 0
write(20, "\0\0\0\0\0\0\0\0\0\0\0\0\316R\220\345\0\0\0\0\0\0\2\0\0\0\20\0\0\0\0\0"..., 512) = 512
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = -1 EACCES (Permission denied)
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
lseek(20, 8, SEEK_SET) = 8
read(20, "\0\0\0\0", 4) = 4
lseek(20, 12, SEEK_SET) = 12
read(20, "\316R\220\345", 4) = 4
lseek(20, 16, SEEK_SET) = 16
read(20, "\0\0\0\0", 4) = 4
lseek(20, 20, SEEK_SET) = 20
read(20, "\0\0\2\0", 4) = 4
lseek(20, 24, SEEK_SET) = 24
read(20, "\0\0\20\0", 4) = 4
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
close(20) = 0
unlink("/mnt/mame/history/history.db-journal") = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=2}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "CREATE TABLE 5 database is locke"..., 34CREATE TABLE 5 database is locked
) = 34
open("plugins/data/load_dat.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/load_dat.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=4730, ...}) = 0
read(19, "local datfile = {}\r\nlocal db, sq"..., 16384) = 4730
read(19, "", 16384) = 0
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=907, ...}) = 0
read(19, "local sql = require(\"lsqlite3\")\r"..., 16384) = 907
read(19, "", 16384) = 0
close(19) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
mkdir("history", 0775) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
lseek(19, 0, SEEK_SET) = 0
read(19, "", 100) = 0
write(2, "open not an error\n", 18open not an error
) = 18
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c4c00) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
brk(0xd955000) = 0xd955000
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c5370) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "select no such table: sqllite_ma"..., 37select no such table: sqllite_master
) = 37
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c51e0) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741825, l_len=1}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
open("/mnt/mame/history/history.db-journal", O_RDWR|O_CREAT|O_CLOEXEC, 0755) = 20
fstat(20, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
geteuid() = 1000
open("/dev/urandom", O_RDONLY|O_CLOEXEC) = 21
read(21, "\25\326\260\260\351\360\205\343\34z\253\232\314\10\20jN|\353\357\345Zj*\273\23b\377\217\26i'"..., 256) = 256
close(21) = 0
lseek(20, 0, SEEK_SET) = 0
write(20, "\0\0\0\0\0\0\0\0\0\0\0\0\316R\220\345\0\0\0\0\0\0\2\0\0\0\20\0\0\0\0\0"..., 512) = 512
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = -1 EACCES (Permission denied)
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
lseek(20, 8, SEEK_SET) = 8
read(20, "\0\0\0\0", 4) = 4
lseek(20, 12, SEEK_SET) = 12
read(20, "\316R\220\345", 4) = 4
lseek(20, 16, SEEK_SET) = 16
read(20, "\0\0\0\0", 4) = 4
lseek(20, 20, SEEK_SET) = 20
read(20, "\0\0\2\0", 4) = 4
lseek(20, 24, SEEK_SET) = 24
read(20, "\0\0\20\0", 4) = 4
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
close(20) = 0
unlink("/mnt/mame/history/history.db-journal") = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=2}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "CREATE TABLE 5 database is locke"..., 34CREATE TABLE 5 database is locked
) = 34
", 4) = 4
lseek(20, 12, SEEK_SET) = 12
read(20, "6R05", 4) = 4
lseek(20, 16, SEEK_SET) = 16
read(20, "
open("plugins/data/load_dat.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/load_dat.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=4730, ...}) = 0
read(19, "local datfile = {}\r\nlocal db, sq"..., 16384) = 4730
read(19, "", 16384) = 0
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=907, ...}) = 0
read(19, "local sql = require(\"lsqlite3\")\r"..., 16384) = 907
read(19, "", 16384) = 0
close(19) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
mkdir("history", 0775) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
lseek(19, 0, SEEK_SET) = 0
read(19, "", 100) = 0
write(2, "open not an error\n", 18open not an error
) = 18
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c4c00) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
brk(0xd955000) = 0xd955000
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c5370) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "select no such table: sqllite_ma"..., 37select no such table: sqllite_master
) = 37
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c51e0) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741825, l_len=1}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
open("/mnt/mame/history/history.db-journal", O_RDWR|O_CREAT|O_CLOEXEC, 0755) = 20
fstat(20, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
geteuid() = 1000
open("/dev/urandom", O_RDONLY|O_CLOEXEC) = 21
read(21, "\25\326\260\260\351\360\205\343\34z\253\232\314\10\20jN|\353\357\345Zj*\273\23b\377\217\26i'"..., 256) = 256
close(21) = 0
lseek(20, 0, SEEK_SET) = 0
write(20, "\0\0\0\0\0\0\0\0\0\0\0\0\316R\220\345\0\0\0\0\0\0\2\0\0\0\20\0\0\0\0\0"..., 512) = 512
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = -1 EACCES (Permission denied)
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
lseek(20, 8, SEEK_SET) = 8
read(20, "\0\0\0\0", 4) = 4
lseek(20, 12, SEEK_SET) = 12
read(20, "\316R\220\345", 4) = 4
lseek(20, 16, SEEK_SET) = 16
read(20, "\0\0\0\0", 4) = 4
lseek(20, 20, SEEK_SET) = 20
read(20, "\0\0\2\0", 4) = 4
lseek(20, 24, SEEK_SET) = 24
read(20, "\0\0\20\0", 4) = 4
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
close(20) = 0
unlink("/mnt/mame/history/history.db-journal") = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=2}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "CREATE TABLE 5 database is locke"..., 34CREATE TABLE 5 database is locked
) = 34
open("plugins/data/load_dat.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/load_dat.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=4730, ...}) = 0
read(19, "local datfile = {}\r\nlocal db, sq"..., 16384) = 4730
read(19, "", 16384) = 0
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=907, ...}) = 0
read(19, "local sql = require(\"lsqlite3\")\r"..., 16384) = 907
read(19, "", 16384) = 0
close(19) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
mkdir("history", 0775) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
lseek(19, 0, SEEK_SET) = 0
read(19, "", 100) = 0
write(2, "open not an error\n", 18open not an error
) = 18
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c4c00) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
brk(0xd955000) = 0xd955000
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c5370) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "select no such table: sqllite_ma"..., 37select no such table: sqllite_master
) = 37
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c51e0) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741825, l_len=1}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
open("/mnt/mame/history/history.db-journal", O_RDWR|O_CREAT|O_CLOEXEC, 0755) = 20
fstat(20, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
geteuid() = 1000
open("/dev/urandom", O_RDONLY|O_CLOEXEC) = 21
read(21, "\25\326\260\260\351\360\205\343\34z\253\232\314\10\20jN|\353\357\345Zj*\273\23b\377\217\26i'"..., 256) = 256
close(21) = 0
lseek(20, 0, SEEK_SET) = 0
write(20, "\0\0\0\0\0\0\0\0\0\0\0\0\316R\220\345\0\0\0\0\0\0\2\0\0\0\20\0\0\0\0\0"..., 512) = 512
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = -1 EACCES (Permission denied)
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
lseek(20, 8, SEEK_SET) = 8
read(20, "\0\0\0\0", 4) = 4
lseek(20, 12, SEEK_SET) = 12
read(20, "\316R\220\345", 4) = 4
lseek(20, 16, SEEK_SET) = 16
read(20, "\0\0\0\0", 4) = 4
lseek(20, 20, SEEK_SET) = 20
read(20, "\0\0\2\0", 4) = 4
lseek(20, 24, SEEK_SET) = 24
read(20, "\0\0\20\0", 4) = 4
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
close(20) = 0
unlink("/mnt/mame/history/history.db-journal") = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=2}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "CREATE TABLE 5 database is locke"..., 34CREATE TABLE 5 database is locked
) = 34
open("plugins/data/load_dat.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/load_dat.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=4730, ...}) = 0
read(19, "local datfile = {}\r\nlocal db, sq"..., 16384) = 4730
read(19, "", 16384) = 0
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=907, ...}) = 0
read(19, "local sql = require(\"lsqlite3\")\r"..., 16384) = 907
read(19, "", 16384) = 0
close(19) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
mkdir("history", 0775) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
lseek(19, 0, SEEK_SET) = 0
read(19, "", 100) = 0
write(2, "open not an error\n", 18open not an error
) = 18
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c4c00) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
brk(0xd955000) = 0xd955000
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c5370) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "select no such table: sqllite_ma"..., 37select no such table: sqllite_master
) = 37
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c51e0) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741825, l_len=1}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
open("/mnt/mame/history/history.db-journal", O_RDWR|O_CREAT|O_CLOEXEC, 0755) = 20
fstat(20, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
geteuid() = 1000
open("/dev/urandom", O_RDONLY|O_CLOEXEC) = 21
read(21, "\25\326\260\260\351\360\205\343\34z\253\232\314\10\20jN|\353\357\345Zj*\273\23b\377\217\26i'"..., 256) = 256
close(21) = 0
lseek(20, 0, SEEK_SET) = 0
write(20, "\0\0\0\0\0\0\0\0\0\0\0\0\316R\220\345\0\0\0\0\0\0\2\0\0\0\20\0\0\0\0\0"..., 512) = 512
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = -1 EACCES (Permission denied)
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
lseek(20, 8, SEEK_SET) = 8
read(20, "\0\0\0\0", 4) = 4
lseek(20, 12, SEEK_SET) = 12
read(20, "\316R\220\345", 4) = 4
lseek(20, 16, SEEK_SET) = 16
read(20, "\0\0\0\0", 4) = 4
lseek(20, 20, SEEK_SET) = 20
read(20, "\0\0\2\0", 4) = 4
lseek(20, 24, SEEK_SET) = 24
read(20, "\0\0\20\0", 4) = 4
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
close(20) = 0
unlink("/mnt/mame/history/history.db-journal") = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=2}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "CREATE TABLE 5 database is locke"..., 34CREATE TABLE 5 database is locked
) = 34
open("plugins/data/load_dat.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/load_dat.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=4730, ...}) = 0
read(19, "local datfile = {}\r\nlocal db, sq"..., 16384) = 4730
read(19, "", 16384) = 0
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=907, ...}) = 0
read(19, "local sql = require(\"lsqlite3\")\r"..., 16384) = 907
read(19, "", 16384) = 0
close(19) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
mkdir("history", 0775) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
lseek(19, 0, SEEK_SET) = 0
read(19, "", 100) = 0
write(2, "open not an error\n", 18open not an error
) = 18
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c4c00) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
brk(0xd955000) = 0xd955000
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c5370) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "select no such table: sqllite_ma"..., 37select no such table: sqllite_master
) = 37
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c51e0) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741825, l_len=1}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
open("/mnt/mame/history/history.db-journal", O_RDWR|O_CREAT|O_CLOEXEC, 0755) = 20
fstat(20, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
geteuid() = 1000
open("/dev/urandom", O_RDONLY|O_CLOEXEC) = 21
read(21, "\25\326\260\260\351\360\205\343\34z\253\232\314\10\20jN|\353\357\345Zj*\273\23b\377\217\26i'"..., 256) = 256
close(21) = 0
lseek(20, 0, SEEK_SET) = 0
write(20, "\0\0\0\0\0\0\0\0\0\0\0\0\316R\220\345\0\0\0\0\0\0\2\0\0\0\20\0\0\0\0\0"..., 512) = 512
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = -1 EACCES (Permission denied)
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
lseek(20, 8, SEEK_SET) = 8
read(20, "\0\0\0\0", 4) = 4
lseek(20, 12, SEEK_SET) = 12
read(20, "\316R\220\345", 4) = 4
lseek(20, 16, SEEK_SET) = 16
read(20, "\0\0\0\0", 4) = 4
lseek(20, 20, SEEK_SET) = 20
read(20, "\0\0\2\0", 4) = 4
lseek(20, 24, SEEK_SET) = 24
read(20, "\0\0\20\0", 4) = 4
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
close(20) = 0
unlink("/mnt/mame/history/history.db-journal") = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=2}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "CREATE TABLE 5 database is locke"..., 34CREATE TABLE 5 database is locked
) = 34
", 4) = 4
lseek(20, 20, SEEK_SET) = 20
read(20, "
open("plugins/data/load_dat.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/load_dat.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=4730, ...}) = 0
read(19, "local datfile = {}\r\nlocal db, sq"..., 16384) = 4730
read(19, "", 16384) = 0
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=907, ...}) = 0
read(19, "local sql = require(\"lsqlite3\")\r"..., 16384) = 907
read(19, "", 16384) = 0
close(19) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
mkdir("history", 0775) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
lseek(19, 0, SEEK_SET) = 0
read(19, "", 100) = 0
write(2, "open not an error\n", 18open not an error
) = 18
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c4c00) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
brk(0xd955000) = 0xd955000
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c5370) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "select no such table: sqllite_ma"..., 37select no such table: sqllite_master
) = 37
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c51e0) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741825, l_len=1}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
open("/mnt/mame/history/history.db-journal", O_RDWR|O_CREAT|O_CLOEXEC, 0755) = 20
fstat(20, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
geteuid() = 1000
open("/dev/urandom", O_RDONLY|O_CLOEXEC) = 21
read(21, "\25\326\260\260\351\360\205\343\34z\253\232\314\10\20jN|\353\357\345Zj*\273\23b\377\217\26i'"..., 256) = 256
close(21) = 0
lseek(20, 0, SEEK_SET) = 0
write(20, "\0\0\0\0\0\0\0\0\0\0\0\0\316R\220\345\0\0\0\0\0\0\2\0\0\0\20\0\0\0\0\0"..., 512) = 512
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = -1 EACCES (Permission denied)
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
lseek(20, 8, SEEK_SET) = 8
read(20, "\0\0\0\0", 4) = 4
lseek(20, 12, SEEK_SET) = 12
read(20, "\316R\220\345", 4) = 4
lseek(20, 16, SEEK_SET) = 16
read(20, "\0\0\0\0", 4) = 4
lseek(20, 20, SEEK_SET) = 20
read(20, "\0\0\2\0", 4) = 4
lseek(20, 24, SEEK_SET) = 24
read(20, "\0\0\20\0", 4) = 4
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
close(20) = 0
unlink("/mnt/mame/history/history.db-journal") = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=2}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "CREATE TABLE 5 database is locke"..., 34CREATE TABLE 5 database is locked
) = 34
open("plugins/data/load_dat.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/load_dat.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=4730, ...}) = 0
read(19, "local datfile = {}\r\nlocal db, sq"..., 16384) = 4730
read(19, "", 16384) = 0
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=907, ...}) = 0
read(19, "local sql = require(\"lsqlite3\")\r"..., 16384) = 907
read(19, "", 16384) = 0
close(19) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
mkdir("history", 0775) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
lseek(19, 0, SEEK_SET) = 0
read(19, "", 100) = 0
write(2, "open not an error\n", 18open not an error
) = 18
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c4c00) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
brk(0xd955000) = 0xd955000
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c5370) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "select no such table: sqllite_ma"..., 37select no such table: sqllite_master
) = 37
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c51e0) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741825, l_len=1}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
open("/mnt/mame/history/history.db-journal", O_RDWR|O_CREAT|O_CLOEXEC, 0755) = 20
fstat(20, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
geteuid() = 1000
open("/dev/urandom", O_RDONLY|O_CLOEXEC) = 21
read(21, "\25\326\260\260\351\360\205\343\34z\253\232\314\10\20jN|\353\357\345Zj*\273\23b\377\217\26i'"..., 256) = 256
close(21) = 0
lseek(20, 0, SEEK_SET) = 0
write(20, "\0\0\0\0\0\0\0\0\0\0\0\0\316R\220\345\0\0\0\0\0\0\2\0\0\0\20\0\0\0\0\0"..., 512) = 512
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = -1 EACCES (Permission denied)
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
lseek(20, 8, SEEK_SET) = 8
read(20, "\0\0\0\0", 4) = 4
lseek(20, 12, SEEK_SET) = 12
read(20, "\316R\220\345", 4) = 4
lseek(20, 16, SEEK_SET) = 16
read(20, "\0\0\0\0", 4) = 4
lseek(20, 20, SEEK_SET) = 20
read(20, "\0\0\2\0", 4) = 4
lseek(20, 24, SEEK_SET) = 24
read(20, "\0\0\20\0", 4) = 4
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
close(20) = 0
unlink("/mnt/mame/history/history.db-journal") = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=2}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "CREATE TABLE 5 database is locke"..., 34CREATE TABLE 5 database is locked
) = 34
open("plugins/data/load_dat.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/load_dat.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=4730, ...}) = 0
read(19, "local datfile = {}\r\nlocal db, sq"..., 16384) = 4730
read(19, "", 16384) = 0
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=907, ...}) = 0
read(19, "local sql = require(\"lsqlite3\")\r"..., 16384) = 907
read(19, "", 16384) = 0
close(19) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
mkdir("history", 0775) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
lseek(19, 0, SEEK_SET) = 0
read(19, "", 100) = 0
write(2, "open not an error\n", 18open not an error
) = 18
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c4c00) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
brk(0xd955000) = 0xd955000
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c5370) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "select no such table: sqllite_ma"..., 37select no such table: sqllite_master
) = 37
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c51e0) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741825, l_len=1}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
open("/mnt/mame/history/history.db-journal", O_RDWR|O_CREAT|O_CLOEXEC, 0755) = 20
fstat(20, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
geteuid() = 1000
open("/dev/urandom", O_RDONLY|O_CLOEXEC) = 21
read(21, "\25\326\260\260\351\360\205\343\34z\253\232\314\10\20jN|\353\357\345Zj*\273\23b\377\217\26i'"..., 256) = 256
close(21) = 0
lseek(20, 0, SEEK_SET) = 0
write(20, "\0\0\0\0\0\0\0\0\0\0\0\0\316R\220\345\0\0\0\0\0\0\2\0\0\0\20\0\0\0\0\0"..., 512) = 512
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = -1 EACCES (Permission denied)
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
lseek(20, 8, SEEK_SET) = 8
read(20, "\0\0\0\0", 4) = 4
lseek(20, 12, SEEK_SET) = 12
read(20, "\316R\220\345", 4) = 4
lseek(20, 16, SEEK_SET) = 16
read(20, "\0\0\0\0", 4) = 4
lseek(20, 20, SEEK_SET) = 20
read(20, "\0\0\2\0", 4) = 4
lseek(20, 24, SEEK_SET) = 24
read(20, "\0\0\20\0", 4) = 4
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
close(20) = 0
unlink("/mnt/mame/history/history.db-journal") = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=2}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "CREATE TABLE 5 database is locke"..., 34CREATE TABLE 5 database is locked
) = 34
", 4) = 4
lseek(20, 24, SEEK_SET) = 24
read(20, "
open("plugins/data/load_dat.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/load_dat.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=4730, ...}) = 0
read(19, "local datfile = {}\r\nlocal db, sq"..., 16384) = 4730
read(19, "", 16384) = 0
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=907, ...}) = 0
read(19, "local sql = require(\"lsqlite3\")\r"..., 16384) = 907
read(19, "", 16384) = 0
close(19) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
mkdir("history", 0775) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
lseek(19, 0, SEEK_SET) = 0
read(19, "", 100) = 0
write(2, "open not an error\n", 18open not an error
) = 18
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c4c00) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
brk(0xd955000) = 0xd955000
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c5370) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "select no such table: sqllite_ma"..., 37select no such table: sqllite_master
) = 37
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c51e0) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741825, l_len=1}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
open("/mnt/mame/history/history.db-journal", O_RDWR|O_CREAT|O_CLOEXEC, 0755) = 20
fstat(20, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
geteuid() = 1000
open("/dev/urandom", O_RDONLY|O_CLOEXEC) = 21
read(21, "\25\326\260\260\351\360\205\343\34z\253\232\314\10\20jN|\353\357\345Zj*\273\23b\377\217\26i'"..., 256) = 256
close(21) = 0
lseek(20, 0, SEEK_SET) = 0
write(20, "\0\0\0\0\0\0\0\0\0\0\0\0\316R\220\345\0\0\0\0\0\0\2\0\0\0\20\0\0\0\0\0"..., 512) = 512
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = -1 EACCES (Permission denied)
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
lseek(20, 8, SEEK_SET) = 8
read(20, "\0\0\0\0", 4) = 4
lseek(20, 12, SEEK_SET) = 12
read(20, "\316R\220\345", 4) = 4
lseek(20, 16, SEEK_SET) = 16
read(20, "\0\0\0\0", 4) = 4
lseek(20, 20, SEEK_SET) = 20
read(20, "\0\0\2\0", 4) = 4
lseek(20, 24, SEEK_SET) = 24
read(20, "\0\0\20\0", 4) = 4
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
close(20) = 0
unlink("/mnt/mame/history/history.db-journal") = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=2}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "CREATE TABLE 5 database is locke"..., 34CREATE TABLE 5 database is locked
) = 34
open("plugins/data/load_dat.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/load_dat.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=4730, ...}) = 0
read(19, "local datfile = {}\r\nlocal db, sq"..., 16384) = 4730
read(19, "", 16384) = 0
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=907, ...}) = 0
read(19, "local sql = require(\"lsqlite3\")\r"..., 16384) = 907
read(19, "", 16384) = 0
close(19) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
mkdir("history", 0775) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
lseek(19, 0, SEEK_SET) = 0
read(19, "", 100) = 0
write(2, "open not an error\n", 18open not an error
) = 18
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c4c00) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
brk(0xd955000) = 0xd955000
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c5370) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "select no such table: sqllite_ma"..., 37select no such table: sqllite_master
) = 37
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c51e0) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741825, l_len=1}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
open("/mnt/mame/history/history.db-journal", O_RDWR|O_CREAT|O_CLOEXEC, 0755) = 20
fstat(20, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
geteuid() = 1000
open("/dev/urandom", O_RDONLY|O_CLOEXEC) = 21
read(21, "\25\326\260\260\351\360\205\343\34z\253\232\314\10\20jN|\353\357\345Zj*\273\23b\377\217\26i'"..., 256) = 256
close(21) = 0
lseek(20, 0, SEEK_SET) = 0
write(20, "\0\0\0\0\0\0\0\0\0\0\0\0\316R\220\345\0\0\0\0\0\0\2\0\0\0\20\0\0\0\0\0"..., 512) = 512
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = -1 EACCES (Permission denied)
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
lseek(20, 8, SEEK_SET) = 8
read(20, "\0\0\0\0", 4) = 4
lseek(20, 12, SEEK_SET) = 12
read(20, "\316R\220\345", 4) = 4
lseek(20, 16, SEEK_SET) = 16
read(20, "\0\0\0\0", 4) = 4
lseek(20, 20, SEEK_SET) = 20
read(20, "\0\0\2\0", 4) = 4
lseek(20, 24, SEEK_SET) = 24
read(20, "\0\0\20\0", 4) = 4
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
close(20) = 0
unlink("/mnt/mame/history/history.db-journal") = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=2}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "CREATE TABLE 5 database is locke"..., 34CREATE TABLE 5 database is locked
) = 34
open("plugins/data/load_dat.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/load_dat.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=4730, ...}) = 0
read(19, "local datfile = {}\r\nlocal db, sq"..., 16384) = 4730
read(19, "", 16384) = 0
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=907, ...}) = 0
read(19, "local sql = require(\"lsqlite3\")\r"..., 16384) = 907
read(19, "", 16384) = 0
close(19) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
mkdir("history", 0775) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
lseek(19, 0, SEEK_SET) = 0
read(19, "", 100) = 0
write(2, "open not an error\n", 18open not an error
) = 18
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c4c00) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
brk(0xd955000) = 0xd955000
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c5370) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "select no such table: sqllite_ma"..., 37select no such table: sqllite_master
) = 37
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c51e0) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741825, l_len=1}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
open("/mnt/mame/history/history.db-journal", O_RDWR|O_CREAT|O_CLOEXEC, 0755) = 20
fstat(20, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
geteuid() = 1000
open("/dev/urandom", O_RDONLY|O_CLOEXEC) = 21
read(21, "\25\326\260\260\351\360\205\343\34z\253\232\314\10\20jN|\353\357\345Zj*\273\23b\377\217\26i'"..., 256) = 256
close(21) = 0
lseek(20, 0, SEEK_SET) = 0
write(20, "\0\0\0\0\0\0\0\0\0\0\0\0\316R\220\345\0\0\0\0\0\0\2\0\0\0\20\0\0\0\0\0"..., 512) = 512
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = -1 EACCES (Permission denied)
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
lseek(20, 8, SEEK_SET) = 8
read(20, "\0\0\0\0", 4) = 4
lseek(20, 12, SEEK_SET) = 12
read(20, "\316R\220\345", 4) = 4
lseek(20, 16, SEEK_SET) = 16
read(20, "\0\0\0\0", 4) = 4
lseek(20, 20, SEEK_SET) = 20
read(20, "\0\0\2\0", 4) = 4
lseek(20, 24, SEEK_SET) = 24
read(20, "\0\0\20\0", 4) = 4
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
close(20) = 0
unlink("/mnt/mame/history/history.db-journal") = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=2}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "CREATE TABLE 5 database is locke"..., 34CREATE TABLE 5 database is locked
) = 34
", 4) = 4
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "
open("plugins/data/load_dat.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/load_dat.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=4730, ...}) = 0
read(19, "local datfile = {}\r\nlocal db, sq"..., 16384) = 4730
read(19, "", 16384) = 0
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=907, ...}) = 0
read(19, "local sql = require(\"lsqlite3\")\r"..., 16384) = 907
read(19, "", 16384) = 0
close(19) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
mkdir("history", 0775) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
lseek(19, 0, SEEK_SET) = 0
read(19, "", 100) = 0
write(2, "open not an error\n", 18open not an error
) = 18
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c4c00) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
brk(0xd955000) = 0xd955000
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c5370) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "select no such table: sqllite_ma"..., 37select no such table: sqllite_master
) = 37
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c51e0) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741825, l_len=1}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
open("/mnt/mame/history/history.db-journal", O_RDWR|O_CREAT|O_CLOEXEC, 0755) = 20
fstat(20, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
geteuid() = 1000
open("/dev/urandom", O_RDONLY|O_CLOEXEC) = 21
read(21, "\25\326\260\260\351\360\205\343\34z\253\232\314\10\20jN|\353\357\345Zj*\273\23b\377\217\26i'"..., 256) = 256
close(21) = 0
lseek(20, 0, SEEK_SET) = 0
write(20, "\0\0\0\0\0\0\0\0\0\0\0\0\316R\220\345\0\0\0\0\0\0\2\0\0\0\20\0\0\0\0\0"..., 512) = 512
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = -1 EACCES (Permission denied)
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
lseek(20, 8, SEEK_SET) = 8
read(20, "\0\0\0\0", 4) = 4
lseek(20, 12, SEEK_SET) = 12
read(20, "\316R\220\345", 4) = 4
lseek(20, 16, SEEK_SET) = 16
read(20, "\0\0\0\0", 4) = 4
lseek(20, 20, SEEK_SET) = 20
read(20, "\0\0\2\0", 4) = 4
lseek(20, 24, SEEK_SET) = 24
read(20, "\0\0\20\0", 4) = 4
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
close(20) = 0
unlink("/mnt/mame/history/history.db-journal") = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=2}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "CREATE TABLE 5 database is locke"..., 34CREATE TABLE 5 database is locked
) = 34
open("plugins/data/load_dat.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/load_dat.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=4730, ...}) = 0
read(19, "local datfile = {}\r\nlocal db, sq"..., 16384) = 4730
read(19, "", 16384) = 0
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=907, ...}) = 0
read(19, "local sql = require(\"lsqlite3\")\r"..., 16384) = 907
read(19, "", 16384) = 0
close(19) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
mkdir("history", 0775) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
lseek(19, 0, SEEK_SET) = 0
read(19, "", 100) = 0
write(2, "open not an error\n", 18open not an error
) = 18
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c4c00) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
brk(0xd955000) = 0xd955000
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c5370) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "select no such table: sqllite_ma"..., 37select no such table: sqllite_master
) = 37
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c51e0) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741825, l_len=1}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
open("/mnt/mame/history/history.db-journal", O_RDWR|O_CREAT|O_CLOEXEC, 0755) = 20
fstat(20, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
geteuid() = 1000
open("/dev/urandom", O_RDONLY|O_CLOEXEC) = 21
read(21, "\25\326\260\260\351\360\205\343\34z\253\232\314\10\20jN|\353\357\345Zj*\273\23b\377\217\26i'"..., 256) = 256
close(21) = 0
lseek(20, 0, SEEK_SET) = 0
write(20, "\0\0\0\0\0\0\0\0\0\0\0\0\316R\220\345\0\0\0\0\0\0\2\0\0\0\20\0\0\0\0\0"..., 512) = 512
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = -1 EACCES (Permission denied)
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
lseek(20, 8, SEEK_SET) = 8
read(20, "\0\0\0\0", 4) = 4
lseek(20, 12, SEEK_SET) = 12
read(20, "\316R\220\345", 4) = 4
lseek(20, 16, SEEK_SET) = 16
read(20, "\0\0\0\0", 4) = 4
lseek(20, 20, SEEK_SET) = 20
read(20, "\0\0\2\0", 4) = 4
lseek(20, 24, SEEK_SET) = 24
read(20, "\0\0\20\0", 4) = 4
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
close(20) = 0
unlink("/mnt/mame/history/history.db-journal") = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=2}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "CREATE TABLE 5 database is locke"..., 34CREATE TABLE 5 database is locked
) = 34
open("plugins/data/load_dat.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/load_dat.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=4730, ...}) = 0
read(19, "local datfile = {}\r\nlocal db, sq"..., 16384) = 4730
read(19, "", 16384) = 0
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=907, ...}) = 0
read(19, "local sql = require(\"lsqlite3\")\r"..., 16384) = 907
read(19, "", 16384) = 0
close(19) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
mkdir("history", 0775) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
lseek(19, 0, SEEK_SET) = 0
read(19, "", 100) = 0
write(2, "open not an error\n", 18open not an error
) = 18
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c4c00) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
brk(0xd955000) = 0xd955000
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c5370) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "select no such table: sqllite_ma"..., 37select no such table: sqllite_master
) = 37
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c51e0) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741825, l_len=1}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
open("/mnt/mame/history/history.db-journal", O_RDWR|O_CREAT|O_CLOEXEC, 0755) = 20
fstat(20, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
geteuid() = 1000
open("/dev/urandom", O_RDONLY|O_CLOEXEC) = 21
read(21, "\25\326\260\260\351\360\205\343\34z\253\232\314\10\20jN|\353\357\345Zj*\273\23b\377\217\26i'"..., 256) = 256
close(21) = 0
lseek(20, 0, SEEK_SET) = 0
write(20, "\0\0\0\0\0\0\0\0\0\0\0\0\316R\220\345\0\0\0\0\0\0\2\0\0\0\20\0\0\0\0\0"..., 512) = 512
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = -1 EACCES (Permission denied)
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
lseek(20, 8, SEEK_SET) = 8
read(20, "\0\0\0\0", 4) = 4
lseek(20, 12, SEEK_SET) = 12
read(20, "\316R\220\345", 4) = 4
lseek(20, 16, SEEK_SET) = 16
read(20, "\0\0\0\0", 4) = 4
lseek(20, 20, SEEK_SET) = 20
read(20, "\0\0\2\0", 4) = 4
lseek(20, 24, SEEK_SET) = 24
read(20, "\0\0\20\0", 4) = 4
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
close(20) = 0
unlink("/mnt/mame/history/history.db-journal") = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=2}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "CREATE TABLE 5 database is locke"..., 34CREATE TABLE 5 database is locked
) = 34
open("plugins/data/load_dat.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/load_dat.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=4730, ...}) = 0
read(19, "local datfile = {}\r\nlocal db, sq"..., 16384) = 4730
read(19, "", 16384) = 0
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
close(19) = 0
open("plugins/data/database.lua", O_RDONLY) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=907, ...}) = 0
read(19, "local sql = require(\"lsqlite3\")\r"..., 16384) = 907
read(19, "", 16384) = 0
close(19) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
mkdir("history", 0775) = 0
lstat("history/history.db", 0x7fffb56c5618) = -1 ENOENT (No such file or directory)
getcwd("/mnt/mame", 511) = 10
stat("/mnt/mame/history/history.db", 0x7fffb56c54a0) = -1 ENOENT (No such file or directory)
open("/mnt/mame/history/history.db", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = 19
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
lseek(19, 0, SEEK_SET) = 0
read(19, "", 100) = 0
write(2, "open not an error\n", 18open not an error
) = 18
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c4c00) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
brk(0xd955000) = 0xd955000
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c5370) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "select no such table: sqllite_ma"..., 37select no such table: sqllite_master
) = 37
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
stat("/mnt/mame/history/history.db-journal", 0x7fffb56c51e0) = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
unlink("/mnt/mame/history/history.db-wal") = -1 ENOENT (No such file or directory)
fstat(19, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741825, l_len=1}) = 0
stat("/mnt/mame/history/history.db", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
open("/mnt/mame/history/history.db-journal", O_RDWR|O_CREAT|O_CLOEXEC, 0755) = 20
fstat(20, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
geteuid() = 1000
open("/dev/urandom", O_RDONLY|O_CLOEXEC) = 21
read(21, "\25\326\260\260\351\360\205\343\34z\253\232\314\10\20jN|\353\357\345Zj*\273\23b\377\217\26i'"..., 256) = 256
close(21) = 0
lseek(20, 0, SEEK_SET) = 0
write(20, "\0\0\0\0\0\0\0\0\0\0\0\0\316R\220\345\0\0\0\0\0\0\2\0\0\0\20\0\0\0\0\0"..., 512) = 512
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
fcntl(19, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = -1 EACCES (Permission denied)
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
lseek(20, 8, SEEK_SET) = 8
read(20, "\0\0\0\0", 4) = 4
lseek(20, 12, SEEK_SET) = 12
read(20, "\316R\220\345", 4) = 4
lseek(20, 16, SEEK_SET) = 16
read(20, "\0\0\0\0", 4) = 4
lseek(20, 20, SEEK_SET) = 20
read(20, "\0\0\2\0", 4) = 4
lseek(20, 24, SEEK_SET) = 24
read(20, "\0\0\20\0", 4) = 4
fstat(20, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
lseek(20, 496, SEEK_SET) = 496
read(20, "\0\0\0\0", 4) = 4
close(20) = 0
unlink("/mnt/mame/history/history.db-journal") = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=2}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "CREATE TABLE 5 database is locke"..., 34CREATE TABLE 5 database is locked
) = 34
", 4) = 4
close(20) = 0
unlink("/mnt/mame/history/history.db-journal") = 0
fcntl(19, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=2}) = 0
fcntl(19, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
write(2, "CREATE TABLE 5 database is locke"..., 34CREATE TABLE 5 database is locked
) = 34
Strange thing is, that it can create the history folder and a 0-byte history.db file in it. I also have no other issues with MAME creating files.
ls -ld history
drwxr-xr-x 2 user user 0 Jan 12 23:36 history
ls -l history
total 0
-rwxr-xr-x 1 user user 0 Jan 12 23:36 history.db
|