Closed razvand closed 7 months ago
Starting a simple PHP 8.2 HTTP server (PR #24 ) doesn't provide a running network connection connection. Use the following commands to replicate:
wget https://raw.githubusercontent.com/unikraft/catalog-for-maintainers/main/utils/start-buildkit.sh source start-buildkit.sh git clone https://github.com/unikraft/catalog cd catalog git remote add unikraft-upb https://github.com/unikraft-upb/catalog git fetch unikraft-upb git checkout -b razvand/library/php unikraft-upb/razvand/library/php cd library/php/8.2 sed -i "s/# CONFIG_LIBSYSCALL_SHIM_STRACE: 'y'/CONFIG_LIBSYSCALL_SHIM_STRACE: 'y'/" Kraftfile kraft build --no-cache --no-update --plat qemu --arch x86_64 kraft rm --all ; kraft run --rm --log-type basic --log-level debug -M 512M -p 8080:8080 .
The output message is:
mmap(NULL, 331776, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, fd:-1, 0) = va:0x1004953000 munmap(va:0x10048fa000) = OK prlimit64(0x0, 0x3, ...) = 0x0 brk(va:0x410200000) = va:0x4101df000 mmap(NULL, 1048576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, fd:-1, 0) = va:0x1004c00000 getpid() = pid:1 openat(AT_FDCWD, "/usr/src/server.php", O_RDONLY) = fd:3 time(0x0, 0x1, ...) = 0x65e62da0 newfstatat(0xffffff9c, 0x404e7c850, ...) = 0x0 newfstatat(0xffffff9c, 0x404e7c850, ...) = 0x0 newfstatat(0xffffff9c, 0x404e7c850, ...) = 0x0 rt_sigaction(0x1b, 0x0, ...) = 0x0 rt_sigaction(0x1b, 0x404e7e590, ...) = 0x0 rt_sigaction(0x1, 0x0, ...) = 0x0 rt_sigaction(0x1, 0x404e7e590, ...) = 0x0 rt_sigaction(0x2, 0x0, ...) = 0x0 rt_sigaction(0x2, 0x404e7e590, ...) = 0x0 rt_sigaction(0x3, 0x0, ...) = 0x0 rt_sigaction(0x3, 0x404e7e590, ...) = 0x0 rt_sigaction(0xf, 0x0, ...) = 0x0 rt_sigaction(0xf, 0x404e7e590, ...) = 0x0 rt_sigaction(0xa, 0x0, ...) = 0x0 rt_sigaction(0xa, 0x404e7e590, ...) = 0x0 rt_sigaction(0xc, 0x0, ...) = 0x0 rt_sigaction(0xc, 0x404e7e590, ...) = 0x0 rt_sigaction(0x1b, 0x404e7e430, ...) = 0x0 rt_sigprocmask(0x1, 0x404e7e580, ...) = 0x0 gettimeofday(0x404e7e820, 0x0, ...) = 0x0 newfstatat(0x0, 0x1000cb8dd5, ...) = 0x0 newfstatat(0x0, 0x1000cb8dd5, ...) = 0x0 newfstatat(0x1, 0x1000cb8dd5, ...) = 0x0 newfstatat(0x1, 0x1000cb8dd5, ...) = 0x0 newfstatat(0x2, 0x1000cb8dd5, ...) = 0x0 newfstatat(0x2, 0x1000cb8dd5, ...) = 0x0 time(0x0, 0x1, ...) = 0x65e62da0 ioctl(0x3, 0x5401, ...) = Inappropriate ioctl for device (-25) newfstatat(0x3, 0x1000cb8dd5, ...) = 0x0 newfstatat(0x3, 0x1000cb8dd5, ...) = 0x0 read(fd:3, <out>"#!/usr/local/bin/php -q\x0A"..., 1024) = 1024 read(fd:3, <out>"\x0A "Content-Length"..., 512) = 232 socket(AF_INET, SOCK_STREAM, 6) = fd:4 bind(fd:4, va:0x404e7c3e0, 16) = OK listen(0x4, 0x5, ...) = 0x0
The output message without logging is:
en1: Interface is up Powered by Unikraft Telesto (0.16.2~fef49861)
Starting a simple PHP 8.2 HTTP server (PR #24 ) doesn't provide a running network connection connection. Use the following commands to replicate:
The output message is:
The output message without logging is: