Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

unknown crash #293

Closed
Yaiba opened this issue Sep 13, 2023 · 2 comments
Closed

unknown crash #293

Yaiba opened this issue Sep 13, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@Yaiba
Copy link
Contributor

Yaiba commented Sep 13, 2023

What i did: hammering kwild calling a view action

git commit: ecf08ae, currently main

The error:

unexpected fault address 0x1fffffff8
fatal error: fault
[signal SIGBUS: bus error code=0x1 addr=0x1fffffff8 pc=0x100cd76b0]

goroutine 1042 [running]:
runtime.throw({0x100eca4c2?, 0x0?})
        /opt/homebrew/Cellar/go/1.21.0/libexec/src/runtime/panic.go:1077 +0x40 fp=0x1400d9664c0 sp=0x1400d966490 pc=0x1000c0af0
runtime.sigpanic()
        /opt/homebrew/Cellar/go/1.21.0/libexec/src/runtime/signal_unix.go:858 +0x178 fp=0x1400d966520 sp=0x1400d9664c0 pc=0x1000d88e8
modernc.org/memory.(*Allocator).UintptrFree(0x1400d966598?, 0x100df7694?)
        /Users/yaiba/go/pkg/mod/modernc.org/[email protected]/memory.go:265 +0x30 fp=0x1400d966550 sp=0x1400d966530 pc=0x100cd76b0
modernc.org/libc.Xfree(0x1400d9666?, 0x100dce020?)
        /Users/yaiba/go/pkg/mod/modernc.org/[email protected]/mem.go:86 +0xd0 fp=0x1400d966590 sp=0x1400d966550 pc=0x100cdd910
modernc.org/sqlite/lib.sqlite3MemFree(0x14a1de828?, 0x3?)
        /Users/yaiba/go/pkg/mod/modernc.org/[email protected]/lib/sqlite_darwin_arm64.go:10860 +0x20 fp=0x1400d9665b0 sp=0x1400d966590 pc=0x100ce7700
modernc.org/sqlite/lib.Xsqlite3_free(0x149e8c0a8?, 0x149921070?)
        /Users/yaiba/go/pkg/mod/modernc.org/[email protected]/lib/sqlite_darwin_arm64.go:11387 +0x128 fp=0x1400d966600 sp=0x1400d9665b0 pc=0x100ce8e08
modernc.org/sqlite/lib.Xsqlite3DbNNFreeNN(0xfffffffcfffffffe?, 0x0?, 0x1400d966678?)
        /Users/yaiba/go/pkg/mod/modernc.org/[email protected]/lib/sqlite_darwin_arm64.go:11447 +0xb4 fp=0x1400d966630 sp=0x1400d966600 pc=0x100ce8fe4
modernc.org/sqlite/lib.exprListDeleteNN(0x1400028e230?, 0x14a1de828?, 0x149921070)
        /Users/yaiba/go/pkg/mod/modernc.org/[email protected]/lib/sqlite_darwin_arm64.go:62805 +0x70 fp=0x1400d966680 sp=0x1400d966630 pc=0x100d6ee40
modernc.org/sqlite/lib.Xsqlite3ExprListDelete(...)
        /Users/yaiba/go/pkg/mod/modernc.org/[email protected]/lib/sqlite_darwin_arm64.go:62814
modernc.org/sqlite/lib.Xsqlite3Select(0x1400028e230, 0x149921070, 0x14975c628, 0x149922928)
        /Users/yaiba/go/pkg/mod/modernc.org/[email protected]/lib/sqlite_darwin_arm64.go:96094 +0x350 fp=0x1400d966900 sp=0x1400d966680 pc=0x100dccb70
modernc.org/sqlite/lib.yy_reduce(0x1400028e230, 0x149922070, 0x54, 0x140?, {0x149e8be5f, 0x1, {0x0, 0x0, 0x0, 0x0}}, ...)
        /Users/yaiba/go/pkg/mod/modernc.org/[email protected]/lib/sqlite_darwin_arm64.go:115192 +0xbd8 fp=0x1400d966b30 sp=0x1400d966900 pc=0x100e01878
modernc.org/sqlite/lib.Xsqlite3Parser(0x1400028e230, 0x149922070, 0x1, {0x149e8be5f, 0x1, {0x0, 0x0, 0x0, 0x0}})
        /Users/yaiba/go/pkg/mod/modernc.org/[email protected]/lib/sqlite_darwin_arm64.go:116747 +0x90 fp=0x1400d966ba0 sp=0x1400d966b30 pc=0x100e055b0
modernc.org/sqlite/lib.Xsqlite3RunParser(0x1400028e230, 0x149921070, 0x149e8be20)
        /Users/yaiba/go/pkg/mod/modernc.org/[email protected]/lib/sqlite_darwin_arm64.go:117470 +0x284 fp=0x1400d966c90 sp=0x1400d966ba0 pc=0x100e06ec4
modernc.org/sqlite/lib.sqlite3Prepare(0x1400028e230, 0x149d05c28, 0x149e8be20, 0xffffffff, 0x80, 0x0, 0x149811860, 0x149811850)
        /Users/yaiba/go/pkg/mod/modernc.org/[email protected]/lib/sqlite_darwin_arm64.go:89520 +0x2ac fp=0x1400d966d20 sp=0x1400d966c90 pc=0x100dbae0c
modernc.org/sqlite/lib.sqlite3LockAndPrepare(0x100f29a2d?, 0x149d05c28, 0x149e8be20, 0x6a32dc?, 0x1?, 0xc13897b28cf3c7d8?, 0x149811860, 0x1400d944ea8?)
        /Users/yaiba/go/pkg/mod/modernc.org/[email protected]/lib/sqlite_darwin_arm64.go:89603 +0x118 fp=0x1400d966da0 sp=0x1400d966d20 pc=0x100dbb308
modernc.org/sqlite/lib.Xsqlite3_prepare_v3(...)
        /Users/yaiba/go/pkg/mod/modernc.org/[email protected]/lib/sqlite_darwin_arm64.go:89679
github.com/kwilteam/go-sqlite.(*Conn).prepare(0x14000308050, {0x100f29a2d, 0x40}, 0x0, {0x0, 0x0, 0x1?})
        /Users/yaiba/go/pkg/mod/github.com/kwilteam/[email protected]/sqlite.go:504 +0x1b0 fp=0x1400d966fc0 sp=0x1400d966da0 pc=0x100e901a0
github.com/kwilteam/go-sqlite.(*Conn).PrepareTransient(0x100f29a2a?, {0x100f29a2d?, 0x1400d945068?}, {0x0?, 0x1400d9450a8?, 0x1006c1c54?})
        /Users/yaiba/go/pkg/mod/github.com/kwilteam/[email protected]/sqlite.go:481 +0x38 fp=0x1400d967020 sp=0x1400d966fc0 pc=0x100e8ff48
github.com/kwilteam/kwil-db/pkg/sql/sqlite.(*Connection).Prepare(0x1400028e1c0, {0x100f29a2a?, 0x152976798?})
        /Users/yaiba/work/kwil/kwil-db/pkg/sql/sqlite/connection.go:222 +0x60 fp=0x1400d967080 sp=0x1400d967020 pc=0x100e9e0b0
github.com/kwilteam/kwil-db/pkg/sql/client.(*SqliteClient).Prepare(0x14010e357a0?, {0x100f29a2a?, 0x1400d945138?})
        /Users/yaiba/work/kwil/kwil-db/pkg/sql/client/client.go:95 +0x24 fp=0x1400d9670b0 sp=0x1400d967080 pc=0x100ea5524
github.com/kwilteam/kwil-db/pkg/sql/client.(*SqliteClient).QueryUnsafe(0x1012fbfc0?, {0x101504d40, 0x140110f0ae0}, {0x100f29a2a?, 0x1400d945228?}, 0x140110f0b70)
        /Users/yaiba/work/kwil/kwil-db/pkg/sql/client/client.go:110 +0x4c fp=0x1400d967140 sp=0x1400d9670b0 pc=0x100ea560c
github.com/kwilteam/kwil-db/pkg/engine/db.(*DB).getMetadata(0x140006682d0, {0x101504d40, 0x140110f0ae0}, {0x100ecab7a, 0x5})
        /Users/yaiba/work/kwil/kwil-db/pkg/engine/db/metadata.go:70 +0xc8 fp=0x1400d967210 sp=0x1400d967140 pc=0x10091bf18
github.com/kwilteam/kwil-db/pkg/engine/db.(*DB).getVersionedMetadata(0x140110cd100?, {0x101504d40?, 0x140110f0ae0?}, {0x100ecab7a?, 0x100ec9ac6?})
        /Users/yaiba/work/kwil/kwil-db/pkg/engine/db/metadata.go:115 +0x2c fp=0x1400d9672b0 sp=0x1400d967210 pc=0x10091c29c
github.com/kwilteam/kwil-db/pkg/engine/db.(*DB).ListTables(0x1400d945368?, {0x101504d40?, 0x140110f0ae0?})
        /Users/yaiba/work/kwil/kwil-db/pkg/engine/db/persist.go:31 +0x30 fp=0x1400d9672f0 sp=0x1400d9672b0 pc=0x10091c7d0
github.com/kwilteam/kwil-db/pkg/engine/dataset.(*Dataset).ListTables(0x101306140?, {0x101504d40?, 0x140110f0ae0?})
        /Users/yaiba/work/kwil/kwil-db/pkg/engine/dataset/dataset.go:230 +0x30 fp=0x1400d967320 sp=0x1400d9672f0 pc=0x10094a080
github.com/kwilteam/kwil-db/pkg/engine.(*Engine).GetSchema(0x140006a2080?, {0x101504d40, 0x140110f0ae0}, {0x140110f4e40?, 0x1400d945401?})
        /Users/yaiba/work/kwil/kwil-db/pkg/engine/engine.go:249 +0x88 fp=0x1400d9673e0 sp=0x1400d967320 pc=0x100951aa8
github.com/kwilteam/kwil-db/pkg/modules/datasets.(*DatasetModule).GetSchema(0x140004e6e70?, {0x101504d40?, 0x140?}, {0x140110f4e40?, 0xe0?})
        /Users/yaiba/work/kwil/kwil-db/pkg/modules/datasets/read.go:44 +0x34 fp=0x1400d967420 sp=0x1400d9673e0 pc=0x100954a04
github.com/kwilteam/kwil-db/internal/controller/grpc/txsvc/v1.(*Service).GetSchema(0x14000a06e10, {0x101504d40, 0x140110f0ae0}, 0x140110e2bc0)
        /Users/yaiba/work/kwil/kwil-db/internal/controller/grpc/txsvc/v1/schema.go:17 +0x1a8 fp=0x1400d967650 sp=0x1400d967420 pc=0x1009c5648
github.com/kwilteam/kwil-db/api/protobuf/tx/v1._TxService_GetSchema_Handler.func1({0x101504d40, 0x140110f0ae0}, {0x1013b3ea0?, 0x140110e2bc0})
        /Users/yaiba/work/kwil/kwil-db/api/protobuf/tx/v1/service_grpc.pb.go:426 +0x74 fp=0x1400d967690 sp=0x1400d967650 pc=0x1007b0fa4
github.com/grpc-ecosystem/go-grpc-middleware/v2/interceptors/logging.UnaryServerInterceptor.UnaryServerInterceptor.func2({0x101504d40, 0x140110f0ab0}, {0x1013b3ea0, 0x140110e2bc0}, 0x140110e2c00?, 0x14010e6b620)
        /Users/yaiba/go/pkg/mod/github.com/grpc-ecosystem/go-grpc-middleware/[email protected]/interceptors/server.go:22 +0x1f0 fp=0x1400d9678a0 sp=0x1400d967690 pc=0x100bab320
