Skip to content

Instantly share code, notes, and snippets.

View aep's full-sized avatar
🥬

Arvid E. Picciani aep

🥬
View GitHub Profile
Thread 1 "kicad" received signal SIGSEGV, Segmentation fault.
0x00007ffff073a3c1 in ?? () from /usr/bin/_eeschema.kiface
(gdb) bt
#0 0x00007ffff073a3c1 in ?? () from /usr/bin/_eeschema.kiface
#1 0x00007ffff7e3f587 in ?? () from /usr/lib/libwx_gtk3u_adv-3.0.so.0
#2 0x00007ffff7e429c8 in ?? () from /usr/lib/libwx_gtk3u_adv-3.0.so.0
#3 0x00007ffff7e44033 in ?? () from /usr/lib/libwx_gtk3u_adv-3.0.so.0
#4 0x00007ffff66bbf3e in ?? () from /usr/lib/libgtk-3.so.0
#5 0x00007ffff66bbf08 in ?? () from /usr/lib/libgtk-3.so.0
#6 0x00007ffff66bc313 in ?? () from /usr/lib/libgtk-3.so.0
(module JAE_DX07B024JJ1R1500 (layer F.Cu) (tedit 5EF46C7E)
(fp_text reference REF** (at -2.23618 -3.009) (layer F.SilkS)
(effects (font (size 1 1) (thickness 0.015)))
)
(fp_text value JAE_DX07B024JJ1R1500 (at 7.68067 9.4037) (layer F.Fab)
(effects (font (size 1 1) (thickness 0.015)))
)
(fp_poly (pts (xy 6.454 5.092) (xy 6.454 4.65) (xy 6.453315 4.623832) (xy 6.451261 4.597736)
(xy 6.447844 4.571783) (xy 6.443074 4.546044) (xy 6.436963 4.52059) (xy 6.429528 4.495492)
(xy 6.42079 4.470816) (xy 6.410773 4.446632) (xy 6.399503 4.423005) (xy 6.387013 4.4)
/*
* Copyright 2015 Adam Sampson <ats@offog.org>
*
* This file is dual-licensed: you can use it either under the terms
* of the GPL or the X11 license, at your option. Note that this dual
* licensing only applies to this file, and not this project as a
* whole.
*
* a) This file is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
warning: `extern` block uses type `fn(*mut u8, *mut u8, usize, *mut u8, *mut usize) -> zz::io::Result`, which is not FFI-safe
--> src/../target/release/rs/io_unix.rs:21:48
|
21 | pub fn unix( Zfd: std::os::raw::c_int) -> super::io::Io;
| ^^^^^^^^^^^^^ not FFI-safe
|
= help: consider using an `extern fn(...) -> ...` function pointer instead
= note: this function pointer has Rust-specific calling convention
@aep
aep / main.zz
Last active February 6, 2020 00:28
zztop
using <stdio.h>::{printf};
using <proc/readproc.h> as readproc;
using <string.h>::{memcpy};
using string;
struct Proc {
int mut pid;
string::String+21 mut cmd;
string::String+11 mut user;
u64 mut vmsize;
(gdb) bt
#0 0x0000a702 in arch_irq_lock () at /home/aep/proj/artanis/os/zephyrproject/zephyr/include/arch/arm/asm_inline_gcc.h:52
#1 arch_system_halt (reason=reason@entry=0) at /home/aep/proj/artanis/os/zephyrproject/zephyr/kernel/fatal.c:28
#2 0x00006456 in k_sys_fatal_error_handler (reason=reason@entry=0, esf=esf@entry=0x2001c570 <_interrupt_stack+5832>)
at /home/aep/proj/artanis/os/zephyrproject/zephyr/kernel/fatal.c:43
#3 0x0000652a in z_fatal_error (reason=reason@entry=0, esf=esf@entry=0x2001c570 <_interrupt_stack+5832>)
at /home/aep/proj/artanis/os/zephyrproject/zephyr/kernel/fatal.c:118
#4 0x00004222 in z_arm_fatal_error (reason=reason@entry=0, esf=esf@entry=0x2001c570 <_interrupt_stack+5832>)
at /home/aep/proj/artanis/os/zephyrproject/zephyr/arch/arm/core/fatal.c:47
#5 0x000048c6 in z_arm_fault (msp=<optimized out>, psp=<optimized out>, exc_return=<optimized out>)
Zephyr version: 2.1.0
-- Found PythonInterp: /usr/sbin/python (found suitable version "3.8.0", minimum required is "3.4")
-- Selected BOARD nrf52840_artanis
-- Found west: /home/aep/.local/bin/west (found suitable version "0.6.3", minimum required is "0.6.0")
-- Loading /home/aep/proj/artanis/os/zephyrproject/zephyr/boards/arm/nrf52840_artanis/nrf52840_artanis.dts as base
Devicetree configuration written to /home/aep/proj/artanis/os/zephyrproject/zephyr/samples/basic/blinky/build/zephyr/include/generated/generated_dts_board.conf
Traceback (most recent call last):
File "/home/aep/proj/artanis/os/zephyrproject/zephyr/scripts/dts/extract_dts_includes.py", line 572, in <module>
main()
File "/home/aep/proj/artanis/os/zephyrproject/zephyr/scripts/dts/extract_dts_includes.py", line 558, in main
@aep
aep / Cargo.toml
Last active December 14, 2019 13:21
dump T-962 temperature and ut181a temperature at the same time into a csv for matlab
[package]
name = "oven"
version = "0.1.0"
authors = ["Arvid E. Picciani <aep@exys.org>"]
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
serialport = "3.3"
(gdb) bt
#0 0x00007ffff776f689 in () at /usr/lib/libusb-1.0.so.0
#1 0x00007ffff776fa2f in libusb_bulk_transfer () at /usr/lib/libusb-1.0.so.0
#2 0x00007ffff7ef78df in scpi_usbtmc_bulkout
(uscpi=uscpi@entry=0x5555555e0580, msg_id=msg_id@entry=1 '\001', data=data@entry=0x5555555a93d0, size=<optimized out>, transfer_attributes=transfer_attributes@entry=1 '\001') at src/scpi/scpi_usbtmc_libusb.c:504
#3 0x00007ffff7ef79be in scpi_usbtmc_libusb_send (priv=0x5555555e0580, command=0x5555555a93d0 "SYST:LOCAL\n") at src/scpi/scpi_usbtmc_libusb.c:576
#4 0x00007ffff7eee1fe in scpi_send_variadic
(format=format@entry=0x7ffff7f8118c "SYST:LOCAL", args=args@entry=0x7fffffffe320, scpi=<optimized out>, scpi=<optimized out>) at src/scpi/scpi.c:164
#5 0x00007ffff7eef9af in sr_scpi_cmd
(sdi=<optimized out>, cmdtable=<optimized out>, channel_command=channel_command@entry=0, channel_name=channel_name@entry=0x0, command=command@entry=2)