Vec
.drain_keep_rest
now it seems/var/tmp/portage/games-action/ddnet-18.1/work/ddnet-18.1/src/engine/external/json-parser/json.c: In function ‘new_value’:
/var/tmp/portage/games-action/ddnet-18.1/work/ddnet-18.1/src/engine/external/json-parser/json.c:140:45: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
140 | value->_reserved.object_mem = (*(char **) &value->u.object.values) + values_size;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/tmp/portage/games-action/ddnet-18.1/work/ddnet-18.1/src/engine/external/json-parser/json.c: In function ‘json_parse_ex’:
/var/tmp/portage/games-action/ddnet-18.1/work/ddnet-18.1/src/engine/external/json-parser/json.c:402:27: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
402 | (*(json_char **) &top->u.object.values) += string_length + 1;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
[24/304] /usr/lib/ccache/bin/x86_64-pc-linux-gnu-g++ -DCONF_INFORM_UPDATE -DCONF_OPENSSL -DCONF_VIDEORECORDER -DGAME_RELEASE_VERSION=\"18.1\" -DGLEW_STATIC -I/var/tmp/portage/games-action/ddnet-18.1/work/ddnet-18.1_build/src -I/var/tmp/portage/games-action/ddnet-18.1/work/ddnet-18.1/src -I/var/tmp/portage/games-action/ddnet-18.1/work/ddnet-18.1/src/rust-bridge -O2 -pipe -march=native -mtune=native -flto=8 -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -std=c++17 -fdiagnostics-color=always -fno-exceptions -Wall -Wextra -Wno-psabi -Wno-unused-parameter -Wno-missing-field-initializers -Wformat=2 -Wno-nullability-completeness -Wduplicated-cond -Wduplicated-branches -Wlogical-op -Wrestrict -Wshadow=global -Wsuggest-override -Wclass-memaccess -MD -MT CMakeFiles/game-shared.dir/src/game/gamecore.cpp.o -MF CMakeFiles/game-shared.dir/src/game/gamecore.cpp.o.d -o CMakeFiles/game-shared.dir/src/game/gamecore.cpp.o -c /var/tmp/portage/games-action/ddnet-18.1/work/ddnet-18.1/src/game/gamecore.cpp
ninja: build stopped: subcommand failed.
* ERROR: games-action/ddnet-18.1::guru failed (compile phase):
* ninja -v -j16 -l0 failed
*
* Call stack:
* ebuild.sh, line 136: Called src_compile
* environment, line 3365: Called cmake_src_compile
* environment, line 1655: Called cmake_build
* environment, line 1622: Called eninja
* environment, line 2093: Called die
* The specific snippet of code:
* "$@" || die -n "${*} failed"
*
* If you need support, post the output of `emerge --info '=games-action/ddnet-18.1::guru'`,
* the complete build log and the output of `emerge -pqv '=games-action/ddnet-18.1::guru'`.
* The complete build log is located at '/var/tmp/portage/games-action/ddnet-18.1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/games-action/ddnet-18.1/temp/environment'.
* Working directory: '/var/tmp/portage/games-action/ddnet-18.1/work/ddnet-18.1_build'
* S: '/var/tmp/portage/games-action/ddnet-18.1/work/ddnet-18.1'
/var/tmp/portage/games-action/ddnet-18.1/work/ddnet-18.1/src/engine/external/json-parser/json.c: In function ‘new_value’:
/var/tmp/portage/games-action/ddnet-18.1/work/ddnet-18.1/src/engine/external/json-parser/json.c:140:45: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
140 | value->_reserved.object_mem = (*(char **) &value->u.object.values) + values_size;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/tmp/portage/games-action/ddnet-18.1/work/ddnet-18.1/src/engine/external/json-parser/json.c: In function ‘json_parse_ex’:
/var/tmp/portage/games-action/ddnet-18.1/work/ddnet-18.1/src/engine/external/json-parser/json.c:402:27: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
402 | (*(json_char **) &top->u.object.values) += string_length + 1;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
[24/304] /usr/lib/ccache/bin/x86_64-pc-linux-gnu-g++ -DCONF_INFORM_UPDATE -DCONF_OPENSSL -DCONF_VIDEORECORDER -DGAME_RELEASE_VERSION=\"18.1\" -DGLEW_STATIC -I/var/tmp/portage/games-action/ddnet-18.1/work/ddnet-18.1_build/src -I/var/tmp/portage/games-action/ddnet-18.1/work/ddnet-18.1/src -I/var/tmp/portage/games-action/ddnet-18.1/work/ddnet-18.1/src/rust-bridge -O2 -pipe -march=native -mtune=native -flto=8 -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -std=c++17 -fdiagnostics-color=always -fno-exceptions -Wall -Wextra -Wno-psabi -Wno-unused-parameter -Wno-missing-field-initializers -Wformat=2 -Wno-nullability-completeness -Wduplicated-cond -Wduplicated-branches -Wlogical-op -Wrestrict -Wshadow=global -Wsuggest-override -Wclass-memaccess -MD -MT CMakeFiles/game-shared.dir/src/game/gamecore.cpp.o -MF CMakeFiles/game-shared.dir/src/game/gamecore.cpp.o.d -o CMakeFiles/game-shared.dir/src/game/gamecore.cpp.o -c /var/tmp/portage/games-action/ddnet-18.1/work/ddnet-18.1/src/game/gamecore.cpp
ninja: build stopped: subcommand failed.
* ERROR: games-action/ddnet-18.1::guru failed (compile phase):
* ninja -v -j16 -l0 failed
*
* Call stack:
* ebuild.sh, line 136: Called src_compile
* environment, line 3365: Called cmake_src_compile
* environment, line 1655: Called cmake_build
* environment, line 1622: Called eninja
* environment, line 2093: Called die
* The specific snippet of code:
* "$@" || die -n "${*} failed"
*
* If you need support, post the output of `emerge --info '=games-action/ddnet-18.1::guru'`,
* the complete build log and the output of `emerge -pqv '=games-action/ddnet-18.1::guru'`.
* The complete build log is located at '/var/tmp/portage/games-action/ddnet-18.1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/games-action/ddnet-18.1/temp/environment'.
* Working directory: '/var/tmp/portage/games-action/ddnet-18.1/work/ddnet-18.1_build'
* S: '/var/tmp/portage/games-action/ddnet-18.1/work/ddnet-18.1'
CMake Warning (dev) at cmake/FindMySQL.cmake:7 (exec_program):
Policy CMP0153 is not set: The exec_program command should not be called.
Run "cmake --help-policy CMP0153" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
Use execute_process() instead.
Call Stack (most recent call first):
CMakeLists.txt:511 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at cmake/FindMySQL.cmake:16 (exec_program):
Policy CMP0153 is not set: The exec_program command should not be called.
Run "cmake --help-policy CMP0153" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
Use execute_process() instead.
Call Stack (most recent call first):
CMakeLists.txt:511 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.
execute_process
if our minimum cmake version is a 3.xx nowadaysddnet on master [$⇡] via △ v3.28.3 via 🦀 v1.76.0
❯ /usr/lib/ccache/bin/x86_64-pc-linux-gnu-gcc --version
x86_64-pc-linux-gnu-gcc (Gentoo 13.2.1_p20240210 p14) 13.2.1 20240210
Copyright (C) 2023 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
ddnet on master [$⇡] via △ v3.28.3 via 🦀 v1.76.0
❯ /usr/lib/ccache/bin/c++ --version
c++ (Gentoo 13.2.1_p20240210 p14) 13.2.1 20240210
Copyright (C) 2023 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
local mycmakeargs=(
-DANTIBOT=$(usex antibot ON OFF)
-DAUTOUPDATE=$(usex autoupdate ON OFF)
-DCLIENT=$(usex client ON OFF)
-DDOWNLOAD_GTEST=$(usex download-gtest ON OFF)
-DHEADLESS_CLIENT=$(usex headless-client ON OFF)
-DINFORM_UPDATE=$(usex inform-update ON OFF)
-DSERVER=$(usex server ON OFF)
-DTOOLS=$(usex tools ON OFF)
-DUPNP=$(usex upnp ON OFF)
-DVIDEORECORDER=$(usex videorecorder ON OFF)
-DVULKAN=$(usex vulkan ON OFF)
-DWEBSOCKETS=$(usex websockets ON OFF)
-DSECURITY_COMPILER_FLAGS=OFF # Set by gentoo toolchain, see https://bugs.gentoo.org/888875
)
#!/bin/bash
rm -rf build/*
cmake -S . -B build/ \
-DCMAKE_BUILD_TYPE=Debug \
-GNinja \
-DVULKAN=ON \
-DDEV=ON \
-DMYSQL=ON \
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON
#-DDEV=ON \
ln -f -s build/compile_commands.json compile_commands.json
windows detected, opinion rejected
tokio::net::windows::named_pipe
or do i use the winapi interprocess::os::windows::named_pipe
there is also interprocess::os::windows::named_pipe::tokio
(edited) tokio::net::windows::named_pipe
or do i use the winapi interprocess::os::windows::named_pipe
there is also interprocess::os::windows::named_pipe::tokio
(edited).insertAdjacentElement()
completed when i wanted .insertAdjacentHTML()
and went with it because tldr1.: Adjust Shadow Mask Settings: If the shadow mask is not correctly applying to the shadow, you might need to adjust its settings. This could involve changing the mask's opacity, feathering, or the mask's shape to better fit the shadow's area.
2.: Use a Different Masking Technique: If the shadow mask is not working as expected, consider using a different masking technique. For example, if you're using a layer mask, try using a clipping mask instead, or vice versa.
3.: Reapply the Shadow Effect: Sometimes, simply reapplying the shadow effect to the object can resolve issues with the shadow mask. Make sure to apply the shadow effect after the shadow mask has been correctly set up.
c++
//Thread 1
x.store(1, seq_cst);
y.store(1, release);
//Thread 2
r1 = y.fetch_add(1, seq_cst);
r2 = y.load(relaxed);
//Thread 3
y.store(3, seq_cst);
r3 = x.load(seq_cst);
Have any of you seen this absurd interaction before? This is allowed to produce r1 == 1 && r2 == 3 && r3 == 0
c++
//Thread 1
x.store(1, seq_cst);
y.store(1, release);
//Thread 2
r1 = y.fetch_add(1, seq_cst);
r2 = y.load(relaxed);
//Thread 3
y.store(3, seq_cst);
r3 = x.load(seq_cst);
Have any of you seen this absurd interaction before? This is allowed to produce r1 == 1 && r2 == 3 && r3 == 0
In the next post we will continue in this vein and show you the equally satisfying techniques to steal candy from a baby.
Core was generated by
./DDRace64-Server_sql -f servers/block2.cfg'.
Program terminated with signal SIGABRT, Aborted.
#0 pthread_kill_implementation (threadid=, signo=signo@entry=6, no_tid=no_tid@entry=0)
at ./nptl/pthread_kill.c:44
44 ./nptl/pthread_kill.c: No such file or directory.
[Current thread is 1 (Thread 0x7f00d9ffb6c0 (LWP 1519114))]
(gdb) bt
#0 pthread_kill_implementation (threadid=, signo=signo@entry=6, no_tid=no_tid@entry=0)
...implement me a ringbuffer with 2 index variables, make it properly cache aligned
implement me a ringbuffer with 2 index variables, make it properly cache aligned