294 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
48
views
ESP32's crashes the if the SSID of the WiFi access point contains a ' symbol
ESP-IDF 5.3.4, No Arduino, Win10.
I've loaded an official "station" example which demonstrates how to connect ESP32 to a home wifi access point. Made only 2 changes: .ssid and .password in ...
0
votes
1
answer
110
views
Why can't successfully kmalloc pages in this case?
See the below logs, A critical kernel driver cannot apply for a large block of continuous memory and then panic:
[29001.362425] kworker/u12:4: page allocation failure: order:4, mode:0x40dc0(GFP_KERNEL|...
0
votes
0
answers
60
views
Set kernel parameters on an Android Pixel 8 running CalyxOS
I am running a rooted CalyxOS (rooted using magisk) on a Google Pixel 8 (Shiba) device.
uname -a: Linux localhost 5.15.137-android14-11-gbc062a78e195-ab12057991 #1 SMP PREEMPT Mon Jul 8 12:34:46 UTC ...
0
votes
1
answer
482
views
dracut-install: Failed to find module 'hid-polostar'
I need to resolve a kernel panic on Fedora 41, but when I boot into the live version and mount my partitions, after reinstalling kernel 6.11.4, it won't let me run dracut. It tells me that I am ...
1
vote
1
answer
101
views
"index out of range" with a custom queue type implementing concurrent access
I am trying to create a simple matchmaking server to match two clients to each other. Here's the structure
.
├── bootstrap-server
├── cert.pem.local
├── client.go
├── config.go
├── go.mod
├── go.sum
├─...
0
votes
1
answer
338
views
`kexec -e` can work, but `kexec -p` didn't work
I want use kdump & kexec, so I installed kexec-tools, configured /etc/kdump.conf and kdump.service. STFW, according to the steps, I can use kexec -l, then kexec -e, change to the new kernel ...
1
vote
1
answer
77
views
Golang: gorilla - how to handle requests to endpoint defined with url parameter when the parameter is empty
I have this endpoint definition:
router.NotFoundHandler = http.HandlerFunc(handlerNotFound)
router.HandleFunc("/customer/{id}", handlerCustUpd).Methods(http.MethodPut)
When called URL https:...
-2
votes
2
answers
211
views
Why can't rust code process borrow checking at compile time?
use std::cell::RefCell;
use std::collections::VecDeque;
struct TextEditor {
content: String,
history: RefCell<VecDeque<String>>,
}
impl TextEditor {
fn new(initial_content: &...
0
votes
1
answer
83
views
Redirect stdout and stderr streams of a thread
I am building a cli tool where application would perform multiple tasks by spawning threads. One of these threads would handle the rendering of state of application. The way rendering works is simply ...
0
votes
1
answer
82
views
How to convert error post mortem output to structured log
We use structured logging in our Rust codebase (e.g. via tracing-subscriber). All is well here.
But if the process crashes/panics, then we see this post mortem as multiple events in our log sink (e.g. ...
1
vote
1
answer
231
views
Facing error "panic has occurred: /api/v2/write?org=test\bucket=test\precision=s: runtime error: integer divide by zero" when writing to influxdb2.7.4
I have installed influxdb 2.7.4 docker container on AWS EC2 having AL2023 OS image. I copied the data from S3 to this docker container and this data file in compressed format is around 4 GB. I ...
0
votes
1
answer
136
views
tokio::select! eager evaluation only if outside async block
I'm trying to use the select! macro's pre-condition to only include a branch if an Option is the Some variant.
I observe behavour which surprises me: the unwrap is eagerly evaluated causing panic! ...
3
votes
0
answers
1k
views
Steps to Resolve Serror Panic on ARMv8-A or How to Identify the Faulty Instruction?
I am familiar with kernel panic on x86 but recently encountered an Serror panic on ARMv8-A that needs resolution. Seeking guidance on the general steps to address Serror issues.
The code causing the ...
4
votes
2
answers
741
views
Where is Rust's range indexing behavior documented?
In Rust, if you attempt to index a slice with a "backwards" Range<usize> , the program panics:
let arr = [0,1,2,3,4,5,6];
let slice = &arr[4..1]; // panic: slice index starts at 4 ...
0
votes
2
answers
8k
views
Disable "note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace" message
How to disable 'note: run with RUST_BACKTRACE=1 environment variable to display a backtrace' when panic in Rust? My code:
use std::{env, fs, path::Path};
fn main() {
let args: Vec<String> = ...