Skip to content
This repository was archived by the owner on Jun 7, 2022. It is now read-only.
This repository was archived by the owner on Jun 7, 2022. It is now read-only.

Peach-Oled Segmentation Fault  #5

@mhfowler

Description

@mhfowler

peach issues 12.21.20

so the wifi is working again on my re-flashed pi now,
but alas some of the microservices are not running again.
peach-oled and peach-stats both throwing segmentation faults,
although peach-network is working!

  1. peach-oled
  • running peach-oled via apt-get install:
    installs successfully, but then the service fails to start and throws an error

  • running peach-oled from binary crosscompiled on the vps:
    segmentation fault

  • running peach oled via cross-compiling binary on my laptop in debian, and then running the binary on the pi, also has errors:

if I run peach-oled without sudo, this is the output:
[2020-12-21T18:23:04Z ERROR peach_oled] Application error: Failed to create interface for I2C device: Permission denied (os error 13)

if I run peach-oled with sudo, this is the output:
thread 'jsonrpc-eventloop-1' panicked at 'attempted to leave type `std::mem::ManuallyDrop<internal::SealedBag>` uninitialized, which is invalid', /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/core/src/mem/mod.rs:658:9 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace Segmentation fault

as a sanity check, I tried building peach-oled on the pi, and then running the pi-built version,
and got the same errors

if I run cat /etc/modules, this is the output:

# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
i2c-dev
i2c-bcm2835

if I run i2cdetect -y 1, this is the output:

00:          -- -- -- -- -- -- -- -- -- -- -- -- -- 
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
30: -- -- -- -- -- -- -- -- -- -- -- -- 3c -- -- -- 
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
70: -- -- -- -- -- -- -- --    

I looked in signal and saw that you said that when I run i2cdetect -y 1 I should see UU somewhere in the output, which I don't see. so maybe there is something wrong with the I2C settings.

any idea?

  1. peach-stats

running via apt-get install:

  • successfully installs, but fails to start

running binary compiled on vps:

thread 'http.worker00' panicked at 'attempted to leave type `std::mem::ManuallyDrop<internal::SealedBag>` uninitialized, which is invalid', /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/core/src/mem/mod.rs:658:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Segmentation fault

compiling on local debian laptop:

  • can't compile
    mostly this error:
error[E0277]: `?` couldn't convert the error to `jsonrpc_core::Error`
  --> src/lib.rs:60:37
   |
60 |         let uptime = stats::uptime()?;
   |                                     ^ the trait `From<error::StatError>` is not implemented for `jsonrpc_core::Error`
  1. peach-network

this is the service which originally wasn't working, and led to the whole re-flashing. now its working, so thats good news (via apt-get install or binary) :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions