Skip to content

Instantly share code, notes, and snippets.

View gahr's full-sized avatar
💭

Pietro Cerutti gahr

💭
  • Bloomberg LP
  • Switzerland
View GitHub Profile
@gahr
gahr / dune
Created February 14, 2022 12:45
% find . -type f -exec echo "*** {} ***" \; -exec cat {} \; -exec echo "" \;
*** ./src/sub/main.ml ***
let _ =
Printf.printf "Hey\n"
*** ./src/sub/dune ***
(executable
(name main))
*** ./dune-project ***
------=_Part_1973_-902208688.1654778885345
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
.mso p { margin-top: 0px; margin-bottom: 0px; padding: 0px; font-family=
: arial, sans-serif; font-size: 10pt;}.mso body { margin: 40px;}.mso ul, =
.mso ol { display: block; margin-left: 1em; margin-right: 1em; padding-=
left: 40px;}
set post_args [list -detached]
if {[lindex $::argv 0] eq {nowait}} {
lappend post_args -nowait
}
package require Thread
set num_threads 4
tsv::set v num_done 0
--- a/Makefile.autosetup
+++ b/Makefile.autosetup
@@ -944,7 +944,10 @@ coverage: all test
@include @srcdir@/data/Makefile.autosetup
@include @srcdir@/docs/Makefile.autosetup
@if ENABLE_UNIT_TESTS
+"UNIT TESTS ARE ENABLED"
@include @srcdir@/test/Makefile.autosetup
+@else
+"UNIT TESTS ARE DISABLED"
% ack -B10 'UNIT TESTS ARE' Makefile
clean-test:
$(RM) $(TEST_BINARY) $(TEST_OBJS) $(TEST_OBJS:.o=.Po)
install-test:
uninstall-test:
TEST_DEPFILES = $(TEST_OBJS:.o=.Po)
-include $(TEST_DEPFILES)
$ git log
commit 55a08948e6ab108227d44705195231a3b42ef3b2 (HEAD -> master, origin/master, origin/HEAD, tpool)
Author: Pietro Cerutti <[email protected]>
Date: Wed Jul 6 13:17:23 2022 +0000
Switch to using tpool
commit 93505e1761f934649c2cbee8b8d9e437e789adf9 (tag: 0.2.0)
Author: Pietro Cerutti <[email protected]>
To: [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], Beetroot(+30 more)
Cc: (+18446744073709551615 more)
Bcc: (+18446744073709551615 more)
% make -j10 test [19/1893]--- pre-req --- --- test/account/account_free.o ---
--- test/account/account_mailbox_add.o ---
--- test/account/account_mailbox_remove.o --- --- test/account/account_new.o --- --- test/address/mutt_addr_cat.o ---
--- test/address/mutt_addr_cmp.o ---
--- test/address/mutt_addr_copy.o --
gdb) bt
#0 0x0000000801056065 in memcpy () from /lib/libc.so.7
#1 0x000000000036e392 in __asan_memcpy () at /wrkdirs/usr/ports/devel/llvm15/work/llvm-project-15.0.7.src/compiler-rt/lib/asan/asan_interceptors_memintrinsics.cpp:22
#2 0x00000000005c4206 in serial_dump_char_size (c=<optimized out>, size=15, d=<optimized out>, off=<optimized out>, convert=<optimized out>) at hcache/serialize.c:149
#3 0x00000000005c4ae5 in serial_dump_char (c=0x611000006e40 "Pietro Cerutti", d=0x621000012d00 "\"\232Fd$R,\277", off=0x7fffffff9c80, convert=<optimized out>) at hcache/serialize.c:168
#4 serial_dump_address (al=<optimized out>, d=0x621000012d00 "\"\232Fd$R,\277", off=0x7fffffff9c80, convert=<optimized out>) at hcache/serialize.c:226
#5 0x00000000005c75a3 in serial_dump_envelope (env=0x613000009180, d=0x621000012dd4 '\276' <repeats 200 times>..., off=0x7fffffff9c80, convert=<optimized out>) at hcache/serialize.c:498
#6 0x00000000005c2ac8 in dump (hc=0x60300001db60, e=0x610000000340, off=0x7fffffff9c80, uidvalidity
git checkout -b asdf8dfafjk-main main
git remote add asdf8dfafjk [email protected]:asdf8dfafjk/neomutt.git
git fetch asdf8dfafjk
git reset --hard asdf8dfafjk/main
git rebase main
git push -f -u asdf8dfafjk main