Example: realloc3.c

up: index
prev: realloc2.c
next: realloc4.c

    #include <stdlib.h>
    #include <stdio.h>
    #include <inttypes.h>
    #include <cheriintrin.h>
    #include <stddef.h>
    #include "capprint.h"
    
    int main()
    {
        int *p = calloc(10,sizeof(int));
        *p=42;
        fprintf(stderr,"Original: %" PTR_FMT "\n", sptr((void*)p));
        p = cheri_tag_clear(p); 
        fprintf(stderr,"Modified: %" PTR_FMT "\n", sptr((void*)p));
        p = realloc(p, 20*sizeof(int));
        fprintf(stderr,"Reallocated: %" PTR_FMT "\n", sptr((void*)p));
        fprintf(stderr,"Value: %d\n", *p);
    }

Experimental data (what does this mean?)

cerberus-cheri-no-pnvi
cerberus-cheri-revocation-no-pnvi
cerberus-cheri-cornucopia-no-pnvi
 exit codes: compile 0 / execute 1 Undefined {ub: "UB_CHERI_InvalidCap", loc: "<other location: memcpy>"}
Original: (@disabled, 0xffffe6a0 [rwRW,0xffffe6a0-0xffffe6c8])
Modified: (@disabled, 0xffffe6a0 [rwRW,0xffffe6a0-0xffffe6c8] (invalid))
 
cerberus-cheri
cerberus-cheri-revocation
cerberus-cheri-cornucopia
 exit codes: compile 0 / execute 1 Undefined {ub: "UB_CHERI_InvalidCap", loc: "<other location: memcpy>"}
Original: (@88, 0xffffe6a0 [rwRW,0xffffe6a0-0xffffe6c8])
Modified: (@88, 0xffffe6a0 [rwRW,0xffffe6a0-0xffffe6c8] (invalid))
 
clang-riscv-O0-bounds-everywhere-unsafe exit codes: compile 0 / execute 1
Program received signal SIGABRT, Aborted.
Sent by thr_kill() from pid 32027 and user 0.
thr_kill () at thr_kill.S:4
#0 thr_kill () at thr_kill.S:4
No locals.
#1 0x00000000401f83a8 in __raise (s=6) at /local/scratch/vz231/cheri/cheribsd/lib/libc/gen/raise.c:52
id = 0
#2 0x0000000040289df4 in abort () at /local/scratch/vz231/cheri/cheribsd/lib/libc/stdlib/abort.c:67
act = {__sigaction_u = {__sa_handler = 0x28205d3832306431 [rW,0xe680000000000000-0x5d80000000000000] (invalid,sealed), __sa_sigaction = 0x28205d3832306431 [rW,0xe680000000000000-0x5d80000000000000] (invalid,sealed)}, sa_flags = 2, sa_mask = {__bits = {4294967263, 4294967295, 4294967295, 4294967295}}}
#3 0x00000000402a8b36 in unbound_ptr (tsdn=<optimized out>, ptr=<optimized out>) at /local/scratch/vz231/cheri/cheribsd/contrib/jemalloc/include/jemalloc/internal/jemalloc_internal_inlines_c.h:46
rtree_ctx_fallback = {cache = {{leafkey = 12, leaf = 0x4033ca68 <__je_bin_infos+488> [rwRW,0x4033c880-0x4033ce20]}, {leafkey = 1082174064, leaf = 0x0}, {leafkey = 1082134848, leaf = 0x40803a70 [rwRW,0x40800000-0x40a00000]}, {leafkey = 1082173920, leaf = 0x402a7048 <arena_bin_malloc_hard+420> [rxR,0x40138000-0x4074e000] (sentry,capmode)}, {leafkey = 12, leaf = 0x3fffdffadf [rwRW,0x3fffdffadf-0x3fffdffae0]}, {leafkey = 274875808478, leaf = 0x4032ba30 <__isthreaded> [rwRW,0x4032ba30-0x4032ba34]}, {leafkey = 1082169856, leaf = 0x40803a70 [,0x8000000000000-0x2000000000000000] (invalid)}, {leafkey = 0, leaf = 0x402feee0 <__je_extent_hooks_default> [rR,0x402feee0-0x402fef70]}, {leafkey = 3, leaf = 0x0}, {leafkey = 1, leaf = 0xffffffff}, {leafkey = 274875809360, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 274875808752, leaf = 0x3fffdff7a0 [rwRW,0x3fffdff7a0-0x3fffdffba0]}, {leafkey = 4398046511104, leaf = 0x3fffdff7a0 [rwRW,0x3fffdff7a0-0x3fffdffba0]}}, l2_cache = {{leafkey = 1024, leaf = 0x0}, {leafkey = 1076900992, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 1076171624, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}}}
rtree_ctx = <optimized out>
extent = <optimized out>
ubptr = <optimized out>
#4 __je_arena_ralloc (tsdn=<optimized out>, arena=<optimized out>, ptr=<optimized out>, oldsize=<optimized out>, size=<optimized out>, alignment=<optimized out>, zero=<optimized out>, tcache=<optimized out>, hook_args=<optimized out>) at jemalloc_arena.c:1826
usize = <optimized out>
ret = <optimized out>
copysize = <optimized out>
#5 0x000000004029bb14 in iralloct (tsdn=0x40776090 [rwRW,0x40776060-0x4077b540], ptr=0x40a1d000 [rwRW,0x40a1d000-0x40a1d028] (invalid), oldsize=48, size=80, alignment=0, zero=false, tcache=0x40776430 [rwRW,0x40776060-0x4077b540], arena=0x0, hook_args=0x3fffdffdc0 [,0xfffffeee80000000-0xffffffffffffffff] (invalid,sealed)) at /local/scratch/vz231/cheri/cheribsd/contrib/jemalloc/include/jemalloc/internal/jemalloc_internal_inlines_c.h:262
No locals.
#6 iralloc (tsd=0x40776090 [rwRW,0x40776060-0x4077b540], ptr=0x40a1d000 [rwRW,0x40a1d000-0x40a1d028] (invalid), oldsize=48, size=80, alignment=0, zero=false, hook_args=0x3fffdffdc0 [,0xfffffeee80000000-0xffffffffffffffff] (invalid,sealed)) at /local/scratch/vz231/cheri/cheribsd/contrib/jemalloc/include/jemalloc/internal/jemalloc_internal_inlines_c.h:269
No locals.
#7 __realloc (ptr=0x40a1d000 [rwRW,0x40a1d000-0x40a1d028] (invalid), arg_size=<optimized out>) at jemalloc_jemalloc.c:2748
hook_args = {is_realloc = true, args = {278457688227616189208323638360398745600, 80, 0, 0}}
tsd = 0x40776090 [rwRW,0x40776060-0x4077b540]
rtree_ctx = <optimized out>
alloc_ctx = <optimized out>
log_var = <optimized out>
log_var = <optimized out>
size = 80
old_usize = 48
usize = 80
tsdn = 0x0
ret = <optimized out>
#8 0x0000000000102126 in main () at tests/cheri/realloc3.c:15
p = 0x40a1d000 [rwRW,0x40a1d000-0x40a1d028] (invalid)


Original: 0x40a1d000 [rwRW,0x40a1d000-0x40a1d028]
Modified: 0x40a1d000 [rwRW,0x40a1d000-0x40a1d028] (invalid)
<jemalloc>: can't unbound invalid cap
4 thr_kill.S: No such file or directory.
 
clang-riscv-O0-bounds-very-aggressive exit codes: compile 0 / execute 1
Program received signal SIGABRT, Aborted.
Sent by thr_kill() from pid 32006 and user 0.
thr_kill () at thr_kill.S:4
#0 thr_kill () at thr_kill.S:4
No locals.
#1 0x00000000401f83a8 in __raise (s=6) at /local/scratch/vz231/cheri/cheribsd/lib/libc/gen/raise.c:52
id = 0
#2 0x0000000040289df4 in abort () at /local/scratch/vz231/cheri/cheribsd/lib/libc/stdlib/abort.c:67
act = {__sigaction_u = {__sa_handler = 0x28205d3832306431 [rW,0xe680000000000000-0x5d80000000000000] (invalid,sealed), __sa_sigaction = 0x28205d3832306431 [rW,0xe680000000000000-0x5d80000000000000] (invalid,sealed)}, sa_flags = 2, sa_mask = {__bits = {4294967263, 4294967295, 4294967295, 4294967295}}}
#3 0x00000000402a8b36 in unbound_ptr (tsdn=<optimized out>, ptr=<optimized out>) at /local/scratch/vz231/cheri/cheribsd/contrib/jemalloc/include/jemalloc/internal/jemalloc_internal_inlines_c.h:46
rtree_ctx_fallback = {cache = {{leafkey = 12, leaf = 0x4033ca68 <__je_bin_infos+488> [rwRW,0x4033c880-0x4033ce20]}, {leafkey = 1082174064, leaf = 0x0}, {leafkey = 1082134848, leaf = 0x40803a70 [rwRW,0x40800000-0x40a00000]}, {leafkey = 1082173920, leaf = 0x402a7048 <arena_bin_malloc_hard+420> [rxR,0x40138000-0x4074e000] (sentry,capmode)}, {leafkey = 12, leaf = 0x3fffdffadf [rwRW,0x3fffdffadf-0x3fffdffae0]}, {leafkey = 274875808478, leaf = 0x4032ba30 <__isthreaded> [rwRW,0x4032ba30-0x4032ba34]}, {leafkey = 1082169856, leaf = 0x40803a70 [,0x8000000000000-0x2000000000000000] (invalid)}, {leafkey = 0, leaf = 0x402feee0 <__je_extent_hooks_default> [rR,0x402feee0-0x402fef70]}, {leafkey = 3, leaf = 0x0}, {leafkey = 1, leaf = 0xffffffff}, {leafkey = 274875809360, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 274875808752, leaf = 0x3fffdff7a0 [rwRW,0x3fffdff7a0-0x3fffdffba0]}, {leafkey = 4398046511104, leaf = 0x3fffdff7a0 [rwRW,0x3fffdff7a0-0x3fffdffba0]}}, l2_cache = {{leafkey = 1024, leaf = 0x0}, {leafkey = 1076900992, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 1076171624, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}}}
rtree_ctx = <optimized out>
extent = <optimized out>
ubptr = <optimized out>
#4 __je_arena_ralloc (tsdn=<optimized out>, arena=<optimized out>, ptr=<optimized out>, oldsize=<optimized out>, size=<optimized out>, alignment=<optimized out>, zero=<optimized out>, tcache=<optimized out>, hook_args=<optimized out>) at jemalloc_arena.c:1826
usize = <optimized out>
ret = <optimized out>
copysize = <optimized out>
#5 0x000000004029bb14 in iralloct (tsdn=0x40776090 [rwRW,0x40776060-0x4077b540], ptr=0x40a1d000 [rwRW,0x40a1d000-0x40a1d028] (invalid), oldsize=48, size=80, alignment=0, zero=false, tcache=0x40776430 [rwRW,0x40776060-0x4077b540], arena=0x0, hook_args=0x3fffdffdc0 [,0x70800000000000-0x17a000000000000] (invalid,sealed)) at /local/scratch/vz231/cheri/cheribsd/contrib/jemalloc/include/jemalloc/internal/jemalloc_internal_inlines_c.h:262
No locals.
#6 iralloc (tsd=0x40776090 [rwRW,0x40776060-0x4077b540], ptr=0x40a1d000 [rwRW,0x40a1d000-0x40a1d028] (invalid), oldsize=48, size=80, alignment=0, zero=false, hook_args=0x3fffdffdc0 [,0x70800000000000-0x17a000000000000] (invalid,sealed)) at /local/scratch/vz231/cheri/cheribsd/contrib/jemalloc/include/jemalloc/internal/jemalloc_internal_inlines_c.h:269
No locals.
#7 __realloc (ptr=0x40a1d000 [rwRW,0x40a1d000-0x40a1d028] (invalid), arg_size=<optimized out>) at jemalloc_jemalloc.c:2748
hook_args = {is_realloc = true, args = {278457688227616189208323638360398745600, 80, 0, 0}}
tsd = 0x40776090 [rwRW,0x40776060-0x4077b540]
rtree_ctx = <optimized out>
alloc_ctx = <optimized out>
log_var = <optimized out>
log_var = <optimized out>
size = 80
old_usize = 48
usize = 80
tsdn = 0x0
ret = <optimized out>
#8 0x0000000000102126 in main () at tests/cheri/realloc3.c:15
p = 0x40a1d000 [rwRW,0x40a1d000-0x40a1d028] (invalid)


