Giter VIP home page Giter VIP logo

libcodr7's Introduction

setup

libcodr7 requires a C11 compiler and CMake to build.

$ git clone https://github.com/codr7/libcodr7.git
$ cd libcodr7
$ mkdir build
$ cd build
$ cmake ..
$ sudo make install
$ valgrind ./tests

list (h/c)

Intrusive, double linked list. Since one set of links is needed for each list, the maxiumum number of lists an item is placed in simultaneously needs to be static.

deque (h/c)

Deque with value semantics and pool allocated items.

tree (h/c)

Left leaning red/black tree with value semantics and pool allocated items.

chan (h/c)

Thread safe channel based on C11 threads using deque.

examples

Besides the commented test suite, you may find a real world example here.

license

MIT

support

Please consider a donation if you would like to support the project, every contribution helps.

Donate using Liberapay

libcodr7's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

libcodr7's Issues

Endianness war [SPARC]

Lets run tests.c under different endianness you develop on.

Welcome to hell. Enjoy and have fun.

$ file ./a.out 
./a.out:        ELF 64-bit MSB executable SPARCV9 Version 1, dynamically linked, not stripped
$ ./a.out 
Bus Error (core dumped)
$ gdb ./a.out core 
GNU gdb (GDB) 8.3.1
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "sparcv9-sun-solaris2.11".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./a.out...
[New LWP 1]
[New LWP 1]
[Thread debugging using libthread_db enabled]
[New Thread 1 (LWP 1)]
Core was generated by `./a.out'.
Program terminated with signal SIGBUS, Bus error.
#0  0x00000001000031c8 in c7_rbnode_init (node=0x100104152) at codr7/rbnode.c:7
7         node->left = node->right = NULL;
[Current thread is 3 (Thread 1 (LWP 1))]
(gdb) bt
#0  0x00000001000031c8 in c7_rbnode_init (node=0x100104152) at codr7/rbnode.c:7
#1  0x00000001000038f8 in c7_rbpool_get (pool=0xffffffff7ffff798) at codr7/rbpool.c:37
#2  0x0000000100003488 in c7_rbnode_add (node=0x0, tree=0xffffffff7ffff780, key=0xffffffff7ffff758, value=0xffffffff7ffff698) at codr7/rbnode.c:64
#3  0x0000000100003ad8 in c7_rbtree_add (tree=0xffffffff7ffff780, key=0xffffffff7ffff758) at codr7/rbtree.c:22
#4  0x0000000100002514 in rbtree_tests () at tests.c:76
#5  0x000000010000271c in main () at tests.c:95
(gdb) quit

undefined sanitizer

compile tests.c by clang-gcc via "undefined" sanitizer.

BTW, address and memory sanitizers are passed.

Take care.

$ ./a.out 
codr7/rbnode.c:7:22: runtime error: member access within misaligned address 0x555e299632e2 for type 'struct c7_rbnode', which requires 8 byte alignment
0x555e299632e2: note: pointer points here
 00 00  1f 00 96 29 5e 55 00 00  c0 32 96 29 5e 55 00 00  02 02 00 00 03 02 00 00  04 02 00 00 05 02
              ^ 
codr7/rbnode.c:7:22: runtime error: store to misaligned address 0x555e299632fa for type 'struct c7_rbnode *', which requires 8 byte alignment
0x555e299632fa: note: pointer points here
 00 00  04 02 00 00 05 02 00 00  06 02 00 00 07 02 00 00  08 02 00 00 09 02 00 00  0a 02 00 00 0b 02
              ^ 
codr7/rbnode.c:7:9: runtime error: member access within misaligned address 0x555e299632e2 for type 'struct c7_rbnode', which requires 8 byte alignment
0x555e299632e2: note: pointer points here
 00 00  1f 00 96 29 5e 55 00 00  c0 32 96 29 5e 55 00 00  02 02 00 00 03 02 00 00  04 02 00 00 00 00
              ^ 
codr7/rbnode.c:7:9: runtime error: store to misaligned address 0x555e299632f2 for type 'struct c7_rbnode *', which requires 8 byte alignment
0x555e299632f2: note: pointer points here
 00 00  02 02 00 00 03 02 00 00  04 02 00 00 00 00 00 00  00 00 00 00 07 02 00 00  08 02 00 00 09 02
              ^ 
codr7/rbnode.c:8:9: runtime error: member access within misaligned address 0x555e299632e2 for type 'struct c7_rbnode', which requires 8 byte alignment
0x555e299632e2: note: pointer points here
 00 00  1f 00 96 29 5e 55 00 00  c0 32 96 29 5e 55 00 00  02 02 00 00 00 00 00 00  00 00 00 00 00 00
              ^ 
codr7/rbnode.c:8:9: runtime error: store to misaligned address 0x555e29963302 for type '_Bool', which requires 8 byte alignment
0x555e29963302: note: pointer points here
 00 00  00 00 00 00 07 02 00 00  08 02 00 00 09 02 00 00  0a 02 00 00 0b 02 00 00  0c 02 00 00 0d 02
              ^ 
codr7/rbnode.c:65:20: runtime error: member access within misaligned address 0x555e299632e2 for type 'struct c7_rbnode', which requires 8 byte alignment
0x555e299632e2: note: pointer points here
 00 00  1f 00 96 29 5e 55 00 00  c0 32 96 29 5e 55 00 00  02 02 00 00 00 00 00 00  00 00 00 00 00 00
              ^ 
codr7/rbtree.c:23:15: runtime error: member access within misaligned address 0x555e299632e2 for type 'struct c7_rbnode', which requires 8 byte alignment
0x555e299632e2: note: pointer points here
 00 00  1f 00 96 29 5e 55 00 00  c0 32 96 29 5e 55 00 00  02 02 00 00 00 00 00 00  00 00 00 00 00 00
              ^ 
codr7/rbtree.c:23:15: runtime error: store to misaligned address 0x555e29963302 for type 'bool', which requires 8 byte alignment
0x555e29963302: note: pointer points here
 00 00  00 00 01 00 07 02 00 00  08 02 00 00 09 02 00 00  0a 02 00 00 0b 02 00 00  0c 02 00 00 0d 02
              ^ 
tests.c:76:5: runtime error: store to misaligned address 0x555e29963303 for type 'int', which requires 4 byte alignment
0x555e29963303: note: pointer points here
 00  00 00 00 00 07 02 00 00  08 02 00 00 09 02 00 00  0a 02 00 00 0b 02 00 00  0c 02 00 00 0d 02 00
              ^ 
codr7/rbnode.c:69:27: runtime error: member access within misaligned address 0x555e299632e2 for type 'struct c7_rbnode', which requires 8 byte alignment
0x555e299632e2: note: pointer points here
 00 00  1f 00 96 29 5e 55 00 00  c0 32 96 29 5e 55 00 00  02 02 00 00 00 00 00 00  00 00 00 00 00 00
              ^ 
codr7/rbnode.c:69:27: runtime error: load of misaligned address 0x555e299632f2 for type 'struct c7_rbnode *', which requires 8 byte alignment
0x555e299632f2: note: pointer points here
 00 00  02 02 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 09 00 00 00 00  08 02 00 00 09 02
              ^ 
codr7/rbnode.c:73:36: runtime error: member access within misaligned address 0x555e299632e2 for type 'struct c7_rbnode', which requires 8 byte alignment
0x555e299632e2: note: pointer points here
 00 00  1f 00 96 29 5e 55 00 00  c0 32 96 29 5e 55 00 00  02 02 00 00 00 00 00 00  00 00 00 00 00 00
              ^ 
codr7/compare.c:5:34: runtime error: load of misaligned address 0x555e29963303 for type 'const int', which requires 4 byte alignment
0x555e29963303: note: pointer points here
 00  00 00 00 09 00 00 00 00  08 02 00 00 09 02 00 00  0a 02 00 00 0b 02 00 00  0c 02 00 00 0d 02 00
              ^ 
codr7/rbnode.c:75:38: runtime error: member access within misaligned address 0x555e299632e2 for type 'struct c7_rbnode', which requires 8 byte alignment
0x555e299632e2: note: pointer points here
 00 00  1f 00 96 29 5e 55 00 00  c0 32 96 29 5e 55 00 00  02 02 00 00 00 00 00 00  00 00 00 00 00 00
              ^ 
codr7/rbnode.c:75:38: runtime error: load of misaligned address 0x555e299632f2 for type 'struct c7_rbnode *', which requires 8 byte alignment
0x555e299632f2: note: pointer points here
 00 00  02 02 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 09 00 00 00 00  08 02 00 00 09 02
              ^ 
codr7/rbnode.c:75:11: runtime error: member access within misaligned address 0x555e299632e2 for type 'struct c7_rbnode', which requires 8 byte alignment
0x555e299632e2: note: pointer points here
 00 00  1e 00 96 29 5e 55 00 00  c0 32 96 29 5e 55 00 00  02 02 00 00 00 00 00 00  00 00 00 00 00 00
              ^ 
codr7/rbnode.c:75:11: runtime error: store to misaligned address 0x555e299632f2 for type 'struct c7_rbnode *', which requires 8 byte alignment
0x555e299632f2: note: pointer points here
 00 00  02 02 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 09 00 00 00 00  08 02 00 00 09 02
              ^ 
codr7/rbnode.c:84:27: runtime error: member access within misaligned address 0x555e299632e2 for type 'struct c7_rbnode', which requires 8 byte alignment
0x555e299632e2: note: pointer points here
 00 00  1e 00 96 29 5e 55 00 00  c0 32 96 29 5e 55 00 00  02 02 0e 33 96 29 5e 55  00 00 00 00 00 00
              ^ 
codr7/rbnode.c:84:27: runtime error: load of misaligned address 0x555e299632fa for type 'struct c7_rbnode *', which requires 8 byte alignment
0x555e299632fa: note: pointer points here
 5e 55  00 00 00 00 00 00 00 00  00 00 00 09 00 00 00 00  08 02 00 00 09 02 00 00  0a 02 00 00 0b 02
              ^ 
codr7/rbnode.c:88:27: runtime error: member access within misaligned address 0x555e299632e2 for type 'struct c7_rbnode', which requires 8 byte alignment
0x555e299632e2: note: pointer points here
 00 00  1e 00 96 29 5e 55 00 00  c0 32 96 29 5e 55 00 00  02 02 0e 33 96 29 5e 55  00 00 00 00 00 00
              ^ 
codr7/rbnode.c:88:27: runtime error: load of misaligned address 0x555e299632f2 for type 'struct c7_rbnode *', which requires 8 byte alignment
0x555e299632f2: note: pointer points here
 00 00  02 02 0e 33 96 29 5e 55  00 00 00 00 00 00 00 00  00 00 00 09 00 00 00 00  08 02 00 00 09 02
              ^ 
codr7/rbnode.c:37:24: runtime error: member access within misaligned address 0x555e2996330e for type 'struct c7_rbnode', which requires 8 byte alignment
0x555e2996330e: note: pointer points here
 00 00 09 02 00 00  0a 02 00 00 0b 02 00 00  0c 02 00 00 0d 02 00 00  00 00 00 00 00 00 00 00  00 00
             ^ 
codr7/rbnode.c:37:24: runtime error: load of misaligned address 0x555e2996332e for type '_Bool', which requires 8 byte alignment
0x555e2996332e: note: pointer points here
 00 00 00 00 01 00  12 02 00 00 13 02 00 00  14 02 00 00 15 02 00 00  16 02 00 00 17 02 00 00  18 02
             ^ 
codr7/rbnode.c:88:56: runtime error: member access within misaligned address 0x555e299632e2 for type 'struct c7_rbnode', which requires 8 byte alignment
0x555e299632e2: note: pointer points here
 00 00  1e 00 96 29 5e 55 00 00  c0 32 96 29 5e 55 00 00  02 02 0e 33 96 29 5e 55  00 00 00 00 00 00
              ^ 
codr7/rbnode.c:88:56: runtime error: load of misaligned address 0x555e299632f2 for type 'struct c7_rbnode *', which requires 8 byte alignment
0x555e299632f2: note: pointer points here
 00 00  02 02 0e 33 96 29 5e 55  00 00 00 00 00 00 00 00  00 00 00 09 00 00 00 00  08 02 00 00 09 02
              ^ 
codr7/rbnode.c:88:62: runtime error: member access within misaligned address 0x555e2996330e for type 'struct c7_rbnode', which requires 8 byte alignment
0x555e2996330e: note: pointer points here
 00 00 09 02 00 00  0a 02 00 00 0b 02 00 00  0c 02 00 00 0d 02 00 00  00 00 00 00 00 00 00 00  00 00
             ^ 
codr7/rbnode.c:88:62: runtime error: load of misaligned address 0x555e2996331e for type 'struct c7_rbnode *', which requires 8 byte alignment
0x555e2996331e: note: pointer points here
 00 00 0d 02 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 01 00  12 02 00 00 13 02 00 00  14 02
             ^ 
codr7/rbnode.c:69:56: runtime error: member access within misaligned address 0x555e299632e2 for type 'struct c7_rbnode', which requires 8 byte alignment
0x555e299632e2: note: pointer points here
 00 00  1e 00 96 29 5e 55 00 00  c0 32 96 29 5e 55 00 00  02 02 0e 33 96 29 5e 55  00 00 00 00 00 00
              ^ 
codr7/rbnode.c:69:56: runtime error: load of misaligned address 0x555e299632fa for type 'struct c7_rbnode *', which requires 8 byte alignment
0x555e299632fa: note: pointer points here
 5e 55  00 00 00 00 00 00 00 00  00 00 00 09 00 00 00 00  08 02 00 00 09 02 00 00  0a 02 00 00 0b 02
              ^ 
codr7/rbnode.c:78:39: runtime error: member access within misaligned address 0x555e2996330e for type 'struct c7_rbnode', which requires 8 byte alignment
0x555e2996330e: note: pointer points here
 00 00 09 02 00 00  0a 02 00 00 0b 02 00 00  0c 02 00 00 0d 02 00 00  00 00 00 00 00 00 00 00  00 00
             ^ 
codr7/rbnode.c:78:39: runtime error: load of misaligned address 0x555e29963326 for type 'struct c7_rbnode *', which requires 8 byte alignment
0x555e29963326: note: pointer points here
 00 00 00 00 00 00  00 00 00 00 00 00 01 01  00 00 00 00 13 02 00 00  14 02 00 00 15 02 00 00  16 02
             ^ 
codr7/rbnode.c:78:11: runtime error: member access within misaligned address 0x555e2996330e for type 'struct c7_rbnode', which requires 8 byte alignment
0x555e2996330e: note: pointer points here
 00 00 09 02 00 00  0a 02 00 00 0b 02 00 00  0c 02 00 00 0d 02 00 00  00 00 00 00 00 00 00 00  00 00
             ^ 
codr7/rbnode.c:78:11: runtime error: store to misaligned address 0x555e29963326 for type 'struct c7_rbnode *', which requires 8 byte alignment
0x555e29963326: note: pointer points here
 00 00 00 00 00 00  00 00 00 00 00 00 01 01  00 00 00 00 13 02 00 00  14 02 00 00 15 02 00 00  16 02
             ^ 
codr7/rbnode.c:84:58: runtime error: member access within misaligned address 0x555e2996330e for type 'struct c7_rbnode', which requires 8 byte alignment
0x555e2996330e: note: pointer points here
 00 00 09 02 00 00  0a 02 00 00 0b 02 00 00  0c 02 00 00 0d 02 00 00  00 00 00 00 00 00 3a 33  96 29
             ^ 
codr7/rbnode.c:84:58: runtime error: load of misaligned address 0x555e2996331e for type 'struct c7_rbnode *', which requires 8 byte alignment
0x555e2996331e: note: pointer points here
 00 00 0d 02 00 00  00 00 00 00 00 00 3a 33  96 29 5e 55 00 00 01 01  00 00 00 00 13 02 00 00  14 02
             ^ 
codr7/rbnode.c:19:31: runtime error: member access within misaligned address 0x555e2996330e for type 'struct c7_rbnode', which requires 8 byte alignment
0x555e2996330e: note: pointer points here
 00 00 09 02 00 00  0a 02 00 00 0b 02 00 00  0c 02 00 00 0d 02 00 00  00 00 00 00 00 00 3a 33  96 29
             ^ 
codr7/rbnode.c:19:31: runtime error: load of misaligned address 0x555e29963326 for type 'struct c7_rbnode *', which requires 8 byte alignment
0x555e29963326: note: pointer points here
 00 00 00 00 3a 33  96 29 5e 55 00 00 01 01  00 00 00 00 13 02 00 00  14 02 00 00 15 02 00 00  16 02
             ^ 
codr7/rbnode.c:20:20: runtime error: member access within misaligned address 0x555e2996333a for type 'struct c7_rbnode', which requires 8 byte alignment
0x555e2996333a: note: pointer points here
 00 00  14 02 00 00 15 02 00 00  16 02 00 00 17 02 00 00  18 02 00 00 00 00 00 00  00 00 00 00 00 00
              ^ 
codr7/rbnode.c:20:20: runtime error: load of misaligned address 0x555e2996334a for type 'struct c7_rbnode *', which requires 8 byte alignment
0x555e2996334a: note: pointer points here
 00 00  18 02 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 01 00 1d 02 00 00  1e 02 00 00 00 00
              ^ 
codr7/rbnode.c:20:9: runtime error: member access within misaligned address 0x555e2996330e for type 'struct c7_rbnode', which requires 8 byte alignment
0x555e2996330e: note: pointer points here
 00 00 09 02 00 00  0a 02 00 00 0b 02 00 00  0c 02 00 00 0d 02 00 00  00 00 00 00 00 00 3a 33  96 29
             ^ 
codr7/rbnode.c:20:9: runtime error: store to misaligned address 0x555e29963326 for type 'struct c7_rbnode *', which requires 8 byte alignment
0x555e29963326: note: pointer points here
 00 00 00 00 3a 33  96 29 5e 55 00 00 01 01  00 00 00 00 13 02 00 00  14 02 00 00 15 02 00 00  16 02
             ^ 
codr7/rbnode.c:21:6: runtime error: member access within misaligned address 0x555e2996333a for type 'struct c7_rbnode', which requires 8 byte alignment
0x555e2996333a: note: pointer points here
 00 00  14 02 00 00 15 02 00 00  16 02 00 00 17 02 00 00  18 02 00 00 00 00 00 00  00 00 00 00 00 00
              ^ 
codr7/rbnode.c:21:6: runtime error: store to misaligned address 0x555e2996334a for type 'struct c7_rbnode *', which requires 8 byte alignment
0x555e2996334a: note: pointer points here
 00 00  18 02 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 01 00 1d 02 00 00  1e 02 00 00 00 00
              ^ 
codr7/rbnode.c:22:18: runtime error: member access within misaligned address 0x555e2996330e for type 'struct c7_rbnode', which requires 8 byte alignment
0x555e2996330e: note: pointer points here
 00 00 09 02 00 00  0a 02 00 00 0b 02 00 00  0c 02 00 00 0d 02 00 00  00 00 00 00 00 00 00 00  00 00
             ^ 
codr7/rbnode.c:22:18: runtime error: load of misaligned address 0x555e2996332e for type '_Bool', which requires 8 byte alignment
0x555e2996332e: note: pointer points here
 00 00 00 00 01 01  00 00 00 00 13 02 00 00  14 02 00 00 15 02 00 00  16 02 00 00 17 02 00 00  18 02
             ^ 
codr7/rbnode.c:22:6: runtime error: member access within misaligned address 0x555e2996333a for type 'struct c7_rbnode', which requires 8 byte alignment
0x555e2996333a: note: pointer points here
 00 00  14 02 00 00 15 02 00 00  16 02 00 00 17 02 00 00  18 02 0e 33 96 29 5e 55  00 00 00 00 00 00
              ^ 
codr7/rbnode.c:22:6: runtime error: store to misaligned address 0x555e2996335a for type '_Bool', which requires 8 byte alignment
0x555e2996335a: note: pointer points here
 00 00  00 00 01 00 1d 02 00 00  1e 02 00 00 00 00 00 00  01 3b 01 00 00 00 00 00  40 ca c9 99 aa 7f
              ^ 
codr7/rbnode.c:23:9: runtime error: member access within misaligned address 0x555e2996330e for type 'struct c7_rbnode', which requires 8 byte alignment
0x555e2996330e: note: pointer points here
 00 00 09 02 00 00  0a 02 00 00 0b 02 00 00  0c 02 00 00 0d 02 00 00  00 00 00 00 00 00 00 00  00 00
             ^ 
codr7/rbnode.c:23:9: runtime error: store to misaligned address 0x555e2996332e for type '_Bool', which requires 8 byte alignment
0x555e2996332e: note: pointer points here
 00 00 00 00 01 01  00 00 00 00 13 02 00 00  14 02 00 00 15 02 00 00  16 02 00 00 17 02 00 00  18 02
             ^ 
codr7/rbnode.c:28:31: runtime error: member access within misaligned address 0x555e299632e2 for type 'struct c7_rbnode', which requires 8 byte alignment
0x555e299632e2: note: pointer points here
 00 00  1d 00 96 29 5e 55 00 00  c0 32 96 29 5e 55 00 00  02 02 3a 33 96 29 5e 55  00 00 00 00 00 00
              ^ 
codr7/rbnode.c:28:31: runtime error: load of misaligned address 0x555e299632f2 for type 'struct c7_rbnode *', which requires 8 byte alignment
0x555e299632f2: note: pointer points here
 00 00  02 02 3a 33 96 29 5e 55  00 00 00 00 00 00 00 00  00 00 00 09 00 00 00 00  08 02 00 00 09 02
              ^ 
codr7/rbnode.c:29:19: runtime error: member access within misaligned address 0x555e2996333a for type 'struct c7_rbnode', which requires 8 byte alignment
0x555e2996333a: note: pointer points here
 00 00  14 02 00 00 15 02 00 00  16 02 00 00 17 02 00 00  18 02 0e 33 96 29 5e 55  00 00 00 00 00 00
              ^ 
codr7/rbnode.c:29:19: runtime error: load of misaligned address 0x555e29963352 for type 'struct c7_rbnode *', which requires 8 byte alignment
0x555e29963352: note: pointer points here
 5e 55  00 00 00 00 00 00 00 00  00 00 01 00 1d 02 00 00  1e 02 00 00 00 00 00 00  01 3b 01 00 00 00
              ^ 
codr7/rbnode.c:29:9: runtime error: member access within misaligned address 0x555e299632e2 for type 'struct c7_rbnode', which requires 8 byte alignment
0x555e299632e2: note: pointer points here
 00 00  1d 00 96 29 5e 55 00 00  c0 32 96 29 5e 55 00 00  02 02 3a 33 96 29 5e 55  00 00 00 00 00 00
              ^ 
codr7/rbnode.c:29:9: runtime error: store to misaligned address 0x555e299632f2 for type 'struct c7_rbnode *', which requires 8 byte alignment
0x555e299632f2: note: pointer points here
 00 00  02 02 3a 33 96 29 5e 55  00 00 00 00 00 00 00 00  00 00 00 09 00 00 00 00  08 02 00 00 09 02
              ^ 
codr7/rbnode.c:30:6: runtime error: member access within misaligned address 0x555e2996333a for type 'struct c7_rbnode', which requires 8 byte alignment
0x555e2996333a: note: pointer points here
 00 00  14 02 00 00 15 02 00 00  16 02 00 00 17 02 00 00  18 02 0e 33 96 29 5e 55  00 00 00 00 00 00
              ^ 
codr7/rbnode.c:30:6: runtime error: store to misaligned address 0x555e29963352 for type 'struct c7_rbnode *', which requires 8 byte alignment
0x555e29963352: note: pointer points here
 5e 55  00 00 00 00 00 00 00 00  00 00 01 00 1d 02 00 00  1e 02 00 00 00 00 00 00  01 3b 01 00 00 00
              ^ 
codr7/rbnode.c:31:18: runtime error: member access within misaligned address 0x555e299632e2 for type 'struct c7_rbnode', which requires 8 byte alignment
0x555e299632e2: note: pointer points here
 00 00  1d 00 96 29 5e 55 00 00  c0 32 96 29 5e 55 00 00  02 02 00 00 00 00 00 00  00 00 00 00 00 00
              ^ 
codr7/rbnode.c:31:18: runtime error: load of misaligned address 0x555e29963302 for type '_Bool', which requires 8 byte alignment
0x555e29963302: note: pointer points here
 00 00  00 00 00 09 00 00 00 00  08 02 00 00 09 02 00 00  0a 02 00 00 0b 02 00 00  0c 02 00 00 0d 02
              ^ 
codr7/rbnode.c:31:6: runtime error: member access within misaligned address 0x555e2996333a for type 'struct c7_rbnode', which requires 8 byte alignment
0x555e2996333a: note: pointer points here
 00 00  14 02 00 00 15 02 00 00  16 02 00 00 17 02 00 00  18 02 0e 33 96 29 5e 55  00 00 e2 32 96 29
              ^ 
codr7/rbnode.c:31:6: runtime error: store to misaligned address 0x555e2996335a for type '_Bool', which requires 8 byte alignment
0x555e2996335a: note: pointer points here
 5e 55  00 00 01 00 1d 02 00 00  1e 02 00 00 00 00 00 00  01 3b 01 00 00 00 00 00  40 ca c9 99 aa 7f
              ^ 
codr7/rbnode.c:32:9: runtime error: member access within misaligned address 0x555e299632e2 for type 'struct c7_rbnode', which requires 8 byte alignment
0x555e299632e2: note: pointer points here
 00 00  1d 00 96 29 5e 55 00 00  c0 32 96 29 5e 55 00 00  02 02 00 00 00 00 00 00  00 00 00 00 00 00
              ^ 
codr7/rbnode.c:32:9: runtime error: store to misaligned address 0x555e29963302 for type '_Bool', which requires 8 byte alignment
0x555e29963302: note: pointer points here
 00 00  00 00 00 09 00 00 00 00  08 02 00 00 09 02 00 00  0a 02 00 00 0b 02 00 00  0c 02 00 00 0d 02
              ^ 
codr7/rbnode.c:13:22: runtime error: member access within misaligned address 0x555e2996333a for type 'struct c7_rbnode', which requires 8 byte alignment
0x555e2996333a: note: pointer points here
 00 00  14 02 00 00 15 02 00 00  16 02 00 00 17 02 00 00  18 02 0e 33 96 29 5e 55  00 00 e2 32 96 29
              ^ 
codr7/rbnode.c:13:22: runtime error: load of misaligned address 0x555e2996335a for type '_Bool', which requires 8 byte alignment
0x555e2996335a: note: pointer points here
 5e 55  00 00 00 02 00 00 00 00  1e 02 00 00 00 00 00 00  01 3b 01 00 00 00 00 00  40 ca c9 99 aa 7f
              ^ 
codr7/rbnode.c:13:9: runtime error: member access within misaligned address 0x555e2996333a for type 'struct c7_rbnode', which requires 8 byte alignment
0x555e2996333a: note: pointer points here
 00 00  14 02 00 00 15 02 00 00  16 02 00 00 17 02 00 00  18 02 0e 33 96 29 5e 55  00 00 e2 32 96 29
              ^ 
codr7/rbnode.c:13:9: runtime error: store to misaligned address 0x555e2996335a for type '_Bool', which requires 8 byte alignment
0x555e2996335a: note: pointer points here
 5e 55  00 00 00 02 00 00 00 00  1e 02 00 00 00 00 00 00  01 3b 01 00 00 00 00 00  40 ca c9 99 aa 7f
              ^ 
codr7/rbnode.c:14:28: runtime error: member access within misaligned address 0x555e2996333a for type 'struct c7_rbnode', which requires 8 byte alignment
0x555e2996333a: note: pointer points here
 00 00  14 02 00 00 15 02 00 00  16 02 00 00 17 02 00 00  18 02 0e 33 96 29 5e 55  00 00 e2 32 96 29
              ^ 
codr7/rbnode.c:14:28: runtime error: load of misaligned address 0x555e2996334a for type 'struct c7_rbnode *', which requires 8 byte alignment
0x555e2996334a: note: pointer points here
 00 00  18 02 0e 33 96 29 5e 55  00 00 e2 32 96 29 5e 55  00 00 01 02 00 00 00 00  1e 02 00 00 00 00
              ^ 
codr7/rbnode.c:14:34: runtime error: member access within misaligned address 0x555e2996330e for type 'struct c7_rbnode', which requires 8 byte alignment
0x555e2996330e: note: pointer points here
 00 00 09 02 00 00  0a 02 00 00 0b 02 00 00  0c 02 00 00 0d 02 00 00  00 00 00 00 00 00 00 00  00 00
             ^ 
codr7/rbnode.c:14:34: runtime error: load of misaligned address 0x555e2996332e for type '_Bool', which requires 8 byte alignment
0x555e2996332e: note: pointer points here
 00 00 00 00 01 01  00 00 00 00 13 02 00 00  14 02 00 00 15 02 00 00  16 02 00 00 17 02 00 00  18 02
             ^ 
codr7/rbnode.c:14:9: runtime error: member access within misaligned address 0x555e2996333a for type 'struct c7_rbnode', which requires 8 byte alignment
0x555e2996333a: note: pointer points here
 00 00  14 02 00 00 15 02 00 00  16 02 00 00 17 02 00 00  18 02 0e 33 96 29 5e 55  00 00 e2 32 96 29
              ^ 
codr7/rbnode.c:14:9: runtime error: load of misaligned address 0x555e2996334a for type 'struct c7_rbnode *', which requires 8 byte alignment
0x555e2996334a: note: pointer points here
 00 00  18 02 0e 33 96 29 5e 55  00 00 e2 32 96 29 5e 55  00 00 01 02 00 00 00 00  1e 02 00 00 00 00
              ^ 
codr7/rbnode.c:14:15: runtime error: member access within misaligned address 0x555e2996330e for type 'struct c7_rbnode', which requires 8 byte alignment
0x555e2996330e: note: pointer points here
 00 00 09 02 00 00  0a 02 00 00 0b 02 00 00  0c 02 00 00 0d 02 00 00  00 00 00 00 00 00 00 00  00 00
             ^ 
codr7/rbnode.c:14:15: runtime error: store to misaligned address 0x555e2996332e for type '_Bool', which requires 8 byte alignment
0x555e2996332e: note: pointer points here
 00 00 00 00 01 01  00 00 00 00 13 02 00 00  14 02 00 00 15 02 00 00  16 02 00 00 17 02 00 00  18 02
             ^ 
codr7/rbnode.c:15:29: runtime error: member access within misaligned address 0x555e2996333a for type 'struct c7_rbnode', which requires 8 byte alignment
0x555e2996333a: note: pointer points here
 00 00  14 02 00 00 15 02 00 00  16 02 00 00 17 02 00 00  18 02 0e 33 96 29 5e 55  00 00 e2 32 96 29
              ^ 
codr7/rbnode.c:15:29: runtime error: load of misaligned address 0x555e29963352 for type 'struct c7_rbnode *', which requires 8 byte alignment
0x555e29963352: note: pointer points here
 5e 55  00 00 e2 32 96 29 5e 55  00 00 01 02 00 00 00 00  1e 02 00 00 00 00 00 00  01 3b 01 00 00 00
              ^ 
codr7/rbnode.c:15:36: runtime error: member access within misaligned address 0x555e299632e2 for type 'struct c7_rbnode', which requires 8 byte alignment
0x555e299632e2: note: pointer points here
 00 00  1d 00 96 29 5e 55 00 00  c0 32 96 29 5e 55 00 00  02 02 00 00 00 00 00 00  00 00 00 00 00 00
              ^ 
codr7/rbnode.c:15:36: runtime error: load of misaligned address 0x555e29963302 for type '_Bool', which requires 8 byte alignment
0x555e29963302: note: pointer points here
 00 00  00 00 01 09 00 00 00 00  08 02 00 00 09 02 00 00  0a 02 00 00 0b 02 00 00  0c 02 00 00 0d 02
              ^ 
codr7/rbnode.c:15:9: runtime error: member access within misaligned address 0x555e2996333a for type 'struct c7_rbnode', which requires 8 byte alignment
0x555e2996333a: note: pointer points here
 00 00  14 02 00 00 15 02 00 00  16 02 00 00 17 02 00 00  18 02 0e 33 96 29 5e 55  00 00 e2 32 96 29
              ^ 
codr7/rbnode.c:15:9: runtime error: load of misaligned address 0x555e29963352 for type 'struct c7_rbnode *', which requires 8 byte alignment
0x555e29963352: note: pointer points here
 5e 55  00 00 e2 32 96 29 5e 55  00 00 01 02 00 00 00 00  1e 02 00 00 00 00 00 00  01 3b 01 00 00 00
              ^ 
codr7/rbnode.c:15:16: runtime error: member access within misaligned address 0x555e299632e2 for type 'struct c7_rbnode', which requires 8 byte alignment
0x555e299632e2: note: pointer points here
 00 00  1d 00 96 29 5e 55 00 00  c0 32 96 29 5e 55 00 00  02 02 00 00 00 00 00 00  00 00 00 00 00 00
              ^ 
codr7/rbnode.c:15:16: runtime error: store to misaligned address 0x555e29963302 for type '_Bool', which requires 8 byte alignment
0x555e29963302: note: pointer points here
 00 00  00 00 01 09 00 00 00 00  08 02 00 00 09 02 00 00  0a 02 00 00 0b 02 00 00  0c 02 00 00 0d 02
              ^ 
codr7/rbnode.c:44:38: runtime error: member access within misaligned address 0x555e29963392 for type 'struct c7_rbnode', which requires 8 byte alignment
0x555e29963392: note: pointer points here
 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 3a 33 96 29 5e 55  00 00 16 34 96 29
              ^ 
codr7/rbnode.c:49:20: runtime error: member access within misaligned address 0x555e29963392 for type 'struct c7_rbnode', which requires 8 byte alignment
0x555e29963392: note: pointer points here
 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 3a 33 96 29 5e 55  00 00 16 34 96 29
              ^ 
codr7/rbnode.c:49:20: runtime error: load of misaligned address 0x555e299633aa for type 'struct c7_rbnode *', which requires 8 byte alignment
0x555e299633aa: note: pointer points here
 5e 55  00 00 16 34 96 29 5e 55  00 00 00 05 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00
              ^ 
codr7/rbnode.c:52:20: runtime error: member access within misaligned address 0x555e299632e2 for type 'struct c7_rbnode', which requires 8 byte alignment
0x555e299632e2: note: pointer points here
 00 00  16 00 96 29 5e 55 00 00  c0 32 96 29 5e 55 00 00  02 02 42 34 96 29 5e 55  00 00 00 00 00 00
              ^ 
tests.c:81:5: runtime error: load of misaligned address 0x555e29963303 for type 'int', which requires 4 byte alignment
0x555e29963303: note: pointer points here
 00  00 00 00 09 00 00 00 00  08 02 00 00 09 02 00 00  0a 02 00 00 0b 02 00 00  0c 02 00 00 0d 02 6e
              ^ 
codr7/rbnode.c:46:20: runtime error: member access within misaligned address 0x555e29963392 for type 'struct c7_rbnode', which requires 8 byte alignment
0x555e29963392: note: pointer points here
 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 3a 33 96 29 5e 55  00 00 16 34 96 29
              ^ 
codr7/rbnode.c:46:20: runtime error: load of misaligned address 0x555e299633a2 for type 'struct c7_rbnode *', which requires 8 byte alignment
0x555e299633a2: note: pointer points here
 00 00  00 00 3a 33 96 29 5e 55  00 00 16 34 96 29 5e 55  00 00 00 05 00 00 00 00  00 00 00 00 00 00
              ^ 
codr7/rbnode.c:97:29: runtime error: member access within misaligned address 0x555e29963392 for type 'struct c7_rbnode', which requires 8 byte alignment
0x555e29963392: note: pointer points here
 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 3a 33 96 29 5e 55  00 00 16 34 96 29
              ^ 
codr7/rbnode.c:97:29: runtime error: load of misaligned address 0x555e299633a2 for type 'struct c7_rbnode *', which requires 8 byte alignment
0x555e299633a2: note: pointer points here
 00 00  00 00 3a 33 96 29 5e 55  00 00 16 34 96 29 5e 55  00 00 00 05 00 00 00 00  00 00 00 00 00 00
              ^ 
codr7/rbnode.c:98:14: runtime error: member access within misaligned address 0x555e2996346e for type 'struct c7_rbnode', which requires 8 byte alignment
0x555e2996346e: note: pointer points here
 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00
             ^ 
tests.c:60:3: runtime error: load of misaligned address 0x555e2996348f for type 'int', which requires 4 byte alignment
0x555e2996348f: note: pointer points here
 00 00 00 01 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  c1 39 01
             ^ 
codr7/rbnode.c:99:27: runtime error: member access within misaligned address 0x555e2996346e for type 'struct c7_rbnode', which requires 8 byte alignment
0x555e2996346e: note: pointer points here
 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00
             ^ 
codr7/rbnode.c:99:27: runtime error: load of misaligned address 0x555e29963486 for type 'struct c7_rbnode *', which requires 8 byte alignment
0x555e29963486: note: pointer points here
 00 00 00 00 00 00  00 00 00 00 00 00 01 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00
             ^ 

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.