Files
utun2/1
T
Evgeny 41626a02c3 Fix ll_queue callback signature and add debug utilities
Changes:
- ll_queue callback now receives only queue pointer and arg (no data)
- Added log_dump and addr_to_string utility functions
- Removed temporary backup files
- Updated AGENTS.md with additional guidelines
- Fixed compiler warnings in etcp.c and pkt_normalizer.c
2026-01-27 22:43:18 +03:00

557 lines
43 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
timeout: не удалось выполнить команду «./test_etcp_two_instances»: Нет такого файла или каталога
timeout: не удалось выполнить команду «./test_etcp_two_instances»: Нет такого файла или каталога
timeout: не удалось выполнить команду «./test_etcp_two_instances»: Нет такого файла или каталога
timeout: не удалось выполнить команду «./test_etcp_two_instances»: Нет такого файла или каталога
timeout: не удалось выполнить команду «./test_etcp_two_instances»: Нет такого файла или каталога
timeout: не удалось выполнить команду «./test_etcp_two_instances»: Нет такого файла или каталога
timeout: не удалось выполнить команду «./test_etcp_two_instances»: Нет такого файла или каталога
timeout: не удалось выполнить команду «./test_etcp_two_instances»: Нет такого файла или каталога
timeout: не удалось выполнить команду «./test_etcp_two_instances»: Нет такого файла или каталога
timeout: не удалось выполнить команду «./test_etcp_two_instances»: Нет такого файла или каталога
timeout: не удалось выполнить команду «./test_etcp_two_instances»: Нет такого файла или каталога
timeout: не удалось выполнить команду «./test_etcp_two_instances»: Нет такого файла или каталога
timeout: не удалось выполнить команду «./test_etcp_two_instances»: Нет такого файла или каталога
cc1: fatal error: test_ll_queue_fixed.c: Нет такого файла или каталога
compilation terminated.
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-linux-gnu/13/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none:amdgcn-amdhsa
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 13.3.0-6ubuntu2~24.04' --with-bugurl=file:///usr/share/doc/gcc-13/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++,m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-13 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/libexec --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-libstdcxx-backtrace --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --enable-cet --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-13-fG75Ri/gcc-13-13.3.0/debian/tmp-nvptx/usr,amdgcn-amdhsa=/build/gcc-13-fG75Ri/gcc-13-13.3.0/debian/tmp-gcn/usr --enable-offload-defaulted --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu --with-build-config=bootstrap-lto-lean --enable-link-serialization=2
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 13.3.0 (Ubuntu 13.3.0-6ubuntu2~24.04)
COLLECT_GCC_OPTIONS='-I' '/home/vnc1/proj/utun3/src' '-I' '/home/vnc1/proj/utun3/lib' '-I' '/home/vnc1/proj/utun3/tinycrypt/lib/include' '-I' '/home/vnc1/proj/utun3/tinycrypt/lib/source' '-g' '-O2' '-v' '-o' 'test_ll_queue_fixed' '-mtune=generic' '-march=x86-64' '-dumpdir' 'test_ll_queue_fixed-'
/usr/libexec/gcc/x86_64-linux-gnu/13/cc1 -quiet -v -I /home/vnc1/proj/utun3/src -I /home/vnc1/proj/utun3/lib -I /home/vnc1/proj/utun3/tinycrypt/lib/include -I /home/vnc1/proj/utun3/tinycrypt/lib/source -imultiarch x86_64-linux-gnu test_ll_queue_fixed.c -D_FORTIFY_SOURCE=3 -quiet -dumpdir test_ll_queue_fixed- -dumpbase test_ll_queue_fixed.c -dumpbase-ext .c -mtune=generic -march=x86-64 -g -O2 -version -fasynchronous-unwind-tables -fstack-protector-strong -Wformat -Wformat-security -fstack-clash-protection -fcf-protection -o /tmp/ccwoLaK6.s
GNU C17 (Ubuntu 13.3.0-6ubuntu2~24.04) version 13.3.0 (x86_64-linux-gnu)
compiled by GNU C version 13.3.0, GMP version 6.3.0, MPFR version 4.2.1, MPC version 1.3.1, isl version isl-0.26-GMP
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring nonexistent directory "/usr/local/include/x86_64-linux-gnu"
ignoring nonexistent directory "/usr/lib/gcc/x86_64-linux-gnu/13/include-fixed/x86_64-linux-gnu"
ignoring nonexistent directory "/usr/lib/gcc/x86_64-linux-gnu/13/include-fixed"
ignoring nonexistent directory "/usr/lib/gcc/x86_64-linux-gnu/13/../../../../x86_64-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
/home/vnc1/proj/utun3/src
/home/vnc1/proj/utun3/lib
/home/vnc1/proj/utun3/tinycrypt/lib/include
/home/vnc1/proj/utun3/tinycrypt/lib/source
/usr/lib/gcc/x86_64-linux-gnu/13/include
/usr/local/include
/usr/include/x86_64-linux-gnu
/usr/include
End of search list.
cc1: fatal error: test_ll_queue_fixed.c: Нет такого файла или каталога
compilation terminated.
malloc(): corrupted top size
timeout: отслеживаемая команда завершилась созданием дампа
timeout: не удалось выполнить команду «./test_ll_queue_updated»: Нет такого файла или каталога
cc1: fatal error: test_ll_queue_updated.c: Нет такого файла или каталога
compilation terminated.
cc1: fatal error: test_ll_queue_updated.c: Нет такого файла или каталога
compilation terminated.
cc1: fatal error: test_ll_queue_updated.c: Нет такого файла или каталога
compilation terminated.
malloc(): corrupted top size
timeout: отслеживаемая команда завершилась созданием дампа
malloc(): corrupted top size
timeout: отслеживаемая команда завершилась созданием дампа
timeout: отслеживаемая команда завершилась созданием дампа
../build-aux/test-driver: строка 112: 1176142 Ошибка сегментирования (образ памяти сброшен на диск) "$@" >> "$log_file" 2>&1
make[3]: *** [Makefile:1223: test-suite.log] Ошибка 1
make[2]: *** [Makefile:1331: check-TESTS] Ошибка 2
make[1]: *** [Makefile:1495: check-am] Ошибка 2
make: *** [Makefile:375: check-recursive] Ошибка 1
free(): double free detected in tcache 2
timeout: отслеживаемая команда завершилась созданием дампа
ar: модификатор «u» игнорируется, так как по умолчанию используется «D» (смотрите «U»)
utun_instance.c: In function ‘utun_instance_create’:
utun_instance.c:109:53: warning: ‘/32’ directive output may be truncated writing 3 bytes into a region of size between 1 and 64 [-Wformat-truncation=]
109 | snprintf(tun_ip_str, sizeof(tun_ip_str), "%s/32", ip_buffer);
| ^~~
In file included from /usr/include/stdio.h:980,
from utun_instance.h:6,
from utun_instance.c:2:
In function ‘snprintf’,
inlined from ‘utun_instance_create’ at utun_instance.c:109:9:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:54:10: note: ‘__builtin___snprintf_chk’ output between 4 and 67 bytes into a destination of size 64
54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
55 | __glibc_objsize (__s), __fmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
56 | __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~
In file included from config_parser.c:8:
config_parser.c: In function ‘parse_debug_categories’:
../lib/debug_config.h:42:36: warning: conversion from ‘long unsigned int’ to ‘uint32_t’ {aka ‘unsigned int’} changes value from ‘18446744073709551615’ to ‘4294967295’ [-Woverflow]
42 | #define DEBUG_CATEGORY_ALL (~((debug_category_t)0))
| ^
config_parser.c:38:29: note: in expansion of macro ‘DEBUG_CATEGORY_ALL’
38 | if (!value_copy) return DEBUG_CATEGORY_ALL; // Default to all on error
| ^~~~~~~~~~~~~~~~~~
../lib/debug_config.h:42:36: warning: conversion from ‘long unsigned int’ to ‘uint32_t’ {aka ‘unsigned int’} changes value from ‘18446744073709551615’ to ‘4294967295’ [-Woverflow]
42 | #define DEBUG_CATEGORY_ALL (~((debug_category_t)0))
| ^
config_parser.c:66:27: note: in expansion of macro ‘DEBUG_CATEGORY_ALL’
66 | categories |= DEBUG_CATEGORY_ALL;
| ^~~~~~~~~~~~~~~~~~
etcp.c: In function ‘etcp_connection_create’:
etcp.c:99:43: warning: passing argument 2 of ‘queue_set_callback’ from incompatible pointer type [-Wincompatible-pointer-types]
99 | queue_set_callback(etcp->input_queue, input_queue_cb, etcp);
| ^~~~~~~~~~~~~~
| |
| void (*)(struct ll_queue *, void *)
In file included from etcp.h:7,
from etcp.c:3:
../lib/ll_queue.h:83:63: note: expected ‘queue_callback_fn’ {aka ‘void (*)(struct ll_queue *, void *, void *)’} but argument is of type ‘void (*)(struct ll_queue *, void *)’
83 | void queue_set_callback(struct ll_queue* q, queue_callback_fn cbk_fn, void* arg);
| ~~~~~~~~~~~~~~~~~~^~~~~~
etcp.c:100:44: warning: passing argument 2 of ‘queue_set_callback’ from incompatible pointer type [-Wincompatible-pointer-types]
100 | queue_set_callback(etcp->input_send_q, input_send_q_cb, etcp);
| ^~~~~~~~~~~~~~~
| |
| void (*)(struct ll_queue *, void *)
../lib/ll_queue.h:83:63: note: expected ‘queue_callback_fn’ {aka ‘void (*)(struct ll_queue *, void *, void *)’} but argument is of type ‘void (*)(struct ll_queue *, void *)’
83 | void queue_set_callback(struct ll_queue* q, queue_callback_fn cbk_fn, void* arg);
| ~~~~~~~~~~~~~~~~~~^~~~~~
pkt_normalizer.c: In function ‘pkt_normalizer_send_service’:
pkt_normalizer.c:347:22: warning: initialization of ‘uint8_t *’ {aka ‘unsigned char *’} from incompatible pointer type ‘struct ll_entry *’ [-Wincompatible-pointer-types]
347 | uint8_t* d = (entry);
| ^
make[2]: *** Нет правила для сборки цели «test_ll_queue_working.c», требуемой для «test_ll_queue-test_ll_queue_working.o». Останов.
make[1]: *** [Makefile:1495: check-am] Ошибка 2
make: *** [Makefile:375: check-recursive] Ошибка 1
make[2]: *** Нет правила для сборки цели «test_ll_queue_working.c», требуемой для «test_ll_queue-test_ll_queue_working.o». Останов.
make[1]: *** [Makefile:1495: check-am] Ошибка 2
make: *** [Makefile:375: check-recursive] Ошибка 1
make[2]: *** Нет правила для сборки цели «test_ll_queue_working.c», требуемой для «test_ll_queue-test_ll_queue_working.o». Останов.
make[1]: *** [Makefile:1495: check-am] Ошибка 2
make: *** [Makefile:375: check-recursive] Ошибка 1
make[2]: *** Нет правила для сборки цели «test_ll_queue_new.c», требуемой для «test_ll_queue-test_ll_queue_new.o». Останов.
make[1]: *** [Makefile:1494: check-am] Ошибка 2
make: *** [Makefile:375: check-recursive] Ошибка 1
test_u_async_comprehensive.c: In function ‘test_concurrent_operations’:
test_u_async_comprehensive.c:428:13: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
428 | write(sockets[0], &data, 1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from test_debug_categories.c:8:
test_debug_categories.c: In function ‘main’:
../lib/debug_config.h:42:36: warning: overflow in conversion from ‘long unsigned int’ to ‘int’ changes value from ‘18446744073709551615’ to ‘-1’ [-Woverflow]
42 | #define DEBUG_CATEGORY_ALL (~((debug_category_t)0))
| ^
test_debug_categories.c:64:32: note: in expansion of macro ‘DEBUG_CATEGORY_ALL’
64 | debug_categories = DEBUG_CATEGORY_ALL;
| ^~~~~~~~~~~~~~~~~~
make[3]: *** [Makefile:1223: test-suite.log] Ошибка 1
make[2]: *** [Makefile:1331: check-TESTS] Ошибка 2
make[1]: *** [Makefile:1495: check-am] Ошибка 2
make: *** [Makefile:375: check-recursive] Ошибка 1
make[3]: *** [Makefile:1223: test-suite.log] Ошибка 1
make[2]: *** [Makefile:1331: check-TESTS] Ошибка 2
make[1]: *** [Makefile:1495: check-am] Ошибка 2
make: *** [Makefile:375: check-recursive] Ошибка 1
make[2]: *** Нет правила для сборки цели «test_ll_queue_new.c», требуемой для «test_ll_queue-test_ll_queue_new.o». Останов.
make[1]: *** [Makefile:1494: check-am] Ошибка 2
make: *** [Makefile:375: check-recursive] Ошибка 1
make[2]: *** Нет правила для сборки цели «test_ll_queue_new.c», требуемой для «test_ll_queue-test_ll_queue_new.o». Останов.
make[1]: *** [Makefile:1494: check-am] Ошибка 2
make: *** [Makefile:375: check-recursive] Ошибка 1
make[2]: *** Нет правила для сборки цели «test_ll_queue_new.c», требуемой для «test_ll_queue-test_ll_queue_new.o». Останов.
make[1]: *** [Makefile:1494: check-am] Ошибка 2
make: *** [Makefile:375: check-recursive] Ошибка 1
ar: модификатор «u» игнорируется, так как по умолчанию используется «D» (смотрите «U»)
utun_instance.c: In function ‘utun_instance_create’:
utun_instance.c:109:53: warning: ‘/32’ directive output may be truncated writing 3 bytes into a region of size between 1 and 64 [-Wformat-truncation=]
109 | snprintf(tun_ip_str, sizeof(tun_ip_str), "%s/32", ip_buffer);
| ^~~
In file included from /usr/include/stdio.h:980,
from utun_instance.h:6,
from utun_instance.c:2:
In function ‘snprintf’,
inlined from ‘utun_instance_create’ at utun_instance.c:109:9:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:54:10: note: ‘__builtin___snprintf_chk’ output between 4 and 67 bytes into a destination of size 64
54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
55 | __glibc_objsize (__s), __fmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
56 | __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~
In file included from config_parser.c:8:
config_parser.c: In function ‘parse_debug_categories’:
../lib/debug_config.h:42:36: warning: conversion from ‘long unsigned int’ to ‘uint32_t’ {aka ‘unsigned int’} changes value from ‘18446744073709551615’ to ‘4294967295’ [-Woverflow]
42 | #define DEBUG_CATEGORY_ALL (~((debug_category_t)0))
| ^
config_parser.c:38:29: note: in expansion of macro ‘DEBUG_CATEGORY_ALL’
38 | if (!value_copy) return DEBUG_CATEGORY_ALL; // Default to all on error
| ^~~~~~~~~~~~~~~~~~
../lib/debug_config.h:42:36: warning: conversion from ‘long unsigned int’ to ‘uint32_t’ {aka ‘unsigned int’} changes value from ‘18446744073709551615’ to ‘4294967295’ [-Woverflow]
42 | #define DEBUG_CATEGORY_ALL (~((debug_category_t)0))
| ^
config_parser.c:66:27: note: in expansion of macro ‘DEBUG_CATEGORY_ALL’
66 | categories |= DEBUG_CATEGORY_ALL;
| ^~~~~~~~~~~~~~~~~~
etcp.c: In function ‘etcp_connection_create’:
etcp.c:99:43: warning: passing argument 2 of ‘queue_set_callback’ from incompatible pointer type [-Wincompatible-pointer-types]
99 | queue_set_callback(etcp->input_queue, input_queue_cb, etcp);
| ^~~~~~~~~~~~~~
| |
| void (*)(struct ll_queue *, void *)
In file included from etcp.h:7,
from etcp.c:3:
../lib/ll_queue.h:83:63: note: expected ‘queue_callback_fn’ {aka ‘void (*)(struct ll_queue *, void *, void *)’} but argument is of type ‘void (*)(struct ll_queue *, void *)’
83 | void queue_set_callback(struct ll_queue* q, queue_callback_fn cbk_fn, void* arg);
| ~~~~~~~~~~~~~~~~~~^~~~~~
etcp.c:100:44: warning: passing argument 2 of ‘queue_set_callback’ from incompatible pointer type [-Wincompatible-pointer-types]
100 | queue_set_callback(etcp->input_send_q, input_send_q_cb, etcp);
| ^~~~~~~~~~~~~~~
| |
| void (*)(struct ll_queue *, void *)
../lib/ll_queue.h:83:63: note: expected ‘queue_callback_fn’ {aka ‘void (*)(struct ll_queue *, void *, void *)’} but argument is of type ‘void (*)(struct ll_queue *, void *)’
83 | void queue_set_callback(struct ll_queue* q, queue_callback_fn cbk_fn, void* arg);
| ~~~~~~~~~~~~~~~~~~^~~~~~
pkt_normalizer.c: In function ‘pkt_normalizer_send_service’:
pkt_normalizer.c:347:22: warning: initialization of ‘uint8_t *’ {aka ‘unsigned char *’} from incompatible pointer type ‘struct ll_entry *’ [-Wincompatible-pointer-types]
347 | uint8_t* d = (entry);
| ^
make[1]: *** [Makefile:375: all-recursive] Ошибка 1
make: *** [Makefile:316: all] Обрыв канала
make[2]: *** Нет правила для сборки цели «test_ll_queue_new.c», требуемой для «test_ll_queue-test_ll_queue_new.o». Останов.
make[1]: *** [Makefile:1494: check-am] Ошибка 2
make: *** [Makefile:375: check-recursive] Ошибка 1
make[2]: *** Нет правила для сборки цели «test_ll_queue_new.c», требуемой для «test_ll_queue-test_ll_queue_new.o». Останов.
make[1]: *** [Makefile:1494: check-am] Ошибка 2
make: *** [Makefile:375: check-recursive] Ошибка 1
make[2]: *** Нет правила для сборки цели «test_ll_queue_new.c», требуемой для «test_ll_queue-test_ll_queue_new.o». Останов.
make[1]: *** [Makefile:1494: check-am] Ошибка 2
make: *** [Makefile:375: check-recursive] Ошибка 1
ar: модификатор «u» игнорируется, так как по умолчанию используется «D» (смотрите «U»)
utun_instance.c: In function ‘utun_instance_create’:
utun_instance.c:109:53: warning: ‘/32’ directive output may be truncated writing 3 bytes into a region of size between 1 and 64 [-Wformat-truncation=]
109 | snprintf(tun_ip_str, sizeof(tun_ip_str), "%s/32", ip_buffer);
| ^~~
In file included from /usr/include/stdio.h:980,
from utun_instance.h:6,
from utun_instance.c:2:
In function ‘snprintf’,
inlined from ‘utun_instance_create’ at utun_instance.c:109:9:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:54:10: note: ‘__builtin___snprintf_chk’ output between 4 and 67 bytes into a destination of size 64
54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
55 | __glibc_objsize (__s), __fmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
56 | __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~
In file included from config_parser.c:8:
config_parser.c: In function ‘parse_debug_categories’:
../lib/debug_config.h:42:36: warning: conversion from ‘long unsigned int’ to ‘uint32_t’ {aka ‘unsigned int’} changes value from ‘18446744073709551615’ to ‘4294967295’ [-Woverflow]
42 | #define DEBUG_CATEGORY_ALL (~((debug_category_t)0))
| ^
config_parser.c:38:29: note: in expansion of macro ‘DEBUG_CATEGORY_ALL’
38 | if (!value_copy) return DEBUG_CATEGORY_ALL; // Default to all on error
| ^~~~~~~~~~~~~~~~~~
../lib/debug_config.h:42:36: warning: conversion from ‘long unsigned int’ to ‘uint32_t’ {aka ‘unsigned int’} changes value from ‘18446744073709551615’ to ‘4294967295’ [-Woverflow]
42 | #define DEBUG_CATEGORY_ALL (~((debug_category_t)0))
| ^
config_parser.c:66:27: note: in expansion of macro ‘DEBUG_CATEGORY_ALL’
66 | categories |= DEBUG_CATEGORY_ALL;
| ^~~~~~~~~~~~~~~~~~
etcp.c: In function ‘etcp_connection_create’:
etcp.c:99:43: warning: passing argument 2 of ‘queue_set_callback’ from incompatible pointer type [-Wincompatible-pointer-types]
99 | queue_set_callback(etcp->input_queue, input_queue_cb, etcp);
| ^~~~~~~~~~~~~~
| |
| void (*)(struct ll_queue *, void *)
In file included from etcp.h:7,
from etcp.c:3:
../lib/ll_queue.h:83:63: note: expected ‘queue_callback_fn’ {aka ‘void (*)(struct ll_queue *, void *, void *)’} but argument is of type ‘void (*)(struct ll_queue *, void *)’
83 | void queue_set_callback(struct ll_queue* q, queue_callback_fn cbk_fn, void* arg);
| ~~~~~~~~~~~~~~~~~~^~~~~~
etcp.c:100:44: warning: passing argument 2 of ‘queue_set_callback’ from incompatible pointer type [-Wincompatible-pointer-types]
100 | queue_set_callback(etcp->input_send_q, input_send_q_cb, etcp);
| ^~~~~~~~~~~~~~~
| |
| void (*)(struct ll_queue *, void *)
../lib/ll_queue.h:83:63: note: expected ‘queue_callback_fn’ {aka ‘void (*)(struct ll_queue *, void *, void *)’} but argument is of type ‘void (*)(struct ll_queue *, void *)’
83 | void queue_set_callback(struct ll_queue* q, queue_callback_fn cbk_fn, void* arg);
| ~~~~~~~~~~~~~~~~~~^~~~~~
pkt_normalizer.c: In function ‘pkt_normalizer_send_service’:
pkt_normalizer.c:347:22: warning: initialization of ‘uint8_t *’ {aka ‘unsigned char *’} from incompatible pointer type ‘struct ll_entry *’ [-Wincompatible-pointer-types]
347 | uint8_t* d = (entry);
| ^
test_ll_queue.c:20: warning: "DEBUG_CATEGORY_LL_QUEUE" redefined
20 | #define DEBUG_CATEGORY_LL_QUEUE 1
|
In file included from test_ll_queue.c:16:
../lib/debug_config.h:32: note: this is the location of the previous definition
32 | #define DEBUG_CATEGORY_LL_QUEUE ((debug_category_t)1 << 1) // ll_queue module
|
test_u_async_comprehensive.c: In function ‘test_concurrent_operations’:
test_u_async_comprehensive.c:428:13: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
428 | write(sockets[0], &data, 1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from test_debug_categories.c:8:
test_debug_categories.c: In function ‘main’:
../lib/debug_config.h:42:36: warning: overflow in conversion from ‘long unsigned int’ to ‘int’ changes value from ‘18446744073709551615’ to ‘-1’ [-Woverflow]
42 | #define DEBUG_CATEGORY_ALL (~((debug_category_t)0))
| ^
test_debug_categories.c:64:32: note: in expansion of macro ‘DEBUG_CATEGORY_ALL’
64 | debug_categories = DEBUG_CATEGORY_ALL;
| ^~~~~~~~~~~~~~~~~~
../build-aux/test-driver: строка 112: 1197495 Ошибка сегментирования (образ памяти сброшен на диск) "$@" >> "$log_file" 2>&1
make[3]: *** [Makefile:1223: test-suite.log] Ошибка 1
make[2]: *** [Makefile:1331: check-TESTS] Ошибка 2
make[1]: *** [Makefile:1495: check-am] Ошибка 2
make: *** [Makefile:375: check-recursive] Ошибка 1
ar: модификатор «u» игнорируется, так как по умолчанию используется «D» (смотрите «U»)
utun_instance.c: In function ‘utun_instance_create’:
utun_instance.c:109:53: warning: ‘/32’ directive output may be truncated writing 3 bytes into a region of size between 1 and 64 [-Wformat-truncation=]
109 | snprintf(tun_ip_str, sizeof(tun_ip_str), "%s/32", ip_buffer);
| ^~~
In file included from /usr/include/stdio.h:980,
from utun_instance.h:6,
from utun_instance.c:2:
In function ‘snprintf’,
inlined from ‘utun_instance_create’ at utun_instance.c:109:9:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:54:10: note: ‘__builtin___snprintf_chk’ output between 4 and 67 bytes into a destination of size 64
54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
55 | __glibc_objsize (__s), __fmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
56 | __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~
In file included from config_parser.c:8:
config_parser.c: In function ‘parse_debug_categories’:
../lib/debug_config.h:42:36: warning: conversion from ‘long unsigned int’ to ‘uint32_t’ {aka ‘unsigned int’} changes value from ‘18446744073709551615’ to ‘4294967295’ [-Woverflow]
42 | #define DEBUG_CATEGORY_ALL (~((debug_category_t)0))
| ^
config_parser.c:38:29: note: in expansion of macro ‘DEBUG_CATEGORY_ALL’
38 | if (!value_copy) return DEBUG_CATEGORY_ALL; // Default to all on error
| ^~~~~~~~~~~~~~~~~~
../lib/debug_config.h:42:36: warning: conversion from ‘long unsigned int’ to ‘uint32_t’ {aka ‘unsigned int’} changes value from ‘18446744073709551615’ to ‘4294967295’ [-Woverflow]
42 | #define DEBUG_CATEGORY_ALL (~((debug_category_t)0))
| ^
config_parser.c:66:27: note: in expansion of macro ‘DEBUG_CATEGORY_ALL’
66 | categories |= DEBUG_CATEGORY_ALL;
| ^~~~~~~~~~~~~~~~~~
etcp.c: In function ‘etcp_connection_create’:
etcp.c:99:43: warning: passing argument 2 of ‘queue_set_callback’ from incompatible pointer type [-Wincompatible-pointer-types]
99 | queue_set_callback(etcp->input_queue, input_queue_cb, etcp);
| ^~~~~~~~~~~~~~
| |
| void (*)(struct ll_queue *, void *)
In file included from etcp.h:7,
from etcp.c:3:
../lib/ll_queue.h:83:63: note: expected ‘queue_callback_fn’ {aka ‘void (*)(struct ll_queue *, void *, void *)’} but argument is of type ‘void (*)(struct ll_queue *, void *)’
83 | void queue_set_callback(struct ll_queue* q, queue_callback_fn cbk_fn, void* arg);
| ~~~~~~~~~~~~~~~~~~^~~~~~
etcp.c:100:44: warning: passing argument 2 of ‘queue_set_callback’ from incompatible pointer type [-Wincompatible-pointer-types]
100 | queue_set_callback(etcp->input_send_q, input_send_q_cb, etcp);
| ^~~~~~~~~~~~~~~
| |
| void (*)(struct ll_queue *, void *)
../lib/ll_queue.h:83:63: note: expected ‘queue_callback_fn’ {aka ‘void (*)(struct ll_queue *, void *, void *)’} but argument is of type ‘void (*)(struct ll_queue *, void *)’
83 | void queue_set_callback(struct ll_queue* q, queue_callback_fn cbk_fn, void* arg);
| ~~~~~~~~~~~~~~~~~~^~~~~~
pkt_normalizer.c: In function ‘pkt_normalizer_send_service’:
pkt_normalizer.c:347:22: warning: initialization of ‘uint8_t *’ {aka ‘unsigned char *’} from incompatible pointer type ‘struct ll_entry *’ [-Wincompatible-pointer-types]
347 | uint8_t* d = (entry);
| ^
test_ll_queue.c:20: warning: "DEBUG_CATEGORY_LL_QUEUE" redefined
20 | #define DEBUG_CATEGORY_LL_QUEUE 1
|
In file included from test_ll_queue.c:16:
../lib/debug_config.h:32: note: this is the location of the previous definition
32 | #define DEBUG_CATEGORY_LL_QUEUE ((debug_category_t)1 << 1) // ll_queue module
|
test_ll_queue.c: In function ‘test_memory_pool_integration’:
test_ll_queue.c:670:21: error: ‘entry_data3’ undeclared (first use in this function)
670 | queue_data_free(entry_data3);
| ^~~~~~~~~~~
test_ll_queue.c:670:21: note: each undeclared identifier is reported only once for each function it appears in
test_ll_queue.c: In function ‘test_edge_cases’:
test_ll_queue.c:719:21: error: ‘entry_retrieved’ undeclared (first use in this function)
719 | queue_data_free(entry_retrieved);
| ^~~~~~~~~~~~~~~
test_ll_queue.c: In function ‘test_memory_pool_vs_malloc_performance’:
test_ll_queue.c:1005:31: error: ‘entry_data’ undeclared (first use in this function)
1005 | queue_data_put(q, entry_data, data->id);
| ^~~~~~~~~~
make[2]: *** [Makefile:1086: test_ll_queue-test_ll_queue.o] Ошибка 1
make[1]: *** [Makefile:1494: check-am] Ошибка 2
make: *** [Makefile:375: check-recursive] Ошибка 1
test_ll_queue.c:20: warning: "DEBUG_CATEGORY_LL_QUEUE" redefined
20 | #define DEBUG_CATEGORY_LL_QUEUE 1
|
In file included from test_ll_queue.c:16:
../lib/debug_config.h:32: note: this is the location of the previous definition
32 | #define DEBUG_CATEGORY_LL_QUEUE ((debug_category_t)1 << 1) // ll_queue module
|
test_ll_queue.c: In function ‘test_memory_pool_integration’:
test_ll_queue.c:670:21: error: ‘entry_data3’ undeclared (first use in this function)
670 | queue_data_free(entry_data3);
| ^~~~~~~~~~~
test_ll_queue.c:670:21: note: each undeclared identifier is reported only once for each function it appears in
test_ll_queue.c: In function ‘test_edge_cases’:
test_ll_queue.c:719:21: error: ‘entry_retrieved’ undeclared (first use in this function)
719 | queue_data_free(entry_retrieved);
| ^~~~~~~~~~~~~~~
test_ll_queue.c: In function ‘test_memory_pool_vs_malloc_performance’:
test_ll_queue.c:1005:31: error: ‘entry_data’ undeclared (first use in this function)
1005 | queue_data_put(q, entry_data, data->id);
| ^~~~~~~~~~
make[2]: *** [Makefile:1086: test_ll_queue-test_ll_queue.o] Ошибка 1
make[1]: *** [Makefile:1494: check-am] Ошибка 2
make: *** [Makefile:375: check-recursive] Ошибка 1
test_ll_queue.c:20: warning: "DEBUG_CATEGORY_LL_QUEUE" redefined
20 | #define DEBUG_CATEGORY_LL_QUEUE 1
|
In file included from test_ll_queue.c:16:
../lib/debug_config.h:32: note: this is the location of the previous definition
32 | #define DEBUG_CATEGORY_LL_QUEUE ((debug_category_t)1 << 1) // ll_queue module
|
test_ll_queue.c: In function ‘test_memory_pool_integration’:
test_ll_queue.c:670:21: error: ‘entry_data3’ undeclared (first use in this function)
670 | queue_data_free(entry_data3);
| ^~~~~~~~~~~
test_ll_queue.c:670:21: note: each undeclared identifier is reported only once for each function it appears in
test_ll_queue.c: In function ‘test_edge_cases’:
test_ll_queue.c:719:21: error: ‘entry_retrieved’ undeclared (first use in this function)
719 | queue_data_free(entry_retrieved);
| ^~~~~~~~~~~~~~~
test_ll_queue.c: In function ‘test_memory_pool_vs_malloc_performance’:
test_ll_queue.c:1005:31: error: ‘entry_data’ undeclared (first use in this function)
1005 | queue_data_put(q, entry_data, data->id);
| ^~~~~~~~~~
make[2]: *** [Makefile:1086: test_ll_queue-test_ll_queue.o] Ошибка 1
make[1]: *** [Makefile:1494: check-am] Ошибка 2
make: *** [Makefile:375: check-recursive] Ошибка 1
ar: модификатор «u» игнорируется, так как по умолчанию используется «D» (смотрите «U»)
utun_instance.c: In function ‘utun_instance_create’:
utun_instance.c:109:53: warning: ‘/32’ directive output may be truncated writing 3 bytes into a region of size between 1 and 64 [-Wformat-truncation=]
109 | snprintf(tun_ip_str, sizeof(tun_ip_str), "%s/32", ip_buffer);
| ^~~
In file included from /usr/include/stdio.h:980,
from utun_instance.h:6,
from utun_instance.c:2:
In function ‘snprintf’,
inlined from ‘utun_instance_create’ at utun_instance.c:109:9:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:54:10: note: ‘__builtin___snprintf_chk’ output between 4 and 67 bytes into a destination of size 64
54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
55 | __glibc_objsize (__s), __fmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
56 | __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~
In file included from config_parser.c:8:
config_parser.c: In function ‘parse_debug_categories’:
../lib/debug_config.h:42:36: warning: conversion from ‘long unsigned int’ to ‘uint32_t’ {aka ‘unsigned int’} changes value from ‘18446744073709551615’ to ‘4294967295’ [-Woverflow]
42 | #define DEBUG_CATEGORY_ALL (~((debug_category_t)0))
| ^
config_parser.c:38:29: note: in expansion of macro ‘DEBUG_CATEGORY_ALL’
38 | if (!value_copy) return DEBUG_CATEGORY_ALL; // Default to all on error
| ^~~~~~~~~~~~~~~~~~
../lib/debug_config.h:42:36: warning: conversion from ‘long unsigned int’ to ‘uint32_t’ {aka ‘unsigned int’} changes value from ‘18446744073709551615’ to ‘4294967295’ [-Woverflow]
42 | #define DEBUG_CATEGORY_ALL (~((debug_category_t)0))
| ^
config_parser.c:66:27: note: in expansion of macro ‘DEBUG_CATEGORY_ALL’
66 | categories |= DEBUG_CATEGORY_ALL;
| ^~~~~~~~~~~~~~~~~~
etcp.c: In function ‘etcp_connection_create’:
etcp.c:99:43: warning: passing argument 2 of ‘queue_set_callback’ from incompatible pointer type [-Wincompatible-pointer-types]
99 | queue_set_callback(etcp->input_queue, input_queue_cb, etcp);
| ^~~~~~~~~~~~~~
| |
| void (*)(struct ll_queue *, void *)
In file included from etcp.h:7,
from etcp.c:3:
../lib/ll_queue.h:83:63: note: expected ‘queue_callback_fn’ {aka ‘void (*)(struct ll_queue *, void *, void *)’} but argument is of type ‘void (*)(struct ll_queue *, void *)’
83 | void queue_set_callback(struct ll_queue* q, queue_callback_fn cbk_fn, void* arg);
| ~~~~~~~~~~~~~~~~~~^~~~~~
etcp.c:100:44: warning: passing argument 2 of ‘queue_set_callback’ from incompatible pointer type [-Wincompatible-pointer-types]
100 | queue_set_callback(etcp->input_send_q, input_send_q_cb, etcp);
| ^~~~~~~~~~~~~~~
| |
| void (*)(struct ll_queue *, void *)
../lib/ll_queue.h:83:63: note: expected ‘queue_callback_fn’ {aka ‘void (*)(struct ll_queue *, void *, void *)’} but argument is of type ‘void (*)(struct ll_queue *, void *)’
83 | void queue_set_callback(struct ll_queue* q, queue_callback_fn cbk_fn, void* arg);
| ~~~~~~~~~~~~~~~~~~^~~~~~
pkt_normalizer.c: In function ‘pkt_normalizer_send_service’:
pkt_normalizer.c:347:22: warning: initialization of ‘uint8_t *’ {aka ‘unsigned char *’} from incompatible pointer type ‘struct ll_entry *’ [-Wincompatible-pointer-types]
347 | uint8_t* d = (entry);
| ^
test_ll_queue.c:20: warning: "DEBUG_CATEGORY_LL_QUEUE" redefined
20 | #define DEBUG_CATEGORY_LL_QUEUE 1
|
In file included from test_ll_queue.c:16:
../lib/debug_config.h:32: note: this is the location of the previous definition
32 | #define DEBUG_CATEGORY_LL_QUEUE ((debug_category_t)1 << 1) // ll_queue module
|
test_ll_queue.c: In function ‘test_memory_pool_integration’:
test_ll_queue.c:670:21: error: ‘entry_data3’ undeclared (first use in this function)
670 | queue_data_free(entry_data3);
| ^~~~~~~~~~~
test_ll_queue.c:670:21: note: each undeclared identifier is reported only once for each function it appears in
test_ll_queue.c: In function ‘test_edge_cases’:
test_ll_queue.c:719:21: error: ‘entry_retrieved’ undeclared (first use in this function)
719 | queue_data_free(entry_retrieved);
| ^~~~~~~~~~~~~~~
test_ll_queue.c: In function ‘test_memory_pool_vs_malloc_performance’:
test_ll_queue.c:1005:31: error: ‘entry_data’ undeclared (first use in this function)
1005 | queue_data_put(q, entry_data, data->id);
| ^~~~~~~~~~
make[2]: *** [Makefile:1086: test_ll_queue-test_ll_queue.o] Ошибка 1
make[1]: *** [Makefile:1494: check-am] Ошибка 2
make: *** [Makefile:375: check-recursive] Ошибка 1
test_ll_queue.c:20: warning: "DEBUG_CATEGORY_LL_QUEUE" redefined
20 | #define DEBUG_CATEGORY_LL_QUEUE 1
|
In file included from test_ll_queue.c:16:
../lib/debug_config.h:32: note: this is the location of the previous definition
32 | #define DEBUG_CATEGORY_LL_QUEUE ((debug_category_t)1 << 1) // ll_queue module
|
test_u_async_comprehensive.c: In function ‘test_concurrent_operations’:
test_u_async_comprehensive.c:428:13: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
428 | write(sockets[0], &data, 1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from test_debug_categories.c:8:
test_debug_categories.c: In function ‘main’:
../lib/debug_config.h:42:36: warning: overflow in conversion from ‘long unsigned int’ to ‘int’ changes value from ‘18446744073709551615’ to ‘-1’ [-Woverflow]
42 | #define DEBUG_CATEGORY_ALL (~((debug_category_t)0))
| ^
test_debug_categories.c:64:32: note: in expansion of macro ‘DEBUG_CATEGORY_ALL’
64 | debug_categories = DEBUG_CATEGORY_ALL;
| ^~~~~~~~~~~~~~~~~~
../build-aux/test-driver: строка 112: 1203433 Ошибка сегментирования (образ памяти сброшен на диск) "$@" >> "$log_file" 2>&1
make[3]: *** [Makefile:1223: test-suite.log] Ошибка 1
make[2]: *** [Makefile:1331: check-TESTS] Ошибка 2
make[1]: *** [Makefile:1495: check-am] Ошибка 2
make: *** [Makefile:375: check-recursive] Ошибка 1
test_ll_queue.c:20: warning: "DEBUG_CATEGORY_LL_QUEUE" redefined
20 | #define DEBUG_CATEGORY_LL_QUEUE 1
|
In file included from test_ll_queue.c:16:
../lib/debug_config.h:32: note: this is the location of the previous definition
32 | #define DEBUG_CATEGORY_LL_QUEUE ((debug_category_t)1 << 1) // ll_queue module
|
../build-aux/test-driver: строка 112: 1203954 Ошибка сегментирования (образ памяти сброшен на диск) "$@" >> "$log_file" 2>&1
make[3]: *** [Makefile:1223: test-suite.log] Ошибка 1
make[2]: *** [Makefile:1331: check-TESTS] Ошибка 2
make[1]: *** [Makefile:1495: check-am] Ошибка 2
make: *** [Makefile:375: check-recursive] Ошибка 1
make: *** Нет правила для сборки цели «test_ll_queue». Останов.
make: *** Нет правила для сборки цели «test_ll_queue». Останов.
make: *** Нет правила для сборки цели «test_ll_queue». Останов.
/usr/bin/ld: невозможно найти ../lib/libuasync.a: Нет такого файла или каталога
collect2: error: ld returned 1 exit status
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/13/../../../x86_64-linux-gnu/Scrt1.o: в функции «_start»:
(.text+0x1b): undefined reference to `main'
collect2: error: ld returned 1 exit status
timeout: не удалось выполнить команду «./test_ll_queue»: Нет такого файла или каталога
timeout: не удалось выполнить команду «./test_ll_queue»: Нет такого файла или каталога
timeout: не удалось выполнить команду «./test_ll_queue»: Нет такого файла или каталога
/usr/bin/ld: невозможно найти ../lib/libuasync.a: Нет такого файла или каталога
collect2: error: ld returned 1 exit status