google.golang.org/grpc.getChainUnaryHandler.func1({0x101504d40, 0x140110f0ab0}, {0x1013b3ea0, 0x140110e2bc0})
        /Users/yaiba/go/pkg/mod/google.golang.org/[email protected]/server.go:1179 +0xa0 fp=0x1400d967900 sp=0x1400d9678a0 pc=0x100617dd0
github.com/grpc-ecosystem/go-grpc-middleware/v2/interceptors/recovery.UnaryServerInterceptor.func1({0x101504d40?, 0x140110f0ab0?}, {0x1013b3ea0?, 0x140110e2bc0?}, 0x140110cd0e0?, 0x14010e6b620?)
        /Users/yaiba/go/pkg/mod/github.com/grpc-ecosystem/go-grpc-middleware/[email protected]/interceptors/recovery/interceptors.go:34 +0x88 fp=0x1400d967990 sp=0x1400d967900 pc=0x100bad378
google.golang.org/grpc.NewServer.chainUnaryServerInterceptors.chainUnaryInterceptors.func1({0x101504d40, 0x140110f0ab0}, {0x1013b3ea0, 0x140110e2bc0}, 0x140102e2a48?, 0x1006188bc?)
        /Users/yaiba/go/pkg/mod/google.golang.org/[email protected]/server.go:1170 +0x88 fp=0x1400d9679f0 sp=0x1400d967990 pc=0x1006146e8
github.com/kwilteam/kwil-db/api/protobuf/tx/v1._TxService_GetSchema_Handler({0x10148c320?, 0x14000a06e10}, {0x101504d40, 0x140110f0ab0}, 0x140110ec540, 0x14000229a40)
        /Users/yaiba/work/kwil/kwil-db/api/protobuf/tx/v1/service_grpc.pb.go:428 +0x12c fp=0x1400d967a50 sp=0x1400d9679f0 pc=0x1007b0e7c
google.golang.org/grpc.(*Server).processUnaryRPC(0x140002d4960, {0x10150dca0, 0x1401126f380}, 0x14010e35680, 0x14000942ea0, 0x10207e1e8, 0x0)
        /Users/yaiba/go/pkg/mod/google.golang.org/[email protected]/server.go:1360 +0xc04 fp=0x1400d967e30 sp=0x1400d967a50 pc=0x100618a24
google.golang.org/grpc.(*Server).handleStream(0x140002d4960, {0x10150dca0, 0x1401126f380}, 0x14010e35680, 0x0)
        /Users/yaiba/go/pkg/mod/google.golang.org/[email protected]/server.go:1737 +0x7c4 fp=0x1400d967f50 sp=0x1400d967e30 pc=0x10061cb64
google.golang.org/grpc.(*Server).serveStreams.func1.1()
        /Users/yaiba/go/pkg/mod/google.golang.org/[email protected]/server.go:982 +0x84 fp=0x1400d967fd0 sp=0x1400d967f50 pc=0x100616b14
runtime.goexit()
        /opt/homebrew/Cellar/go/1.21.0/libexec/src/runtime/asm_arm64.s:1197 +0x4 fp=0x1400d967fd0 sp=0x1400d967fd0 pc=0x1000f8024
created by google.golang.org/grpc.(*Server).serveStreams.func1 in goroutine 1016
        /Users/yaiba/go/pkg/mod/google.golang.org/[email protected]/server.go:980 +0x154

@Yaiba Yaiba added the bug Something isn't working label Sep 13, 2023
@jchappelow
Copy link
Member

Seems to be the QueryUnsafe issue from Monday, only fixed on idos prerelease branch. I'm running with this locally so I don't hit that bug; #286

@Yaiba
Copy link
Contributor Author

Yaiba commented Sep 14, 2023

I think this is fixed by #298

@Yaiba Yaiba closed this as completed Sep 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants