Closed
Description
Hi there, I'm running 0.4.0-beta.1
(actually, this branch of it to fix the CPU issue). I've been doing some throughput testing, but have been getting a decent amount of segfaults. Sometimes these just crash the server without giving any trace, and sometimes they give messages like this:
thread 'async-std/runtime' panicked at 'byte index 3 is not a char boundary; it is inside '\u{1}' (bytes 2..3) of `ë�a long piece of string data that hopefully won't be copied around on the heap so much!`', /home/colin/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/libcore/str/mod.rs:1920:47
The contents of my DB string fields are definitely ASCII, so I'm not sure what's happening here.
My code is available here, where I'm combining Tide and sqlx.
The single row in my database is just:
sqlite> select * from test;
John|40|This is a long piece of string data that hopefully won't be copied around on the heap so much!|2|2020-08-07T12:00:00Z|
Metadata
Metadata
Assignees
Labels
No labels