Skip to content

Instantly share code, notes, and snippets.

View trasz's full-sized avatar

Edward Tomasz Napierała trasz

  • University of Cambridge
  • Cambridge, United Kingdom
  • 14:26 (UTC +01:00)
View GitHub Profile
execve("/usr/bin/glxgears", ["glxgears"], 0x7fffffffeba0 /* 24 vars */) = 0
brk(NULL) = 0x1227000
uname({sysname="Linux", nodename="brick", ...}) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=130698, ...}) = 0
mmap(NULL, 130698, PROT_READ, MAP_PRIVATE, 3, 0) = 0x80124c000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)

Keybase proof

I hereby claim:

  • I am trasz on github.
  • I am trasz (https://keybase.io/trasz) on keybase.
  • I have a public key ASBLUKOwShZL225blKpvPHNLTgOndq3y663_evws0fyIlQo

To claim this, I am signing this object:

(gdb) bt
#0 mmap () at mmap.S:3
#1 0x000000080039b1ff in __je_pages_map (addr=0x0, size=2097152, alignment=4096, commit=0x7fffffffde66) at jemalloc_pages.c:202
#2 0x00000008003c94d3 in __je_extent_alloc_mmap (new_addr=0x0, size=2097152, alignment=<optimized out>, zero=0x7fffffffde67, commit=0x7fffffffde66) at jemalloc_extent_mmap.c:24
#3 0x00000008003a96ea in extent_alloc_core (dss_prec=dss_prec_disabled, tsdn=<optimized out>, arena=<optimized out>, new_addr=<optimized out>, size=<optimized out>, alignment=<optimized out>,
zero=<optimized out>, commit=<optimized out>) at jemalloc_extent.c:1152
#4 extent_alloc_default_impl (tsdn=<optimized out>, arena=<optimized out>, new_addr=<optimized out>, size=<optimized out>, alignment=<optimized out>, zero=<optimized out>, commit=<optimized out>)
at jemalloc_extent.c:1170
#5 extent_grow_retained (r_extent_hooks=<optimized out>, siz
Breakpoint 1, mmap () at mmap.S:3
3 RSYSCALL(mmap)
(gdb) bt
#0 mmap () at mmap.S:3
#1 0x000000080039a0e9 in __je_pages_map (addr=0x0, size=4096, alignment=<optimized out>, commit=<optimized out>) at jemalloc_pages.c:200
#2 0x00000008003c7d83 in __je_extent_alloc_mmap (new_addr=0x0, size=4096, alignment=<optimized out>, zero=0x7fffffffe06f, commit=0x7fffffffe06e) at jemalloc_extent_mmap.c:24
#3 0x00000008003a863b in extent_alloc_core (dss_prec=dss_prec_disabled, tsdn=<optimized out>, arena=<optimized out>, new_addr=<optimized out>, size=<optimized out>, alignment=<optimized out>,
zero=<optimized out>, commit=<optimized out>) at jemalloc_extent.c:1152
#4 extent_alloc_default_impl (tsdn=<optimized out>, arena=<optimized out>, new_addr=<optimized out>, size=<optimized out>, alignment=<optimized out>, zero=<optimized out>, commit=<optimized out>)
at jemalloc_extent.c:1170
#include <stdio.h>
#include <stdarg.h>
union meh {
void *x;
int y;
};
void
a(int cmd, ...)
// RUN: %clang_cc1 -triple cheri-unknown-freebsd -emit-obj -disable-free -disable-llvm-verifier -discard-value-names -main-file-name setlocale.c -mrelocation-model pic -pic-level 1 -mthread-model posix -mdisable-fp-elim -masm-verbose -mconstructor-aliases -target-cpu cheri -target-feature +soft-float -target-abi purecap -Wmips-cheri-prototypes -msoft-float -mfloat-abi soft -mllvm -mxgot -mllvm -mips-ssection-threshold=0 -dwarf-column-info -debug-info-kind=standalone -dwarf-version=2 -debugger-tuning=gdb -coverage-notes-file /home/en322/cheri/build/cheribsd-obj-256/mips.mips64/usr/home/en322/cheri/cheribsd/lib/libc_cheri/setlocale.gcno -sys-header-deps -D FORCE_C_LOCALE -D FORCE_UTC_TZ -D __LP64__=1 -O2 -Wno-deprecated-declarations -Wno-cast-align -Werror=implicit-function-declaration -Wsystem-headers -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscript
/usr/home/en322/cheri/cheribsd/lib/libc_cheri/../libc/locale/setlocale.c:322:14: warning: equality comparison result unused [-Wunused-comparison]
_PathLocale == NULL;
~~~~~~~~~~~~^~~~~~~
/usr/home/en322/cheri/cheribsd/lib/libc_cheri/../libc/locale/setlocale.c:322:14: note: use '=' to turn this equality comparison into an assignment
_PathLocale == NULL;
^~
=
fatal error: error in backend: Cannot select: 0x805e52820: iFATPTR = add 0x805e497b8, 0x805e522d8
0x805e497b8: iFATPTR = PTRADD 0x805e49750, Constant:i64<0>
0x805e49750: iFATPTR = PTRADD 0x805e52138, 0x805e496e8
diff --git a/lib/Target/Mips/MipsSubtarget.h b/lib/Target/Mips/MipsSubtarget.h
index 01114d0fb60..cf0142e75a3 100644
--- a/lib/Target/Mips/MipsSubtarget.h
+++ b/lib/Target/Mips/MipsSubtarget.h
@@ -323,7 +323,7 @@ public:
/// CHERI is not MIPSr6, but provides a hybrid implementation where
/// in-cache-line unaligned accesses are handled in software and ones
/// spanning cache lines are emulated in the OS.
- bool systemSupportsUnalignedAccess() const { return IsCheri || hasMips32r6(); }
+ bool systemSupportsUnalignedAccess() const { return false; };
// RUN: %clang_cc1 -triple mips64-unknown-freebsd -emit-obj -disable-free -disable-llvm-verifier -discard-value-names -main-file-name fbsd-kvm.c -static-define -mrelocation-model pic -pic-level 2 -mthread-model posix -mdisable-fp-elim -relaxed-aliasing -mconstructor-aliases -target-cpu mips64r2 -target-feature +soft-float -target-abi n64 -msoft-float -mfloat-abi soft -mllvm -mxgot -mllvm -mips-ssection-threshold=0 -dwarf-column-info -debug-info-kind=standalone -dwarf-version=2 -debugger-tuning=gdb -coverage-notes-file /usr/home/en322/cheri/build/gdb-128-build/gdb/fbsd-kvm.gcno -D RL_NO_COMPAT -D LIBICONV_PLUG -D 'LOCALEDIR="/usr/local/share/locale"' -D HAVE_CONFIG_H -D TUI=1 -D RL_NO_COMPAT -D LIBICONV_PLUG -O2 -Wall -Werror=cheri-capability-misuse -Werror=implicit-function-declaration -Werror=format -Werror=undefined-internal -Werror=incompatible-pointer-types -Werror=mips-cheri-prototypes -Wno-absolute-value -Wno-parentheses-equality -Wno-unknown-warning-option -Wno-unused-function -Wno-unused-variable -Wno
# 1 "<built-in>"
# 1 "spgdoinsert.c"
/*-------------------------------------------------------------------------
*
* spgdoinsert.c
* implementation of insert algorithm
*
*
* Portions Copyright (c) 1996-2016, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California