Skip to content

Instantly share code, notes, and snippets.

View gahr's full-sized avatar
💭

Pietro Cerutti gahr

💭
  • Bloomberg LP
  • Switzerland
View GitHub Profile
IN: scratchpad "How do I pick the 4th one?" { { "One" 1 } { "Two" 2 } { "Three" 3 } { "Four" 4 } } throw-restarts
How do I pick the 4th one?
The following restarts are available:
:1 One
:2 Two
:3 Three
4 :res Four
Program received signal SIGBUS, Bus error.
Object-specific hardware error.
0x0000000000227765 in _open ()
(gdb) bt
#0 0x0000000000227765 in _open ()
#1 0x00000008003f2893 in ?? () from /lib/libc.so.7
#2 0x00000008003d3353 in ?? () from /lib/libc.so.7
#3 0x00000008003d356e in ?? () from /lib/libc.so.7
#4 0x00000008003d31c1 in clock_gettime () from /lib/libc.so.7
#5 0x000000080044e2ef in ?? () from /lib/libc.so.7
# 28jul23 Software Lab. Alexander Burger
CC = clang15
PIL = ../pil # pil
ASM = opt15 -O3 # llvm-as
LLC = llc15
LINK = llvm-link15
MAIN = -L/usr/local/lib -rdynamic -lc -lutil -lm -ldl -lreadline -lffi
SHARED = -shared
STRIP = strip
opt -o base.bc base.ll
clang -c -D_OS='"FreeBSD"' -D_CPU='"x86"' `pkg-config --cflags libffi` -I/usr/local/include -emit-llvm lib.c
lib.c:362:19: warning: address of stack memory associated with local variable 'stk' returned [-Wreturn-stack-address]
return (char*)&stk - stk.rlim_cur + 16384;
^~~
lib.c:700:38: warning: incompatible pointer types passing 'uint64_t *' (aka 'unsigned long *') to parameter of type 'char *' [-Wincompatible-pointer-types]
bufFloat(car(x), y >> 4, &value[i]);
^~~~~~~~~
lib.c:583:50: note: passing argument to parameter 'p' here
void bufFloat(uint64_t value, int64_t scl, char *p) {
> arc diff HEAD^
You have untracked files in this working copy.
Working copy: /usr/home/gahr/freebsd/src/
Untracked changes in working copy:
(To ignore these 1 change(s), add them to ".git/info/exclude".)
contrib/netcat/nc-crlf.diff
Ignore these 1 untracked file(s) and continue? [y/N] y
debug: scheduler: scheduling evp:7c128dff97344f82
debug: scheduler: evp:7c128dff97344f82 scheduled (mda)
1 envelope scheduled
debug: control -> client: pipe closed
debug: clearing p=client, fd=13, pid=0
mda: new user dc186e95b53ba917 for "userinfo:gahr_gahr.ch" delivering as "_smtpd"
debug: lka: userinfo userinfo:gahr_gahr.ch
debug: mda: new session dc186e969e4dee50 for user "userinfo:gahr_gahr.ch" evpid 7c128dff97344f82
debug: mda: no more envelope for "userinfo:gahr_gahr.ch"
debug: mda: got message fd 19 for session dc186e969e4dee50 evpid 7c128dff97344f82
my_net = "192.168.1.0/24"
table domains sqlite:/usr/local/etc/mail/sqlite.conf
table virtuals sqlite:/usr/local/etc/mail/sqlite.conf
table userinfo sqlite:/usr/local/etc/mail/sqlite.conf
table credentials sqlite:/usr/local/etc/mail/sqlite.conf
table aliases file:/etc/mail/aliases
pki ptrcrt.ch cert "/usr/local/etc/acme.sh/ptrcrt.ch/fullchain.cer"
pki ptrcrt.ch key "/usr/local/etc/acme.sh/ptrcrt.ch/ptrcrt.ch.key"
diff --git a/mutt/array.h b/mutt/array.h
index c8513d8dc..9ea8dadc7 100644
--- a/mutt/array.h
+++ b/mutt/array.h
@@ -289,10 +289,13 @@
true) \
: false)
+#ifndef __COVERITY__
+#define __coverity_escape__(x) 0
# pkg upgrade
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
Updating local repository catalogue...
local repository is up to date.
All repositories are up to date.
Checking for upgrades (4 candidates): 100%
Processing candidates (4 candidates): 100%
Checking integrity... done (0 conflicting)
Your packages are up to date.
diff --git a/commands.c b/commands.c
index 8eda1b336..ef553ba51 100644
--- a/commands.c
+++ b/commands.c
@@ -1103,7 +1103,7 @@ static enum CommandResult parse_source(struct Buffer *buf, struct Buffer *s,
if (source_rc(buf_string(path), err) < 0)
{
- buf_printf(err, _("source: file %s could not be sourced"), buf_string(path));
+ buf_printf(err, _("source: file %s could not be sourced: %s"), buf_string(path), buf_string(err));