Original: 0x40a1d000 [rwRW,0x40a1d000-0x40a1d028]
Modified: 0x40a1d000 [rwRW,0x40a1d000-0x40a1d028] (invalid)
<jemalloc>: can't unbound invalid cap
4 thr_kill.S: No such file or directory.
 
clang-riscv-O0-bounds-aggressive exit codes: compile 0 / execute 1
Program received signal SIGABRT, Aborted.
Sent by thr_kill() from pid 31985 and user 0.
thr_kill () at thr_kill.S:4
#0 thr_kill () at thr_kill.S:4
No locals.
#1 0x00000000401f83a8 in __raise (s=6) at /local/scratch/vz231/cheri/cheribsd/lib/libc/gen/raise.c:52
id = 0
#2 0x0000000040289df4 in abort () at /local/scratch/vz231/cheri/cheribsd/lib/libc/stdlib/abort.c:67
act = {__sigaction_u = {__sa_handler = 0x28205d3832306431 [rW,0xe680000000000000-0x5d80000000000000] (invalid,sealed), __sa_sigaction = 0x28205d3832306431 [rW,0xe680000000000000-0x5d80000000000000] (invalid,sealed)}, sa_flags = 2, sa_mask = {__bits = {4294967263, 4294967295, 4294967295, 4294967295}}}
#3 0x00000000402a8b36 in unbound_ptr (tsdn=<optimized out>, ptr=<optimized out>) at /local/scratch/vz231/cheri/cheribsd/contrib/jemalloc/include/jemalloc/internal/jemalloc_internal_inlines_c.h:46
rtree_ctx_fallback = {cache = {{leafkey = 12, leaf = 0x4033ca68 <__je_bin_infos+488> [rwRW,0x4033c880-0x4033ce20]}, {leafkey = 1082174064, leaf = 0x0}, {leafkey = 1082134848, leaf = 0x40803a70 [rwRW,0x40800000-0x40a00000]}, {leafkey = 1082173920, leaf = 0x402a7048 <arena_bin_malloc_hard+420> [rxR,0x40138000-0x4074e000] (sentry,capmode)}, {leafkey = 12, leaf = 0x3fffdffadf [rwRW,0x3fffdffadf-0x3fffdffae0]}, {leafkey = 274875808478, leaf = 0x4032ba30 <__isthreaded> [rwRW,0x4032ba30-0x4032ba34]}, {leafkey = 1082169856, leaf = 0x40803a70 [,0x8000000000000-0x2000000000000000] (invalid)}, {leafkey = 0, leaf = 0x402feee0 <__je_extent_hooks_default> [rR,0x402feee0-0x402fef70]}, {leafkey = 3, leaf = 0x0}, {leafkey = 1, leaf = 0xffffffff}, {leafkey = 274875809360, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 274875808752, leaf = 0x3fffdff7a0 [rwRW,0x3fffdff7a0-0x3fffdffba0]}, {leafkey = 4398046511104, leaf = 0x3fffdff7a0 [rwRW,0x3fffdff7a0-0x3fffdffba0]}}, l2_cache = {{leafkey = 1024, leaf = 0x0}, {leafkey = 1076900992, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 1076171624, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}}}
rtree_ctx = <optimized out>
extent = <optimized out>
ubptr = <optimized out>
#4 __je_arena_ralloc (tsdn=<optimized out>, arena=<optimized out>, ptr=<optimized out>, oldsize=<optimized out>, size=<optimized out>, alignment=<optimized out>, zero=<optimized out>, tcache=<optimized out>, hook_args=<optimized out>) at jemalloc_arena.c:1826
usize = <optimized out>
ret = <optimized out>
copysize = <optimized out>
#5 0x000000004029bb14 in iralloct (tsdn=0x40776090 [rwRW,0x40776060-0x4077b540], ptr=0x40a1d000 [rwRW,0x40a1d000-0x40a1d028] (invalid), oldsize=48, size=80, alignment=0, zero=false, tcache=0x40776430 [rwRW,0x40776060-0x4077b540], arena=0x0, hook_args=0x3fffdffdc0 [,0x1680000000000000-0xffffffffffffffff] (invalid,sealed)) at /local/scratch/vz231/cheri/cheribsd/contrib/jemalloc/include/jemalloc/internal/jemalloc_internal_inlines_c.h:262
No locals.
#6 iralloc (tsd=0x40776090 [rwRW,0x40776060-0x4077b540], ptr=0x40a1d000 [rwRW,0x40a1d000-0x40a1d028] (invalid), oldsize=48, size=80, alignment=0, zero=false, hook_args=0x3fffdffdc0 [,0x1680000000000000-0xffffffffffffffff] (invalid,sealed)) at /local/scratch/vz231/cheri/cheribsd/contrib/jemalloc/include/jemalloc/internal/jemalloc_internal_inlines_c.h:269
No locals.
#7 __realloc (ptr=0x40a1d000 [rwRW,0x40a1d000-0x40a1d028] (invalid), arg_size=<optimized out>) at jemalloc_jemalloc.c:2748
hook_args = {is_realloc = true, args = {278457688227616189208323638360398745600, 80, 0, 0}}
tsd = 0x40776090 [rwRW,0x40776060-0x4077b540]
rtree_ctx = <optimized out>
alloc_ctx = <optimized out>
log_var = <optimized out>
log_var = <optimized out>
size = 80
old_usize = 48
usize = 80
tsdn = 0x0
ret = <optimized out>
#8 0x0000000000102126 in main () at tests/cheri/realloc3.c:15
p = 0x40a1d000 [rwRW,0x40a1d000-0x40a1d028] (invalid)


Original: 0x40a1d000 [rwRW,0x40a1d000-0x40a1d028]
Modified: 0x40a1d000 [rwRW,0x40a1d000-0x40a1d028] (invalid)
<jemalloc>: can't unbound invalid cap
4 thr_kill.S: No such file or directory.
 
clang-riscv-O3-bounds-subobject-safe exit codes: compile 0 / execute 1
Program received signal SIGABRT, Aborted.
Sent by thr_kill() from pid 31964 and user 0.
thr_kill () at thr_kill.S:4
#0 thr_kill () at thr_kill.S:4
No locals.
#1 0x00000000401f83a8 in __raise (s=6) at /local/scratch/vz231/cheri/cheribsd/lib/libc/gen/raise.c:52
id = 0
#2 0x0000000040289df4 in abort () at /local/scratch/vz231/cheri/cheribsd/lib/libc/stdlib/abort.c:67
act = {__sigaction_u = {__sa_handler = 0x0, __sa_sigaction = 0x0}, sa_flags = 2, sa_mask = {__bits = {4294967263, 4294967295, 4294967295, 4294967295}}}
#3 0x00000000402a8b36 in unbound_ptr (tsdn=<optimized out>, ptr=<optimized out>) at /local/scratch/vz231/cheri/cheribsd/contrib/jemalloc/include/jemalloc/internal/jemalloc_internal_inlines_c.h:46
rtree_ctx_fallback = {cache = {{leafkey = 274875808976, leaf = 0x3fffdffa50 [rwRW,0x3fffdffa20-0x3fffdffb50]}, {leafkey = 0, leaf = 0x3fffdff9ef [rwRW,0x3fffdff9a0-0x3fffdffa20]}, {leafkey = 49, leaf = 0x40776090 [rwRW,0x40776060-0x4077b540]}, {leafkey = 480, leaf = 0x4033c880 <__je_bin_infos> [rwRW,0x4033c880-0x4033ce20]}, {leafkey = 480, leaf = 0xc}, {leafkey = 1077135976, leaf = 0x4080aa70 [rwRW,0x40800000-0x40a00000]}, {leafkey = 0, leaf = 0x40801140 [rwRW,0x40800000-0x40a00000]}, {leafkey = 1082145392, leaf = 0x4080a9e0 [rwRW,0x40800000-0x40a00000]}, {leafkey = 1076523080, leaf = 0xc [,0x8000000000000-0x2000000000000000] (invalid)}, {leafkey = 274875808703, leaf = 0x3fffdffbbe [rwRW,0x3fffdffbbe-0x3fffdffbbf]}, {leafkey = 1077066288, leaf = 0x40809a00 [rwRW,0x40800000-0x40a00000]}, {leafkey = 0, leaf = 0x0 [,0xffffffffffffeee0-0xffffffffffffef70] (invalid)}, {leafkey = 1076883168, leaf = 0x40809e90 [,0x40800000-0x40a00000] (invalid)}, {leafkey = 0, leaf = 0x1}, {leafkey = 4294967295, leaf = 0x3fffdff7f0 [rwRW,0x3fffdff7f0-0x3fffdffbf0]}, {leafkey = 4398046511104, leaf = 0x3fffdff7f0 [rwRW,0x3fffdff7f0-0x3fffdffbf0]}}, l2_cache = {{leafkey = 1024, leaf = 0x0}, {leafkey = 1076900992, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 1076171624, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}}}
rtree_ctx = <optimized out>
extent = <optimized out>
ubptr = <optimized out>
#4 __je_arena_ralloc (tsdn=<optimized out>, arena=<optimized out>, ptr=<optimized out>, oldsize=<optimized out>, size=<optimized out>, alignment=<optimized out>, zero=<optimized out>, tcache=<optimized out>, hook_args=<optimized out>) at jemalloc_arena.c:1826
usize = <optimized out>
ret = <optimized out>
copysize = <optimized out>
#5 0x000000004029bb14 in iralloct (tsdn=0x40776090 [rwRW,0x40776060-0x4077b540], ptr=0x40a1d000 [rwRW,0x40a1d000-0x40a1d028] (invalid), oldsize=48, size=80, alignment=0, zero=false, tcache=0x40776430 [rwRW,0x40776060-0x4077b540], arena=0x0, hook_args=0x3fffdffe10 [,0x3fffdb8000-0x4001998000] (invalid,sealed)) at /local/scratch/vz231/cheri/cheribsd/contrib/jemalloc/include/jemalloc/internal/jemalloc_internal_inlines_c.h:262
No locals.
#6 iralloc (tsd=0x40776090 [rwRW,0x40776060-0x4077b540], ptr=0x40a1d000 [rwRW,0x40a1d000-0x40a1d028] (invalid), oldsize=48, size=80, alignment=0, zero=false, hook_args=0x3fffdffe10 [,0x3fffdb8000-0x4001998000] (invalid,sealed)) at /local/scratch/vz231/cheri/cheribsd/contrib/jemalloc/include/jemalloc/internal/jemalloc_internal_inlines_c.h:269
No locals.
#7 __realloc (ptr=0x40a1d000 [rwRW,0x40a1d000-0x40a1d028] (invalid), arg_size=<optimized out>) at jemalloc_jemalloc.c:2748
hook_args = {is_realloc = true, args = {278457688227616189208323638360398745600, 80, 0, 0}}
tsd = 0x40776090 [rwRW,0x40776060-0x4077b540]
rtree_ctx = <optimized out>
alloc_ctx = <optimized out>
log_var = <optimized out>
log_var = <optimized out>
size = 80
old_usize = 48
usize = 80
tsdn = 0x0
ret = <optimized out>
#8 0x0000000000102178 in main () at tests/cheri/realloc3.c:15
p = 0x40a1d000 [rwRW,0x40a1d000-0x40a1d028] (invalid)


Original: 0x40a1d000 [rwRW,0x40a1d000-0x40a1d028]
Modified: 0x40a1d000 [rwRW,0x40a1d000-0x40a1d028] (invalid)
<jemalloc>: can't unbound invalid cap
4 thr_kill.S: No such file or directory.
 
clang-riscv-O0-bounds-subobject-safe exit codes: compile 0 / execute 1
Program received signal SIGABRT, Aborted.
Sent by thr_kill() from pid 31943 and user 0.
thr_kill () at thr_kill.S:4
#0 thr_kill () at thr_kill.S:4
No locals.
#1 0x00000000401f83a8 in __raise (s=6) at /local/scratch/vz231/cheri/cheribsd/lib/libc/gen/raise.c:52
id = 0
#2 0x0000000040289df4 in abort () at /local/scratch/vz231/cheri/cheribsd/lib/libc/stdlib/abort.c:67
act = {__sigaction_u = {__sa_handler = 0x28205d3832306431 [rW,0xe680000000000000-0x5d80000000000000] (invalid,sealed), __sa_sigaction = 0x28205d3832306431 [rW,0xe680000000000000-0x5d80000000000000] (invalid,sealed)}, sa_flags = 2, sa_mask = {__bits = {4294967263, 4294967295, 4294967295, 4294967295}}}
#3 0x00000000402a8b36 in unbound_ptr (tsdn=<optimized out>, ptr=<optimized out>) at /local/scratch/vz231/cheri/cheribsd/contrib/jemalloc/include/jemalloc/internal/jemalloc_internal_inlines_c.h:46
rtree_ctx_fallback = {cache = {{leafkey = 12, leaf = 0x4033ca68 <__je_bin_infos+488> [rwRW,0x4033c880-0x4033ce20]}, {leafkey = 1082174064, leaf = 0x0}, {leafkey = 1082134848, leaf = 0x40803a70 [rwRW,0x40800000-0x40a00000]}, {leafkey = 1082173920, leaf = 0x402a7048 <arena_bin_malloc_hard+420> [rxR,0x40138000-0x4074e000] (sentry,capmode)}, {leafkey = 12, leaf = 0x3fffdffadf [rwRW,0x3fffdffadf-0x3fffdffae0]}, {leafkey = 274875808478, leaf = 0x4032ba30 <__isthreaded> [rwRW,0x4032ba30-0x4032ba34]}, {leafkey = 1082169856, leaf = 0x40803a70 [,0x8000000000000-0x2000000000000000] (invalid)}, {leafkey = 0, leaf = 0x402feee0 <__je_extent_hooks_default> [rR,0x402feee0-0x402fef70]}, {leafkey = 3, leaf = 0x0}, {leafkey = 1, leaf = 0xffffffff}, {leafkey = 274875809360, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 274875808752, leaf = 0x3fffdff7a0 [rwRW,0x3fffdff7a0-0x3fffdffba0]}, {leafkey = 4398046511104, leaf = 0x3fffdff7a0 [rwRW,0x3fffdff7a0-0x3fffdffba0]}}, l2_cache = {{leafkey = 1024, leaf = 0x0}, {leafkey = 1076900992, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 1076171624, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}}}
rtree_ctx = <optimized out>
extent = <optimized out>
ubptr = <optimized out>
#4 __je_arena_ralloc (tsdn=<optimized out>, arena=<optimized out>, ptr=<optimized out>, oldsize=<optimized out>, size=<optimized out>, alignment=<optimized out>, zero=<optimized out>, tcache=<optimized out>, hook_args=<optimized out>) at jemalloc_arena.c:1826
usize = <optimized out>
ret = <optimized out>
copysize = <optimized out>
#5 0x000000004029bb14 in iralloct (tsdn=0x40776090 [rwRW,0x40776060-0x4077b540], ptr=0x40a1d000 [rwRW,0x40a1d000-0x40a1d028] (invalid), oldsize=48, size=80, alignment=0, zero=false, tcache=0x40776430 [rwRW,0x40776060-0x4077b540], arena=0x0, hook_args=0x3fffdffdc0 [,0xe380000000-0x28700000000] (invalid,sealed)) at /local/scratch/vz231/cheri/cheribsd/contrib/jemalloc/include/jemalloc/internal/jemalloc_internal_inlines_c.h:262
No locals.
#6 iralloc (tsd=0x40776090 [rwRW,0x40776060-0x4077b540], ptr=0x40a1d000 [rwRW,0x40a1d000-0x40a1d028] (invalid), oldsize=48, size=80, alignment=0, zero=false, hook_args=0x3fffdffdc0 [,0xe380000000-0x28700000000] (invalid,sealed)) at /local/scratch/vz231/cheri/cheribsd/contrib/jemalloc/include/jemalloc/internal/jemalloc_internal_inlines_c.h:269
No locals.
#7 __realloc (ptr=0x40a1d000 [rwRW,0x40a1d000-0x40a1d028] (invalid), arg_size=<optimized out>) at jemalloc_jemalloc.c:2748
hook_args = {is_realloc = true, args = {278457688227616189208323638360398745600, 80, 0, 0}}
tsd = 0x40776090 [rwRW,0x40776060-0x4077b540]
rtree_ctx = <optimized out>
alloc_ctx = <optimized out>
log_var = <optimized out>
log_var = <optimized out>
size = 80
old_usize = 48
usize = 80
tsdn = 0x0
ret = <optimized out>
#8 0x0000000000102126 in main () at tests/cheri/realloc3.c:15
p = 0x40a1d000 [rwRW,0x40a1d000-0x40a1d028] (invalid)


Original: 0x40a1d000 [rwRW,0x40a1d000-0x40a1d028]
Modified: 0x40a1d000 [rwRW,0x40a1d000-0x40a1d028] (invalid)
<jemalloc>: can't unbound invalid cap
4 thr_kill.S: No such file or directory.
 
clang-riscv-O0-bounds-references-only exit codes: compile 0 / execute 1
Program received signal SIGABRT, Aborted.
Sent by thr_kill() from pid 31922 and user 0.
thr_kill () at thr_kill.S:4
#0 thr_kill () at thr_kill.S:4
No locals.
#1 0x00000000401f83a8 in __raise (s=6) at /local/scratch/vz231/cheri/cheribsd/lib/libc/gen/raise.c:52
id = 0
#2 0x0000000040289df4 in abort () at /local/scratch/vz231/cheri/cheribsd/lib/libc/stdlib/abort.c:67
act = {__sigaction_u = {__sa_handler = 0x28205d3832306431 [rW,0xe680000000000000-0x5d80000000000000] (invalid,sealed), __sa_sigaction = 0x28205d3832306431 [rW,0xe680000000000000-0x5d80000000000000] (invalid,sealed)}, sa_flags = 2, sa_mask = {__bits = {4294967263, 4294967295, 4294967295, 4294967295}}}
#3 0x00000000402a8b36 in unbound_ptr (tsdn=<optimized out>, ptr=<optimized out>) at /local/scratch/vz231/cheri/cheribsd/contrib/jemalloc/include/jemalloc/internal/jemalloc_internal_inlines_c.h:46
rtree_ctx_fallback = {cache = {{leafkey = 12, leaf = 0x4033ca68 <__je_bin_infos+488> [rwRW,0x4033c880-0x4033ce20]}, {leafkey = 1082174064, leaf = 0x0}, {leafkey = 1082134848, leaf = 0x40803a70 [rwRW,0x40800000-0x40a00000]}, {leafkey = 1082173920, leaf = 0x402a7048 <arena_bin_malloc_hard+420> [rxR,0x40138000-0x4074e000] (sentry,capmode)}, {leafkey = 12, leaf = 0x3fffdffb0f [rwRW,0x3fffdffb0f-0x3fffdffb10]}, {leafkey = 274875808526, leaf = 0x4032ba30 <__isthreaded> [rwRW,0x4032ba30-0x4032ba34]}, {leafkey = 1082169856, leaf = 0x40803a70 [,0x8000000000000-0x2000000000000000] (invalid)}, {leafkey = 0, leaf = 0x402feee0 <__je_extent_hooks_default> [rR,0x402feee0-0x402fef70]}, {leafkey = 3, leaf = 0x0}, {leafkey = 1, leaf = 0xffffffff}, {leafkey = 274875809408, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 274875808800, leaf = 0x3fffdff7d0 [rwRW,0x3fffdff7d0-0x3fffdffbd0]}, {leafkey = 4398046511104, leaf = 0x3fffdff7d0 [rwRW,0x3fffdff7d0-0x3fffdffbd0]}}, l2_cache = {{leafkey = 1024, leaf = 0x0}, {leafkey = 1076900992, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 1076171624, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}}}
rtree_ctx = <optimized out>
extent = <optimized out>
ubptr = <optimized out>
#4 __je_arena_ralloc (tsdn=<optimized out>, arena=<optimized out>, ptr=<optimized out>, oldsize=<optimized out>, size=<optimized out>, alignment=<optimized out>, zero=<optimized out>, tcache=<optimized out>, hook_args=<optimized out>) at jemalloc_arena.c:1826
usize = <optimized out>
ret = <optimized out>
copysize = <optimized out>
#5 0x000000004029bb14 in iralloct (tsdn=0x40776090 [rwRW,0x40776060-0x4077b540], ptr=0x40a1d000 [rwRW,0x40a1d000-0x40a1d028] (invalid), oldsize=48, size=80, alignment=0, zero=false, tcache=0x40776430 [rwRW,0x40776060-0x4077b540], arena=0x0, hook_args=0x3fffdffdf0 [,0x3ffe2a8000-0x3fff618000] (invalid,sealed)) at /local/scratch/vz231/cheri/cheribsd/contrib/jemalloc/include/jemalloc/internal/jemalloc_internal_inlines_c.h:262
No locals.
#6 iralloc (tsd=0x40776090 [rwRW,0x40776060-0x4077b540], ptr=0x40a1d000 [rwRW,0x40a1d000-0x40a1d028] (invalid), oldsize=48, size=80, alignment=0, zero=false, hook_args=0x3fffdffdf0 [,0x3ffe2a8000-0x3fff618000] (invalid,sealed)) at /local/scratch/vz231/cheri/cheribsd/contrib/jemalloc/include/jemalloc/internal/jemalloc_internal_inlines_c.h:269
No locals.
#7 __realloc (ptr=0x40a1d000 [rwRW,0x40a1d000-0x40a1d028] (invalid), arg_size=<optimized out>) at jemalloc_jemalloc.c:2748
hook_args = {is_realloc = true, args = {278457688227616189208323638360398745600, 80, 0, 0}}
tsd = 0x40776090 [rwRW,0x40776060-0x4077b540]
rtree_ctx = <optimized out>
alloc_ctx = <optimized out>
log_var = <optimized out>
log_var = <optimized out>
size = 80
old_usize = 48
usize = 80
tsdn = 0x0
ret = <optimized out>
#8 0x00000000001020ee in main () at tests/cheri/realloc3.c:15
p = 0x40a1d000 [rwRW,0x40a1d000-0x40a1d028] (invalid)


Original: 0x40a1d000 [rwRW,0x40a1d000-0x40a1d028]
Modified: 0x40a1d000 [rwRW,0x40a1d000-0x40a1d028] (invalid)
<jemalloc>: can't unbound invalid cap
4 thr_kill.S: No such file or directory.
 
