libucontext icon indicating copy to clipboard operation
libucontext copied to clipboard

ucontext implementation featuring glibc-compatible ABI

Results 19 libucontext issues
Sort by recently updated
recently updated
newest added

The x86 calling convention requires the stack pointer to be aligned on a 16-byte boundary. Otherwise, code using SSE instructions on x86 in conjunction with libucontext will just crash. This...

x0 hast to be 0 in case setcontext is called with a context acquired by getcontext. Thus x0 must be stored in getcontext as 0.

Some architecture-specific implementations of the FETCH_LINKPTR macro (e.g. the one for x86) attempt to find the linkptr relative to the stack pointer. Therefore, they make assumption about the value of...

``` ncopa-edge-x86:~/aports/main/libucontext/src/libucontext-1.2$ make check env LD_LIBRARY_PATH=/home/ncopa/aports/main/libucontext/src/libucontext-1.2 ./test_libucontext_posix setting up context 1 setting up context 2 doing initial swapcontext start f2 swap to f1 start f1 checking provided arguments to function...

Finally i dived deeper into the code for ARM and refreshed my assembly knowledge and found a fix for #55 ("Aieie, swapcontext() failed ..."). The arm ABI defines that the...

Hello, I am currently working in integrating libucontext (v1.2 and not HEAD) into openwrt (v23.05) and compile the libmariadb c-connector against it. As openwrt uses musl libucontext is necessary to...

Add error checking test_libucontext and test_libucontext_posix to test return values of get/set/swapcontext. Modifications are inspired by the example program source in the linux man page of swapcontext

The copy for bits.h ran in parallel with the initial CC. sometimes on CI the build would fail as the file had not arrived by the time needed. Fix matches...

```assembly >0x60e1a0 mov (%rbx),%rdi │ │ 0x60e1a3 test %rdi,%rdi │ │ 0x60e1a6 je 0x60e1b0 │ │ 0x60e1a8 jmpq 0x60e1ba │ │ 0x60e1ad nopl (%rax) │ │ 0x60e1b0 sub $0x8,%rsp │...