Closed cuifox closed 2 years ago
Please make your title of issue complete.
Which OS and release version do you use?
docker image php:7.3-fpm-alpine
Please use higher version alpine for building Rust, because there is a known bug for musl.
My current Linux Alpine,Which version can succeed?
3.15.1
https://mirrors.aliyun.com/alpine/edge/main https://mirrors.aliyun.com/alpine/edge/community https://mirrors.aliyun.com/alpine/edge/testing
musl-1.2.3-r1 description: the musl c library (libc) implementation
musl-1.2.3-r1 webpage: https://musl.libc.org/
musl-1.2.3-r1 installed size: 608 KiB
PHP 7.3.33 (cli) (built: Mar 18 2022 04:05:52) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.3.33, Copyright (c) 1998-2018 Zend Technologies
What's your Dockerfile, or build steps?
FROM php:7.3-fpm-alpine
RUN set -ex \ && echo "https://mirrors.aliyun.com/alpine/edge/main" > /etc/apk/repositories \ && echo "https://mirrors.aliyun.com/alpine/edge/community" >> /etc/apk/repositories \ && echo "https://mirrors.aliyun.com/alpine/edge/testing" >> /etc/apk/repositories \ && apk add --update --no-cache --virtual .build-deps1 g++ autoconf make cargo clang protobuf \ && apk add --update --no-cache --virtual .build-deps2 git libevent-dev openssl-dev jpeg-dev freetype-dev libpng-dev libzip-dev libwebp-dev libmcrypt-dev libxml2-dev \ && docker-php-ext-install pcntl posix pdo_mysql soap sockets \ && docker-php-ext-configure gd --with-webp=/usr/include/webp --with-jpeg=/usr/include --with-freetype=/usr/include/freetype2/ \ && docker-php-ext-install -j$(nproc) gd \ && pecl install redis zip apcu mcrypt event skywalking_agent \ && docker-php-ext-enable redis zip apcu mcrypt event skywalking_agent \ && apk del .build-deps1
CMD ["php-fpm"]
I think the coredump was caused by make
, not rust
.
Alpine occasionally has strange problems. I recommend Debian.
Errors have been mentioned above:
/tmp/pear/download/skywalking_agent-0.1.0 # make PHP_CONFIG=php-config cargo build --release make: *** [Makefile:193: modules/skywalking_agent.so] Segmentation fault (core dumped)
Successed: alpine:3.16.2
PHP 7.4.32 (cli) (built: Oct 7 2022 00:41:01) ( NTS ) Copyright (c) The PHP Group Zend Engine v3.4.0, Copyright (c) Zend Technologies
musl-1.2.3-r0 description: the musl c library (libc) implementation
musl-1.2.3-r0 webpage: https://musl.libc.org/
musl-1.2.3-r0 installed size: 608 KiB
I want to succeed in this version : php:7.3-fpm-alpine
Search before asking
Apache SkyWalking Component
PHP (apache/skywalking-php)
What happened
PHP 7.3.33 (cli) (built: Nov 30 2021 08:42:58) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.3.33, Copyright (c) 1998-2018 Zend Technologies
/tmp/pear/download/skywalking_agent-0.1.0 # make PHP_CONFIG=php-config cargo build --release make: *** [Makefile:193: modules/skywalking_agent.so] Segmentation fault (core dumped)
What you expected to happen
core dumped
How to reproduce
dont konw
Anything else
No response
Are you willing to submit PR?
Code of Conduct