clang-riscv-O3-bounds-conservative exit codes: compile 0 / execute 1
Program received signal SIGABRT, Aborted.
Sent by thr_kill() from pid 31901 and user 0.
thr_kill () at thr_kill.S:4
#0 thr_kill () at thr_kill.S:4
No locals.
#1 0x00000000401f83a8 in __raise (s=6) at /local/scratch/vz231/cheri/cheribsd/lib/libc/gen/raise.c:52
id = 0
#2 0x0000000040289df4 in abort () at /local/scratch/vz231/cheri/cheribsd/lib/libc/stdlib/abort.c:67
act = {__sigaction_u = {__sa_handler = 0x0, __sa_sigaction = 0x0}, sa_flags = 2, sa_mask = {__bits = {4294967263, 4294967295, 4294967295, 4294967295}}}
#3 0x00000000402a8b36 in unbound_ptr (tsdn=<optimized out>, ptr=<optimized out>) at /local/scratch/vz231/cheri/cheribsd/contrib/jemalloc/include/jemalloc/internal/jemalloc_internal_inlines_c.h:46
rtree_ctx_fallback = {cache = {{leafkey = 274875808976, leaf = 0x3fffdffa50 [rwRW,0x3fffdffa20-0x3fffdffb50]}, {leafkey = 0, leaf = 0x3fffdff9ef [rwRW,0x3fffdff9a0-0x3fffdffa20]}, {leafkey = 49, leaf = 0x40776090 [rwRW,0x40776060-0x4077b540]}, {leafkey = 480, leaf = 0x4033c880 <__je_bin_infos> [rwRW,0x4033c880-0x4033ce20]}, {leafkey = 480, leaf = 0xc}, {leafkey = 1077135976, leaf = 0x4080aa70 [rwRW,0x40800000-0x40a00000]}, {leafkey = 0, leaf = 0x40801140 [rwRW,0x40800000-0x40a00000]}, {leafkey = 1082145392, leaf = 0x4080a9e0 [rwRW,0x40800000-0x40a00000]}, {leafkey = 1076523080, leaf = 0xc [,0x8000000000000-0x2000000000000000] (invalid)}, {leafkey = 274875808703, leaf = 0x3fffdffbbe [rwRW,0x3fffdffbbe-0x3fffdffbbf]}, {leafkey = 1077066288, leaf = 0x40809a00 [rwRW,0x40800000-0x40a00000]}, {leafkey = 0, leaf = 0x0 [,0xffffffffffffeee0-0xffffffffffffef70] (invalid)}, {leafkey = 1076883168, leaf = 0x40809e90 [,0x40800000-0x40a00000] (invalid)}, {leafkey = 0, leaf = 0x1}, {leafkey = 4294967295, leaf = 0x3fffdff7f0 [rwRW,0x3fffdff7f0-0x3fffdffbf0]}, {leafkey = 4398046511104, leaf = 0x3fffdff7f0 [rwRW,0x3fffdff7f0-0x3fffdffbf0]}}, l2_cache = {{leafkey = 1024, leaf = 0x0}, {leafkey = 1076900992, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 1076171624, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}}}
rtree_ctx = <optimized out>
extent = <optimized out>
ubptr = <optimized out>
#4 __je_arena_ralloc (tsdn=<optimized out>, arena=<optimized out>, ptr=<optimized out>, oldsize=<optimized out>, size=<optimized out>, alignment=<optimized out>, zero=<optimized out>, tcache=<optimized out>, hook_args=<optimized out>) at jemalloc_arena.c:1826
usize = <optimized out>
ret = <optimized out>
copysize = <optimized out>
#5 0x000000004029bb14 in iralloct (tsdn=0x40776090 [rwRW,0x40776060-0x4077b540], ptr=0x40a1d000 [rwRW,0x40a1d000-0x40a1d028] (invalid), oldsize=48, size=80, alignment=0, zero=false, tcache=0x40776430 [rwRW,0x40776060-0x4077b540], arena=0x0, hook_args=0x3fffdffe10 [,0xfffdd98000000000-0xffff7e8000000000] (invalid,sealed)) at /local/scratch/vz231/cheri/cheribsd/contrib/jemalloc/include/jemalloc/internal/jemalloc_internal_inlines_c.h:262
No locals.
#6 iralloc (tsd=0x40776090 [rwRW,0x40776060-0x4077b540], ptr=0x40a1d000 [rwRW,0x40a1d000-0x40a1d028] (invalid), oldsize=48, size=80, alignment=0, zero=false, hook_args=0x3fffdffe10 [,0xfffdd98000000000-0xffff7e8000000000] (invalid,sealed)) at /local/scratch/vz231/cheri/cheribsd/contrib/jemalloc/include/jemalloc/internal/jemalloc_internal_inlines_c.h:269
No locals.
#7 __realloc (ptr=0x40a1d000 [rwRW,0x40a1d000-0x40a1d028] (invalid), arg_size=<optimized out>) at jemalloc_jemalloc.c:2748
hook_args = {is_realloc = true, args = {278457688227616189208323638360398745600, 80, 0, 0}}
tsd = 0x40776090 [rwRW,0x40776060-0x4077b540]
rtree_ctx = <optimized out>
alloc_ctx = <optimized out>
log_var = <optimized out>
log_var = <optimized out>
size = 80
old_usize = 48
usize = 80
tsdn = 0x0
ret = <optimized out>
#8 0x0000000000102176 in main () at tests/cheri/realloc3.c:15
p = <optimized out>


Original: 0x40a1d000 [rwRW,0x40a1d000-0x40a1d028]
Modified: 0x40a1d000 [rwRW,0x40a1d000-0x40a1d028] (invalid)
<jemalloc>: can't unbound invalid cap
4 thr_kill.S: No such file or directory.
 
clang-riscv-O0-bounds-conservative exit codes: compile 0 / execute 1
Program received signal SIGABRT, Aborted.
Sent by thr_kill() from pid 31880 and user 0.
thr_kill () at thr_kill.S:4
#0 thr_kill () at thr_kill.S:4
No locals.
#1 0x00000000401f83a8 in __raise (s=6) at /local/scratch/vz231/cheri/cheribsd/lib/libc/gen/raise.c:52
id = 0
#2 0x0000000040289df4 in abort () at /local/scratch/vz231/cheri/cheribsd/lib/libc/stdlib/abort.c:67
act = {__sigaction_u = {__sa_handler = 0x28205d3832306431 [rW,0xe680000000000000-0x5d80000000000000] (invalid,sealed), __sa_sigaction = 0x28205d3832306431 [rW,0xe680000000000000-0x5d80000000000000] (invalid,sealed)}, sa_flags = 2, sa_mask = {__bits = {4294967263, 4294967295, 4294967295, 4294967295}}}
#3 0x00000000402a8b36 in unbound_ptr (tsdn=<optimized out>, ptr=<optimized out>) at /local/scratch/vz231/cheri/cheribsd/contrib/jemalloc/include/jemalloc/internal/jemalloc_internal_inlines_c.h:46
rtree_ctx_fallback = {cache = {{leafkey = 12, leaf = 0x4033ca68 <__je_bin_infos+488> [rwRW,0x4033c880-0x4033ce20]}, {leafkey = 1082174064, leaf = 0x0}, {leafkey = 1082134848, leaf = 0x40803a70 [rwRW,0x40800000-0x40a00000]}, {leafkey = 1082173920, leaf = 0x402a7048 <arena_bin_malloc_hard+420> [rxR,0x40138000-0x4074e000] (sentry,capmode)}, {leafkey = 12, leaf = 0x3fffdffb0f [rwRW,0x3fffdffb0f-0x3fffdffb10]}, {leafkey = 274875808526, leaf = 0x4032ba30 <__isthreaded> [rwRW,0x4032ba30-0x4032ba34]}, {leafkey = 1082169856, leaf = 0x40803a70 [,0x8000000000000-0x2000000000000000] (invalid)}, {leafkey = 0, leaf = 0x402feee0 <__je_extent_hooks_default> [rR,0x402feee0-0x402fef70]}, {leafkey = 3, leaf = 0x0}, {leafkey = 1, leaf = 0xffffffff}, {leafkey = 274875809408, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 274875808800, leaf = 0x3fffdff7d0 [rwRW,0x3fffdff7d0-0x3fffdffbd0]}, {leafkey = 4398046511104, leaf = 0x3fffdff7d0 [rwRW,0x3fffdff7d0-0x3fffdffbd0]}}, l2_cache = {{leafkey = 1024, leaf = 0x0}, {leafkey = 1076900992, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 1076171624, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}}}
rtree_ctx = <optimized out>
extent = <optimized out>
ubptr = <optimized out>
#4 __je_arena_ralloc (tsdn=<optimized out>, arena=<optimized out>, ptr=<optimized out>, oldsize=<optimized out>, size=<optimized out>, alignment=<optimized out>, zero=<optimized out>, tcache=<optimized out>, hook_args=<optimized out>) at jemalloc_arena.c:1826
usize = <optimized out>
ret = <optimized out>
copysize = <optimized out>
#5 0x000000004029bb14 in iralloct (tsdn=0x40776090 [rwRW,0x40776060-0x4077b540], ptr=0x40a1d000 [rwRW,0x40a1d000-0x40a1d028] (invalid), oldsize=48, size=80, alignment=0, zero=false, tcache=0x40776430 [rwRW,0x40776060-0x4077b540], arena=0x0, hook_args=0x3fffdffdf0 [,0xfffddd8000000000-0xffff908000000000] (invalid,sealed)) at /local/scratch/vz231/cheri/cheribsd/contrib/jemalloc/include/jemalloc/internal/jemalloc_internal_inlines_c.h:262
No locals.
#6 iralloc (tsd=0x40776090 [rwRW,0x40776060-0x4077b540], ptr=0x40a1d000 [rwRW,0x40a1d000-0x40a1d028] (invalid), oldsize=48, size=80, alignment=0, zero=false, hook_args=0x3fffdffdf0 [,0xfffddd8000000000-0xffff908000000000] (invalid,sealed)) at /local/scratch/vz231/cheri/cheribsd/contrib/jemalloc/include/jemalloc/internal/jemalloc_internal_inlines_c.h:269
No locals.
#7 __realloc (ptr=0x40a1d000 [rwRW,0x40a1d000-0x40a1d028] (invalid), arg_size=<optimized out>) at jemalloc_jemalloc.c:2748
hook_args = {is_realloc = true, args = {278457688227616189208323638360398745600, 80, 0, 0}}
tsd = 0x40776090 [rwRW,0x40776060-0x4077b540]
rtree_ctx = <optimized out>
alloc_ctx = <optimized out>
log_var = <optimized out>
log_var = <optimized out>
size = 80
old_usize = 48
usize = 80
tsdn = 0x0
ret = <optimized out>
#8 0x00000000001020ee in main () at tests/cheri/realloc3.c:15
p = 0x40a1d000 [rwRW,0x40a1d000-0x40a1d028] (invalid)


Original: 0x40a1d000 [rwRW,0x40a1d000-0x40a1d028]
Modified: 0x40a1d000 [rwRW,0x40a1d000-0x40a1d028] (invalid)
<jemalloc>: can't unbound invalid cap
4 thr_kill.S: No such file or directory.
 
clang-morello-O0-bounds-everywhere-unsafe exit codes: compile 0 / execute 1
Program received signal SIGABRT, Aborted.
Sent by thr_kill() from pid 32284 and user 0.
thr_kill () at thr_kill.S:4
#0 thr_kill () at thr_kill.S:4
No locals.
#1 0x0000000040252558 in __raise (s=6) at /local/scratch/vz231/cheri/cheribsd/lib/libc/gen/raise.c:52
id = 0
#2 0x00000000402eef0c in abort () at /local/scratch/vz231/cheri/cheribsd/lib/libc/stdlib/abort.c:67
act = {__sigaction_u = {__sa_handler = 0x4033c799 <__je_malloc_write+100> [rxRE,0x40190000-0x407d6000] (sentry), __sa_sigaction = 0x4033c799 <__je_malloc_write+100> [rxRE,0x40190000-0x407d6000] (sentry)}, sa_flags = 2, sa_mask = {__bits = {4294967263, 4294967295, 4294967295, 4294967295}}}
#3 0x0000000040313b30 in unbound_ptr (tsdn=0x407fe070 [rwRW,0x407fe070-0x40800210], ptr=0x40c1d000 [rwRW,0x40c1d000-0x40c1d028] (invalid)) at /local/scratch/vz231/cheri/cheribsd/contrib/jemalloc/include/jemalloc/internal/jemalloc_internal_inlines_c.h:46
rtree_ctx_fallback = {cache = {{leafkey = 1075351616, leaf = 0x4019e4b8 [rwRWE,0x40190000-0x407d6000]}, {leafkey = 281474976185024, leaf = 0x0}, {leafkey = 281474976185568, leaf = 0x4014d64d <_rtld_bind+160> [rxRE,0x40131000-0x40185480] (sentry)}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 201840, leaf = 0x40184070 <rtld_bind_lock> [rwRWE,0x40184070-0x40184080]}, {leafkey = 281474976185568, leaf = 0x4014d6e9 <_rtld_bind+316> [rxRE,0x40131000-0x40185480] (sentry)}, {leafkey = 281474976185568, leaf = 0x4014d6e9 <_rtld_bind+316> [rxRE,0x40131000-0x40185480] (sentry)}, {leafkey = 1, leaf = 0xfb5d25837d7ff700}, {leafkey = 281474976185024, leaf = 0xfffffff7fac0 [rwRW,0xfffffff7fac0-0xfffffff7fcd0]}, {leafkey = 1075353664, leaf = 0xc0}, {leafkey = 281474976185024, leaf = 0x40184070 <rtld_bind_lock> [rwRWE,0x40184070-0x40184080]}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0xfffffff7fce0 [rwRW,0xffffbff80000-0xfffffff80000]}, {leafkey = 1075107325, leaf = 0x0}}, l2_cache = {{leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x402b3089 <__swrite> [rxRE,0x40190000-0x407d6000] (sentry)}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}}}
rtree_ctx = <optimized out>
extent = <optimized out>
ubptr = <optimized out>
#4 __je_arena_ralloc (tsdn=0x407fe070 [rwRW,0x407fe070-0x40800210], arena=0x0, ptr=0x40c1d000 [rwRW,0x40c1d000-0x40c1d028] (invalid), oldsize=48, size=<optimized out>, alignment=0, zero=false, tcache=0x407fe410 [rwRW,0x407fe070-0x40800210], hook_args=0xfffffff7fdc0 [rwRW,0xfffffff7fdc0-0xfffffff7fe10]) at jemalloc_arena.c:1826
usize = 80
ret = <optimized out>
copysize = <optimized out>
#5 0x00000000403061c0 in iralloct (tsdn=0x407fe070 [rwRW,0x407fe070-0x40800210], ptr=0x40c1d000 [rwRW,0x40c1d000-0x40c1d028] (invalid), oldsize=281474976184628, size=6, alignment=0, zero=false, tcache=0x407fe410 [rwRW,0x407fe070-0x40800210], arena=0x0 [,0xffffccfc00000000-0x10c00000000] (invalid,sentry), hook_args=0xfffffff7fdc0 [,0xccfc00000000-0x1010c00000000] (invalid,sentry)) at /local/scratch/vz231/cheri/cheribsd/contrib/jemalloc/include/jemalloc/internal/jemalloc_internal_inlines_c.h:262
No locals.
#6 iralloc (tsd=0x407fe070 [rwRW,0x407fe070-0x40800210], ptr=0x40c1d000 [rwRW,0x40c1d000-0x40c1d028] (invalid), oldsize=281474976184628, size=6, alignment=0, zero=false, hook_args=0xfffffff7fdc0 [,0xccfc00000000-0x1010c00000000] (invalid,sentry)) at /local/scratch/vz231/cheri/cheribsd/contrib/jemalloc/include/jemalloc/internal/jemalloc_internal_inlines_c.h:269
No locals.
#7 __realloc (ptr=0x40c1d000 [rwRW,0x40c1d000-0x40c1d028] (invalid), arg_size=<optimized out>) at jemalloc_jemalloc.c:2748
hook_args = {is_realloc = true, args = {0x40c1d000 [rwRW,0x40c1d000-0x40c1d028] (invalid) , 0x50 , 0x0 , 0x0 }}
tsd = 0x407fe070 [rwRW,0x407fe070-0x40800210]
rtree_ctx = <optimized out>
alloc_ctx = <optimized out>
log_var = <optimized out>
log_var = <optimized out>
size = 6
old_usize = 281474976184628
usize = 80
tsdn = 0x0 [,0xe000000000000000-0xffffffffffffffff] (invalid,sentry)
ret = <optimized out>
#8 0x0000000000110fac in main () at tests/cheri/realloc3.c:15
p = 0x40c1d000 [rwRW,0x40c1d000-0x40c1d028] (invalid)


Original: 0x40c1d000 [rwRW,0x40c1d000-0x40c1d028]
Modified: 0x40c1d000 [rwRW,0x40c1d000-0x40c1d028] (invalid)
<jemalloc>: can't unbound invalid cap
4 thr_kill.S: No such file or directory.
 
clang-morello-O0-bounds-very-aggressive exit codes: compile 0 / execute 1
Program received signal SIGABRT, Aborted.
Sent by thr_kill() from pid 32263 and user 0.
thr_kill () at thr_kill.S:4
#0 thr_kill () at thr_kill.S:4
No locals.
#1 0x0000000040252558 in __raise (s=6) at /local/scratch/vz231/cheri/cheribsd/lib/libc/gen/raise.c:52
id = 0
#2 0x00000000402eef0c in abort () at /local/scratch/vz231/cheri/cheribsd/lib/libc/stdlib/abort.c:67
act = {__sigaction_u = {__sa_handler = 0x4033c799 <__je_malloc_write+100> [rxRE,0x40190000-0x407d6000] (sentry), __sa_sigaction = 0x4033c799 <__je_malloc_write+100> [rxRE,0x40190000-0x407d6000] (sentry)}, sa_flags = 2, sa_mask = {__bits = {4294967263, 4294967295, 4294967295, 4294967295}}}
#3 0x0000000040313b30 in unbound_ptr (tsdn=0x407fe070 [rwRW,0x407fe070-0x40800210], ptr=0x40c1d000 [rwRW,0x40c1d000-0x40c1d028] (invalid)) at /local/scratch/vz231/cheri/cheribsd/contrib/jemalloc/include/jemalloc/internal/jemalloc_internal_inlines_c.h:46
rtree_ctx_fallback = {cache = {{leafkey = 1075351616, leaf = 0x4019e4b8 [rwRWE,0x40190000-0x407d6000]}, {leafkey = 281474976185024, leaf = 0x0}, {leafkey = 281474976185568, leaf = 0x4014d64d <_rtld_bind+160> [rxRE,0x40131000-0x40185480] (sentry)}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 201840, leaf = 0x40184070 <rtld_bind_lock> [rwRWE,0x40184070-0x40184080]}, {leafkey = 281474976185568, leaf = 0x4014d6e9 <_rtld_bind+316> [rxRE,0x40131000-0x40185480] (sentry)}, {leafkey = 281474976185568, leaf = 0x4014d6e9 <_rtld_bind+316> [rxRE,0x40131000-0x40185480] (sentry)}, {leafkey = 1, leaf = 0xfb5d25837d7ff700}, {leafkey = 281474976185024, leaf = 0xfffffff7fac0 [rwRW,0xfffffff7fac0-0xfffffff7fcd0]}, {leafkey = 1075353664, leaf = 0xc0}, {leafkey = 281474976185024, leaf = 0x40184070 <rtld_bind_lock> [rwRWE,0x40184070-0x40184080]}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0xfffffff7fce0 [rwRW,0xffffbff80000-0xfffffff80000]}, {leafkey = 1075107325, leaf = 0x0}}, l2_cache = {{leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x402b3089 <__swrite> [rxRE,0x40190000-0x407d6000] (sentry)}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}}}
rtree_ctx = <optimized out>
extent = <optimized out>
ubptr = <optimized out>
#4 __je_arena_ralloc (tsdn=0x407fe070 [rwRW,0x407fe070-0x40800210], arena=0x0, ptr=0x40c1d000 [rwRW,0x40c1d000-0x40c1d028] (invalid), oldsize=48, size=<optimized out>, alignment=0, zero=false, tcache=0x407fe410 [rwRW,0x407fe070-0x40800210], hook_args=0xfffffff7fdc0 [rwRW,0xfffffff7fdc0-0xfffffff7fe10]) at jemalloc_arena.c:1826
usize = 80
ret = <optimized out>
copysize = <optimized out>
#5 0x00000000403061c0 in iralloct (tsdn=0x407fe070 [rwRW,0x407fe070-0x40800210], ptr=0x40c1d000 [rwRW,0x40c1d000-0x40c1d028] (invalid), oldsize=281474976184628, size=6, alignment=0, zero=false, tcache=0x407fe410 [rwRW,0x407fe070-0x40800210], arena=0x0 [,0xffffc90c00000000-0x12c00000000] (invalid,sentry), hook_args=0xfffffff7fdc0 [,0xc90c00000000-0x1012c00000000] (invalid,sentry)) at /local/scratch/vz231/cheri/cheribsd/contrib/jemalloc/include/jemalloc/internal/jemalloc_internal_inlines_c.h:262
No locals.
#6 iralloc (tsd=0x407fe070 [rwRW,0x407fe070-0x40800210], ptr=0x40c1d000 [rwRW,0x40c1d000-0x40c1d028] (invalid), oldsize=281474976184628, size=6, alignment=0, zero=false, hook_args=0xfffffff7fdc0 [,0xc90c00000000-0x1012c00000000] (invalid,sentry)) at /local/scratch/vz231/cheri/cheribsd/contrib/jemalloc/include/jemalloc/internal/jemalloc_internal_inlines_c.h:269
No locals.
#7 __realloc (ptr=0x40c1d000 [rwRW,0x40c1d000-0x40c1d028] (invalid), arg_size=<optimized out>) at jemalloc_jemalloc.c:2748
hook_args = {is_realloc = true, args = {0x40c1d000 [rwRW,0x40c1d000-0x40c1d028] (invalid) , 0x50 , 0x0 , 0x0 }}
tsd = 0x407fe070 [rwRW,0x407fe070-0x40800210]
rtree_ctx = <optimized out>
alloc_ctx = <optimized out>
log_var = <optimized out>
log_var = <optimized out>
size = 6
old_usize = 281474976184628
usize = 80
tsdn = 0x0 [,0xe000000000000000-0x10e0000000000000] (invalid,sentry)
ret = <optimized out>
#8 0x0000000000110fac in main () at tests/cheri/realloc3.c:15
p = 0x40c1d000 [rwRW,0x40c1d000-0x40c1d028] (invalid)


Original: 0x40c1d000 [rwRW,0x40c1d000-0x40c1d028]
Modified: 0x40c1d000 [rwRW,0x40c1d000-0x40c1d028] (invalid)
<jemalloc>: can't unbound invalid cap
4 thr_kill.S: No such file or directory.
 
clang-morello-O0-bounds-aggressive exit codes: compile 0 / execute 1
Program received signal SIGABRT, Aborted.
Sent by thr_kill() from pid 32242 and user 0.
thr_kill () at thr_kill.S:4
#0 thr_kill () at thr_kill.S:4
No locals.
#1 0x0000000040252558 in __raise (s=6) at /local/scratch/vz231/cheri/cheribsd/lib/libc/gen/raise.c:52
id = 0
#2 0x00000000402eef0c in abort () at /local/scratch/vz231/cheri/cheribsd/lib/libc/stdlib/abort.c:67
act = {__sigaction_u = {__sa_handler = 0x4033c799 <__je_malloc_write+100> [rxRE,0x40190000-0x407d6000] (sentry), __sa_sigaction = 0x4033c799 <__je_malloc_write+100> [rxRE,0x40190000-0x407d6000] (sentry)}, sa_flags = 2, sa_mask = {__bits = {4294967263, 4294967295, 4294967295, 4294967295}}}
#3 0x0000000040313b30 in unbound_ptr (tsdn=0x407fe070 [rwRW,0x407fe070-0x40800210], ptr=0x40c1d000 [rwRW,0x40c1d000-0x40c1d028] (invalid)) at /local/scratch/vz231/cheri/cheribsd/contrib/jemalloc/include/jemalloc/internal/jemalloc_internal_inlines_c.h:46
rtree_ctx_fallback = {cache = {{leafkey = 1075351616, leaf = 0x4019e4b8 [rwRWE,0x40190000-0x407d6000]}, {leafkey = 281474976185024, leaf = 0x0}, {leafkey = 281474976185568, leaf = 0x4014d64d <_rtld_bind+160> [rxRE,0x40131000-0x40185480] (sentry)}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 201840, leaf = 0x40184070 <rtld_bind_lock> [rwRWE,0x40184070-0x40184080]}, {leafkey = 281474976185568, leaf = 0x4014d6e9 <_rtld_bind+316> [rxRE,0x40131000-0x40185480] (sentry)}, {leafkey = 281474976185568, leaf = 0x4014d6e9 <_rtld_bind+316> [rxRE,0x40131000-0x40185480] (sentry)}, {leafkey = 1, leaf = 0xfb5d25837d7ff700}, {leafkey = 281474976185024, leaf = 0xfffffff7fac0 [rwRW,0xfffffff7fac0-0xfffffff7fcd0]}, {leafkey = 1075353664, leaf = 0xc0}, {leafkey = 281474976185024, leaf = 0x40184070 <rtld_bind_lock> [rwRWE,0x40184070-0x40184080]}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0xfffffff7fce0 [rwRW,0xffffbff80000-0xfffffff80000]}, {leafkey = 1075107325, leaf = 0x0}}, l2_cache = {{leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x402b3089 <__swrite> [rxRE,0x40190000-0x407d6000] (sentry)}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}}}
rtree_ctx = <optimized out>
extent = <optimized out>
ubptr = <optimized out>
#4 __je_arena_ralloc (tsdn=0x407fe070 [rwRW,0x407fe070-0x40800210], arena=0x0, ptr=0x40c1d000 [rwRW,0x40c1d000-0x40c1d028] (invalid), oldsize=48, size=<optimized out>, alignment=0, zero=false, tcache=0x407fe410 [rwRW,0x407fe070-0x40800210], hook_args=0xfffffff7fdc0 [rwRW,0xfffffff7fdc0-0xfffffff7fe10]) at jemalloc_arena.c:1826
usize = 80
ret = <optimized out>
copysize = <optimized out>
#5 0x00000000403061c0 in iralloct (tsdn=0x407fe070 [rwRW,0x407fe070-0x40800210], ptr=0x40c1d000 [rwRW,0x40c1d000-0x40c1d028] (invalid), oldsize=281474976184628, size=6, alignment=0, zero=false, tcache=0x407fe410 [rwRW,0x407fe070-0x40800210], arena=0x0 [,0x4ea0000000000000-0xffffffffffffffff] (invalid,sentry), hook_args=0xfffffff7fdc0 [,0x4ea0000000000000-0xffffffffffffffff] (invalid,sentry)) at /local/scratch/vz231/cheri/cheribsd/contrib/jemalloc/include/jemalloc/internal/jemalloc_internal_inlines_c.h:262
No locals.
#6 iralloc (tsd=0x407fe070 [rwRW,0x407fe070-0x40800210], ptr=0x40c1d000 [rwRW,0x40c1d000-0x40c1d028] (invalid), oldsize=281474976184628, size=6, alignment=0, zero=false, hook_args=0xfffffff7fdc0 [,0x4ea0000000000000-0xffffffffffffffff] (invalid,sentry)) at /local/scratch/vz231/cheri/cheribsd/contrib/jemalloc/include/jemalloc/internal/jemalloc_internal_inlines_c.h:269
No locals.
#7 __realloc (ptr=0x40c1d000 [rwRW,0x40c1d000-0x40c1d028] (invalid), arg_size=<optimized out>) at jemalloc_jemalloc.c:2748
hook_args = {is_realloc = true, args = {0x40c1d000 [rwRW,0x40c1d000-0x40c1d028] (invalid) , 0x50 , 0x0 , 0x0 }}
tsd = 0x407fe070 [rwRW,0x407fe070-0x40800210]
rtree_ctx = <optimized out>
alloc_ctx = <optimized out>
log_var = <optimized out>
log_var = <optimized out>
size = 6
old_usize = 281474976184628
usize = 80
tsdn = 0x0 [,0xffffffffffcc0000-0x20800] (invalid,sentry)
ret = <optimized out>
#8 0x0000000000110fac in main () at tests/cheri/realloc3.c:15
p = 0x40c1d000 [rwRW,0x40c1d000-0x40c1d028] (invalid)


Original: 0x40c1d000 [rwRW,0x40c1d000-0x40c1d028]
Modified: 0x40c1d000 [rwRW,0x40c1d000-0x40c1d028] (invalid)
<jemalloc>: can't unbound invalid cap
4 thr_kill.S: No such file or directory.
 
clang-morello-O3-bounds-subobject-safe exit codes: compile 0 / execute 1
Program received signal SIGABRT, Aborted.
Sent by thr_kill() from pid 32221 and user 0.
thr_kill () at thr_kill.S:4
#0 thr_kill () at thr_kill.S:4
No locals.
#1 0x0000000040252558 in __raise (s=6) at /local/scratch/vz231/cheri/cheribsd/lib/libc/gen/raise.c:52
id = 0
#2 0x00000000402eef0c in abort () at /local/scratch/vz231/cheri/cheribsd/lib/libc/stdlib/abort.c:67
act = {__sigaction_u = {__sa_handler = 0x4033c799 <__je_malloc_write+100> [rxRE,0x40190000-0x407d6000] (sentry), __sa_sigaction = 0x4033c799 <__je_malloc_write+100> [rxRE,0x40190000-0x407d6000] (sentry)}, sa_flags = 2, sa_mask = {__bits = {4294967263, 4294967295, 4294967295, 4294967295}}}
#3 0x0000000040313b30 in unbound_ptr (tsdn=0x407fe070 [rwRW,0x407fe070-0x40800210], ptr=0x40c1d000 [rwRW,0x40c1d000-0x40c1d028] (invalid)) at /local/scratch/vz231/cheri/cheribsd/contrib/jemalloc/include/jemalloc/internal/jemalloc_internal_inlines_c.h:46
rtree_ctx_fallback = {cache = {{leafkey = 1075351616, leaf = 0x4019e4b8 [rwRWE,0x40190000-0x407d6000]}, {leafkey = 281474976185056, leaf = 0x0}, {leafkey = 281474976185600, leaf = 0x4014d64d <_rtld_bind+160> [rxRE,0x40131000-0x40185480] (sentry)}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 202352, leaf = 0x40184070 <rtld_bind_lock> [rwRWE,0x40184070-0x40184080]}, {leafkey = 281474976185600, leaf = 0x4014d6e9 <_rtld_bind+316> [rxRE,0x40131000-0x40185480] (sentry)}, {leafkey = 281474976185600, leaf = 0x4014d6e9 <_rtld_bind+316> [rxRE,0x40131000-0x40185480] (sentry)}, {leafkey = 1, leaf = 0xfb5d25837d7ff700}, {leafkey = 281474976185056, leaf = 0xfffffff7fae0 [rwRW,0xfffffff7fae0-0xfffffff7fcf0]}, {leafkey = 1075353664, leaf = 0xc0}, {leafkey = 281474976185056, leaf = 0x40184070 <rtld_bind_lock> [rwRWE,0x40184070-0x40184080]}, {leafkey = 1050917, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0xfffffff7fd00 [rwRW,0xffffbff80000-0xfffffff80000]}, {leafkey = 1075107325, leaf = 0x0}}, l2_cache = {{leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x402b3089 <__swrite> [rxRE,0x40190000-0x407d6000] (sentry)}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}}}
rtree_ctx = <optimized out>
extent = <optimized out>
ubptr = <optimized out>
#4 __je_arena_ralloc (tsdn=0x407fe070 [rwRW,0x407fe070-0x40800210], arena=0x0, ptr=0x40c1d000 [rwRW,0x40c1d000-0x40c1d028] (invalid), oldsize=48, size=<optimized out>, alignment=0, zero=false, tcache=0x407fe410 [rwRW,0x407fe070-0x40800210], hook_args=0xfffffff7fde0 [rwRW,0xfffffff7fde0-0xfffffff7fe30]) at jemalloc_arena.c:1826
usize = 80
ret = <optimized out>
copysize = <optimized out>
#5 0x00000000403061c0 in iralloct (tsdn=0x407fe070 [rwRW,0x407fe070-0x40800210], ptr=0x40c1d000 [rwRW,0x40c1d000-0x40c1d028] (invalid), oldsize=281474976184660, size=6, alignment=0, zero=false, tcache=0x407fe410 [rwRW,0x407fe070-0x40800210], arena=0x0 [,0xfffffffffff69c00-0x20fc00] (invalid,sentry), hook_args=0xfffffff7fde0 [,0xfffffff69c00-0x100000020fc00] (invalid,sentry)) at /local/scratch/vz231/cheri/cheribsd/contrib/jemalloc/include/jemalloc/internal/jemalloc_internal_inlines_c.h:262
No locals.
#6 iralloc (tsd=0x407fe070 [rwRW,0x407fe070-0x40800210], ptr=0x40c1d000 [rwRW,0x40c1d000-0x40c1d028] (invalid), oldsize=281474976184660, size=6, alignment=0, zero=false, hook_args=0xfffffff7fde0 [,0xfffffff69c00-0x100000020fc00] (invalid,sentry)) at /local/scratch/vz231/cheri/cheribsd/contrib/jemalloc/include/jemalloc/internal/jemalloc_internal_inlines_c.h:269
No locals.
#7 __realloc (ptr=0x40c1d000 [rwRW,0x40c1d000-0x40c1d028] (invalid), arg_size=<optimized out>) at jemalloc_jemalloc.c:2748
hook_args = {is_realloc = true, args = {0x40c1d000 [rwRW,0x40c1d000-0x40c1d028] (invalid) , 0x50 , 0x0 , 0x0 }}
tsd = 0x407fe070 [rwRW,0x407fe070-0x40800210]
rtree_ctx = <optimized out>
alloc_ctx = <optimized out>
log_var = <optimized out>
log_var = <optimized out>
size = 6
old_usize = 281474976184660
usize = 80
tsdn = 0x0 [,0xffffe40000000000-0x225400000000] (invalid,sentry)
ret = <optimized out>
#8 0x00000000001111a0 in main () at tests/cheri/realloc3.c:15
p = 0x40c1d000 [rwRW,0x40c1d000-0x40c1d028] (invalid)


Original: 0x40c1d000 [rwRW,0x40c1d000-0x40c1d028]
Modified: 0x40c1d000 [rwRW,0x40c1d000-0x40c1d028] (invalid)
<jemalloc>: can't unbound invalid cap
4 thr_kill.S: No such file or directory.
 
clang-morello-O0-bounds-subobject-safe exit codes: compile 0 / execute 1
Program received signal SIGABRT, Aborted.
Sent by thr_kill() from pid 32200 and user 0.
thr_kill () at thr_kill.S:4
#0 thr_kill () at thr_kill.S:4
No locals.
#1 0x0000000040252558 in __raise (s=6) at /local/scratch/vz231/cheri/cheribsd/lib/libc/gen/raise.c:52
id = 0
#2 0x00000000402eef0c in abort () at /local/scratch/vz231/cheri/cheribsd/lib/libc/stdlib/abort.c:67
act = {__sigaction_u = {__sa_handler = 0x4033c799 <__je_malloc_write+100> [rxRE,0x40190000-0x407d6000] (sentry), __sa_sigaction = 0x4033c799 <__je_malloc_write+100> [rxRE,0x40190000-0x407d6000] (sentry)}, sa_flags = 2, sa_mask = {__bits = {4294967263, 4294967295, 4294967295, 4294967295}}}
#3 0x0000000040313b30 in unbound_ptr (tsdn=0x407fe070 [rwRW,0x407fe070-0x40800210], ptr=0x40c1d000 [rwRW,0x40c1d000-0x40c1d028] (invalid)) at /local/scratch/vz231/cheri/cheribsd/contrib/jemalloc/include/jemalloc/internal/jemalloc_internal_inlines_c.h:46
rtree_ctx_fallback = {cache = {{leafkey = 1075351616, leaf = 0x4019e4b8 [rwRWE,0x40190000-0x407d6000]}, {leafkey = 281474976185024, leaf = 0x0}, {leafkey = 281474976185568, leaf = 0x4014d64d <_rtld_bind+160> [rxRE,0x40131000-0x40185480] (sentry)}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 201840, leaf = 0x40184070 <rtld_bind_lock> [rwRWE,0x40184070-0x40184080]}, {leafkey = 281474976185568, leaf = 0x4014d6e9 <_rtld_bind+316> [rxRE,0x40131000-0x40185480] (sentry)}, {leafkey = 281474976185568, leaf = 0x4014d6e9 <_rtld_bind+316> [rxRE,0x40131000-0x40185480] (sentry)}, {leafkey = 1, leaf = 0xfb5d25837d7ff700}, {leafkey = 281474976185024, leaf = 0xfffffff7fac0 [rwRW,0xfffffff7fac0-0xfffffff7fcd0]}, {leafkey = 1075353664, leaf = 0xc0}, {leafkey = 281474976185024, leaf = 0x40184070 <rtld_bind_lock> [rwRWE,0x40184070-0x40184080]}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0xfffffff7fce0 [rwRW,0xffffbff80000-0xfffffff80000]}, {leafkey = 1075107325, leaf = 0x0}}, l2_cache = {{leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x402b3089 <__swrite> [rxRE,0x40190000-0x407d6000] (sentry)}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}}}
rtree_ctx = <optimized out>
extent = <optimized out>
ubptr = <optimized out>
#4 __je_arena_ralloc (tsdn=0x407fe070 [rwRW,0x407fe070-0x40800210], arena=0x0, ptr=0x40c1d000 [rwRW,0x40c1d000-0x40c1d028] (invalid), oldsize=48, size=<optimized out>, alignment=0, zero=false, tcache=0x407fe410 [rwRW,0x407fe070-0x40800210], hook_args=0xfffffff7fdc0 [rwRW,0xfffffff7fdc0-0xfffffff7fe10]) at jemalloc_arena.c:1826
usize = 80
ret = <optimized out>
copysize = <optimized out>
#5 0x00000000403061c0 in iralloct (tsdn=0x407fe070 [rwRW,0x407fe070-0x40800210], ptr=0x40c1d000 [rwRW,0x40c1d000-0x40c1d028] (invalid), oldsize=281474976184628, size=6, alignment=0, zero=false, tcache=0x407fe410 [rwRW,0x407fe070-0x40800210], arena=0x0 [,0xe91c000000000000-0x20dc000000000000] (invalid,sentry), hook_args=0xfffffff7fdc0 [,0xe91c000000000000-0x20dc000000000000] (invalid,sentry)) at /local/scratch/vz231/cheri/cheribsd/contrib/jemalloc/include/jemalloc/internal/jemalloc_internal_inlines_c.h:262
No locals.
#6 iralloc (tsd=0x407fe070 [rwRW,0x407fe070-0x40800210], ptr=0x40c1d000 [rwRW,0x40c1d000-0x40c1d028] (invalid), oldsize=281474976184628, size=6, alignment=0, zero=false, hook_args=0xfffffff7fdc0 [,0xe91c000000000000-0x20dc000000000000] (invalid,sentry)) at /local/scratch/vz231/cheri/cheribsd/contrib/jemalloc/include/jemalloc/internal/jemalloc_internal_inlines_c.h:269
No locals.
#7 __realloc (ptr=0x40c1d000 [rwRW,0x40c1d000-0x40c1d028] (invalid), arg_size=<optimized out>) at jemalloc_jemalloc.c:2748
hook_args = {is_realloc = true, args = {0x40c1d000 [rwRW,0x40c1d000-0x40c1d028] (invalid) , 0x50 , 0x0 , 0x0 }}
tsd = 0x407fe070 [rwRW,0x407fe070-0x40800210]
rtree_ctx = <optimized out>
alloc_ctx = <optimized out>
log_var = <optimized out>
log_var = <optimized out>
size = 6
old_usize = 281474976184628
usize = 80
tsdn = 0x0 [,0xffffec0000000000-0x21b000000000] (invalid,sentry)
ret = <optimized out>
#8 0x0000000000110fac in main () at tests/cheri/realloc3.c:15
p = 0x40c1d000 [rwRW,0x40c1d000-0x40c1d028] (invalid)


Original: 0x40c1d000 [rwRW,0x40c1d000-0x40c1d028]
Modified: 0x40c1d000 [rwRW,0x40c1d000-0x40c1d028] (invalid)
<jemalloc>: can't unbound invalid cap
4 thr_kill.S: No such file or directory.
 
clang-morello-O0-bounds-references-only exit codes: compile 0 / execute 1
Program received signal SIGABRT, Aborted.
Sent by thr_kill() from pid 32179 and user 0.
thr_kill () at thr_kill.S:4
#0 thr_kill () at thr_kill.S:4
No locals.
#1 0x0000000040252558 in __raise (s=6) at /local/scratch/vz231/cheri/cheribsd/lib/libc/gen/raise.c:52
id = 0
#2 0x00000000402eef0c in abort () at /local/scratch/vz231/cheri/cheribsd/lib/libc/stdlib/abort.c:67
act = {__sigaction_u = {__sa_handler = 0x4033c799 <__je_malloc_write+100> [rxRE,0x40190000-0x407d6000] (sentry), __sa_sigaction = 0x4033c799 <__je_malloc_write+100> [rxRE,0x40190000-0x407d6000] (sentry)}, sa_flags = 2, sa_mask = {__bits = {4294967263, 4294967295, 4294967295, 4294967295}}}
#3 0x0000000040313b30 in unbound_ptr (tsdn=0x407fe070 [rwRW,0x407fe070-0x40800210], ptr=0x40c1d000 [rwRW,0x40c1d000-0x40c1d028] (invalid)) at /local/scratch/vz231/cheri/cheribsd/contrib/jemalloc/include/jemalloc/internal/jemalloc_internal_inlines_c.h:46
rtree_ctx_fallback = {cache = {{leafkey = 1075351616, leaf = 0x4019e4b8 [rwRWE,0x40190000-0x407d6000]}, {leafkey = 281474976185072, leaf = 0x0}, {leafkey = 281474976185616, leaf = 0x4014d64d <_rtld_bind+160> [rxRE,0x40131000-0x40185480] (sentry)}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 201760, leaf = 0x40184070 <rtld_bind_lock> [rwRWE,0x40184070-0x40184080]}, {leafkey = 281474976185616, leaf = 0x4014d6e9 <_rtld_bind+316> [rxRE,0x40131000-0x40185480] (sentry)}, {leafkey = 281474976185616, leaf = 0x4014d6e9 <_rtld_bind+316> [rxRE,0x40131000-0x40185480] (sentry)}, {leafkey = 1, leaf = 0xfb5d25837d7ff700}, {leafkey = 281474976185072, leaf = 0xfffffff7faf0 [rwRW,0xfffffff7faf0-0xfffffff7fd00]}, {leafkey = 1075353664, leaf = 0xc0}, {leafkey = 281474976185072, leaf = 0x40184070 <rtld_bind_lock> [rwRWE,0x40184070-0x40184080]}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0xfffffff7fd10 [rwRW,0xffffbff80000-0xfffffff80000]}, {leafkey = 1075107325, leaf = 0x0}}, l2_cache = {{leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x402b3089 <__swrite> [rxRE,0x40190000-0x407d6000] (sentry)}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}}}
rtree_ctx = <optimized out>
extent = <optimized out>
ubptr = <optimized out>
#4 __je_arena_ralloc (tsdn=0x407fe070 [rwRW,0x407fe070-0x40800210], arena=0x0, ptr=0x40c1d000 [rwRW,0x40c1d000-0x40c1d028] (invalid), oldsize=48, size=<optimized out>, alignment=0, zero=false, tcache=0x407fe410 [rwRW,0x407fe070-0x40800210], hook_args=0xfffffff7fdf0 [rwRW,0xfffffff7fdf0-0xfffffff7fe40]) at jemalloc_arena.c:1826
usize = 80
ret = <optimized out>
copysize = <optimized out>
#5 0x00000000403061c0 in iralloct (tsdn=0x407fe070 [rwRW,0x407fe070-0x40800210], ptr=0x40c1d000 [rwRW,0x40c1d000-0x40c1d028] (invalid), oldsize=281474976184676, size=6, alignment=0, zero=false, tcache=0x407fe410 [rwRW,0x407fe070-0x40800210], arena=0x0 [,0x110c00000000-0x40e000000000] (invalid,sentry), hook_args=0xfffffff7fdf0 [,0x910c00000000-0xc0e000000000] (invalid,sentry)) at /local/scratch/vz231/cheri/cheribsd/contrib/jemalloc/include/jemalloc/internal/jemalloc_internal_inlines_c.h:262
No locals.
#6 iralloc (tsd=0x407fe070 [rwRW,0x407fe070-0x40800210], ptr=0x40c1d000 [rwRW,0x40c1d000-0x40c1d028] (invalid), oldsize=281474976184676, size=6, alignment=0, zero=false, hook_args=0xfffffff7fdf0 [,0x910c00000000-0xc0e000000000] (invalid,sentry)) at /local/scratch/vz231/cheri/cheribsd/contrib/jemalloc/include/jemalloc/internal/jemalloc_internal_inlines_c.h:269
No locals.
#7 __realloc (ptr=0x40c1d000 [rwRW,0x40c1d000-0x40c1d028] (invalid), arg_size=<optimized out>) at jemalloc_jemalloc.c:2748
hook_args = {is_realloc = true, args = {0x40c1d000 [rwRW,0x40c1d000-0x40c1d028] (invalid) , 0x50 , 0x0 , 0x0 }}
tsd = 0x407fe070 [rwRW,0x407fe070-0x40800210]
rtree_ctx = <optimized out>
alloc_ctx = <optimized out>
log_var = <optimized out>
log_var = <optimized out>
size = 6
old_usize = 281474976184676
usize = 80
tsdn = 0x0 [,0xe000000000000000-0xffffffffffffffff] (invalid,sentry)
ret = <optimized out>
#8 0x0000000000110f74 in main () at tests/cheri/realloc3.c:15
p = 0x40c1d000 [rwRW,0x40c1d000-0x40c1d028] (invalid)


Original: 0x40c1d000 [rwRW,0x40c1d000-0x40c1d028]
Modified: 0x40c1d000 [rwRW,0x40c1d000-0x40c1d028] (invalid)
<jemalloc>: can't unbound invalid cap
4 thr_kill.S: No such file or directory.
 
clang-morello-O3-bounds-conservative exit codes: compile 0 / execute 1
Program received signal SIGABRT, Aborted.
Sent by thr_kill() from pid 32158 and user 0.
thr_kill () at thr_kill.S:4
#0 thr_kill () at thr_kill.S:4
No locals.
#1 0x0000000040252558 in __raise (s=6) at /local/scratch/vz231/cheri/cheribsd/lib/libc/gen/raise.c:52
id = 0
#2 0x00000000402eef0c in abort () at /local/scratch/vz231/cheri/cheribsd/lib/libc/stdlib/abort.c:67
act = {__sigaction_u = {__sa_handler = 0x4033c799 <__je_malloc_write+100> [rxRE,0x40190000-0x407d6000] (sentry), __sa_sigaction = 0x4033c799 <__je_malloc_write+100> [rxRE,0x40190000-0x407d6000] (sentry)}, sa_flags = 2, sa_mask = {__bits = {4294967263, 4294967295, 4294967295, 4294967295}}}
#3 0x0000000040313b30 in unbound_ptr (tsdn=0x407fe070 [rwRW,0x407fe070-0x40800210], ptr=0x40c1d000 [rwRW,0x40c1d000-0x40c1d028] (invalid)) at /local/scratch/vz231/cheri/cheribsd/contrib/jemalloc/include/jemalloc/internal/jemalloc_internal_inlines_c.h:46
rtree_ctx_fallback = {cache = {{leafkey = 1075351616, leaf = 0x4019e4b8 [rwRWE,0x40190000-0x407d6000]}, {leafkey = 281474976185088, leaf = 0x0}, {leafkey = 281474976185632, leaf = 0x4014d64d <_rtld_bind+160> [rxRE,0x40131000-0x40185480] (sentry)}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 202432, leaf = 0x40184070 <rtld_bind_lock> [rwRWE,0x40184070-0x40184080]}, {leafkey = 281474976185632, leaf = 0x4014d6e9 <_rtld_bind+316> [rxRE,0x40131000-0x40185480] (sentry)}, {leafkey = 281474976185632, leaf = 0x4014d6e9 <_rtld_bind+316> [rxRE,0x40131000-0x40185480] (sentry)}, {leafkey = 1, leaf = 0xfb5d25837d7ff700}, {leafkey = 281474976185088, leaf = 0xfffffff7fb00 [rwRW,0xfffffff7fb00-0xfffffff7fd10]}, {leafkey = 1075353664, leaf = 0xf0}, {leafkey = 281474976185088, leaf = 0x40184070 <rtld_bind_lock> [rwRWE,0x40184070-0x40184080]}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0xfffffff7fd20 [rwRW,0xffffbff80000-0xfffffff80000]}, {leafkey = 1075107325, leaf = 0x0}}, l2_cache = {{leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x402b3089 <__swrite> [rxRE,0x40190000-0x407d6000] (sentry)}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}}}
rtree_ctx = <optimized out>
extent = <optimized out>
ubptr = <optimized out>
#4 __je_arena_ralloc (tsdn=0x407fe070 [rwRW,0x407fe070-0x40800210], arena=0x0, ptr=0x40c1d000 [rwRW,0x40c1d000-0x40c1d028] (invalid), oldsize=48, size=<optimized out>, alignment=0, zero=false, tcache=0x407fe410 [rwRW,0x407fe070-0x40800210], hook_args=0xfffffff7fe00 [rwRW,0xfffffff7fe00-0xfffffff7fe50]) at jemalloc_arena.c:1826
usize = 80
ret = <optimized out>
copysize = <optimized out>
#5 0x00000000403061c0 in iralloct (tsdn=0x407fe070 [rwRW,0x407fe070-0x40800210], ptr=0x40c1d000 [rwRW,0x40c1d000-0x40c1d028] (invalid), oldsize=281474976184692, size=6, alignment=0, zero=false, tcache=0x407fe410 [rwRW,0x407fe070-0x40800210], arena=0x0 [,0x189400-0x413800] (invalid,sentry), hook_args=0xfffffff7fe00 [,0xffffff989400-0xffffffc13800] (invalid,sentry)) at /local/scratch/vz231/cheri/cheribsd/contrib/jemalloc/include/jemalloc/internal/jemalloc_internal_inlines_c.h:262
No locals.
#6 iralloc (tsd=0x407fe070 [rwRW,0x407fe070-0x40800210], ptr=0x40c1d000 [rwRW,0x40c1d000-0x40c1d028] (invalid), oldsize=281474976184692, size=6, alignment=0, zero=false, hook_args=0xfffffff7fe00 [,0xffffff989400-0xffffffc13800] (invalid,sentry)) at /local/scratch/vz231/cheri/cheribsd/contrib/jemalloc/include/jemalloc/internal/jemalloc_internal_inlines_c.h:269
No locals.
#7 __realloc (ptr=0x40c1d000 [rwRW,0x40c1d000-0x40c1d028] (invalid), arg_size=<optimized out>) at jemalloc_jemalloc.c:2748
hook_args = {is_realloc = true, args = {0x40c1d000 [rwRW,0x40c1d000-0x40c1d028] (invalid) , 0x50 , 0x0 , 0x0 }}
tsd = 0x407fe070 [rwRW,0x407fe070-0x40800210]
rtree_ctx = <optimized out>
alloc_ctx = <optimized out>
log_var = <optimized out>
log_var = <optimized out>
size = 6
old_usize = 281474976184692
usize = 80
tsdn = 0x0 [,0x2000000000000000-0xfc0000000000000] (invalid,sentry)
ret = <optimized out>
#8 0x00000000001111c4 in main () at tests/cheri/realloc3.c:15
p = 0x40c1d000 [rwRW,0x40c1d000-0x40c1d028] (invalid)


Original: 0x40c1d000 [rwRW,0x40c1d000-0x40c1d028]
Modified: 0x40c1d000 [rwRW,0x40c1d000-0x40c1d028] (invalid)
<jemalloc>: can't unbound invalid cap
4 thr_kill.S: No such file or directory.
 
clang-morello-O0-bounds-conservative exit codes: compile 0 / execute 1
Program received signal SIGABRT, Aborted.
Sent by thr_kill() from pid 32137 and user 0.
thr_kill () at thr_kill.S:4
#0 thr_kill () at thr_kill.S:4
No locals.
#1 0x0000000040252558 in __raise (s=6) at /local/scratch/vz231/cheri/cheribsd/lib/libc/gen/raise.c:52
id = 0
#2 0x00000000402eef0c in abort () at /local/scratch/vz231/cheri/cheribsd/lib/libc/stdlib/abort.c:67
act = {__sigaction_u = {__sa_handler = 0x4033c799 <__je_malloc_write+100> [rxRE,0x40190000-0x407d6000] (sentry), __sa_sigaction = 0x4033c799 <__je_malloc_write+100> [rxRE,0x40190000-0x407d6000] (sentry)}, sa_flags = 2, sa_mask = {__bits = {4294967263, 4294967295, 4294967295, 4294967295}}}
#3 0x0000000040313b30 in unbound_ptr (tsdn=0x407fe070 [rwRW,0x407fe070-0x40800210], ptr=0x40c1d000 [rwRW,0x40c1d000-0x40c1d028] (invalid)) at /local/scratch/vz231/cheri/cheribsd/contrib/jemalloc/include/jemalloc/internal/jemalloc_internal_inlines_c.h:46
rtree_ctx_fallback = {cache = {{leafkey = 1075351616, leaf = 0x4019e4b8 [rwRWE,0x40190000-0x407d6000]}, {leafkey = 281474976185072, leaf = 0x0}, {leafkey = 281474976185616, leaf = 0x4014d64d <_rtld_bind+160> [rxRE,0x40131000-0x40185480] (sentry)}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 201760, leaf = 0x40184070 <rtld_bind_lock> [rwRWE,0x40184070-0x40184080]}, {leafkey = 281474976185616, leaf = 0x4014d6e9 <_rtld_bind+316> [rxRE,0x40131000-0x40185480] (sentry)}, {leafkey = 281474976185616, leaf = 0x4014d6e9 <_rtld_bind+316> [rxRE,0x40131000-0x40185480] (sentry)}, {leafkey = 1, leaf = 0xfb5d25837d7ff700}, {leafkey = 281474976185072, leaf = 0xfffffff7faf0 [rwRW,0xfffffff7faf0-0xfffffff7fd00]}, {leafkey = 1075353664, leaf = 0xc0}, {leafkey = 281474976185072, leaf = 0x40184070 <rtld_bind_lock> [rwRWE,0x40184070-0x40184080]}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0xfffffff7fd10 [rwRW,0xffffbff80000-0xfffffff80000]}, {leafkey = 1075107325, leaf = 0x0}}, l2_cache = {{leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x402b3089 <__swrite> [rxRE,0x40190000-0x407d6000] (sentry)}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}, {leafkey = 0, leaf = 0x0}}}
rtree_ctx = <optimized out>
extent = <optimized out>
ubptr = <optimized out>
#4 __je_arena_ralloc (tsdn=0x407fe070 [rwRW,0x407fe070-0x40800210], arena=0x0, ptr=0x40c1d000 [rwRW,0x40c1d000-0x40c1d028] (invalid), oldsize=48, size=<optimized out>, alignment=0, zero=false, tcache=0x407fe410 [rwRW,0x407fe070-0x40800210], hook_args=0xfffffff7fdf0 [rwRW,0xfffffff7fdf0-0xfffffff7fe40]) at jemalloc_arena.c:1826
usize = 80
ret = <optimized out>
copysize = <optimized out>
#5 0x00000000403061c0 in iralloct (tsdn=0x407fe070 [rwRW,0x407fe070-0x40800210], ptr=0x40c1d000 [rwRW,0x40c1d000-0x40c1d028] (invalid), oldsize=281474976184676, size=6, alignment=0, zero=false, tcache=0x407fe410 [rwRW,0x407fe070-0x40800210], arena=0x0 [,0x1d3c00-0x412000] (invalid,sentry), hook_args=0xfffffff7fdf0 [,0xffffff9d3c00-0xffffffc12000] (invalid,sentry)) at /local/scratch/vz231/cheri/cheribsd/contrib/jemalloc/include/jemalloc/internal/jemalloc_internal_inlines_c.h:262
No locals.
#6 iralloc (tsd=0x407fe070 [rwRW,0x407fe070-0x40800210], ptr=0x40c1d000 [rwRW,0x40c1d000-0x40c1d028] (invalid), oldsize=281474976184676, size=6, alignment=0, zero=false, hook_args=0xfffffff7fdf0 [,0xffffff9d3c00-0xffffffc12000] (invalid,sentry)) at /local/scratch/vz231/cheri/cheribsd/contrib/jemalloc/include/jemalloc/internal/jemalloc_internal_inlines_c.h:269
No locals.
#7 __realloc (ptr=0x40c1d000 [rwRW,0x40c1d000-0x40c1d028] (invalid), arg_size=<optimized out>) at jemalloc_jemalloc.c:2748
hook_args = {is_realloc = true, args = {0x40c1d000 [rwRW,0x40c1d000-0x40c1d028] (invalid) , 0x50 , 0x0 , 0x0 }}
tsd = 0x407fe070 [rwRW,0x407fe070-0x40800210]
rtree_ctx = <optimized out>
alloc_ctx = <optimized out>
log_var = <optimized out>
log_var = <optimized out>
size = 6
old_usize = 281474976184676
usize = 80
tsdn = 0x0 [,0x1400000000000000-0x420c000000000000] (invalid,sentry)
ret = <optimized out>
#8 0x0000000000110f74 in main () at tests/cheri/realloc3.c:15
p = 0x40c1d000 [rwRW,0x40c1d000-0x40c1d028] (invalid)


Original: 0x40c1d000 [rwRW,0x40c1d000-0x40c1d028]
Modified: 0x40c1d000 [rwRW,0x40c1d000-0x40c1d028] (invalid)
<jemalloc>: can't unbound invalid cap
4 thr_kill.S: No such file or directory.
 
gcc-morello-O0
gcc-morello-O3
 Original: 0x40000010 [rwRW,0x40000010-0x40000038]
Modified: 0x40000010 [rwRW,0x40000010-0x40000038] (invalid)
Reallocated: 0x40000260 [rwRW,0x40000260-0x400002b0]
Value: 42