-
Notifications
You must be signed in to change notification settings - Fork 584
Segmentation fault in buildroot #23324
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
It's hard to say anything about a segmentation fault without a stacktrace, really. |
On Sat, May 24, 2025 at 08:16:05AM -0700, Jony6688 wrote:
Module:perl-5.26.2
5.26.2 was released 7 years ago, and support for the 5.26.x branch ended
6 years ago.
Do you have the same problem with the current perl release?
…--
A major Starfleet emergency breaks out near the Enterprise, but
fortunately some other ships in the area are able to deal with it to
everyone's satisfaction.
-- Things That Never Happen in "Star Trek" #13
|
You appear to be building 5.26.1, not 5.26.2:
and this uses buildroot which uses perl-cross, which patches perl and doesn't use the perl core build system. I suspect however that you're using the packaged SDK sources from Rockchip, the appropriate place to look for support on that is with Rockchip, either directly or via some community forum. You don't say what system you're building on, but it looks like Ubuntu 24.04, and the build instructions specific 20.04. You might have been better going to the buildroot upstream but I don't see Rockchip in the supported boards |
Module:perl-5.26.2
Description
When I was compiling buildroot, there was a segment error. Below is my log information
Steps to Reproduce
Expected behavior
2025-05-24T23:12:56 >>> host-perl 5.26.1 Building
2025-05-24T23:12:56 PATH="/home/jony/apps/rk3568_linux_sdk/buildroot/output/rockchip_rk3568/host/bin:/home/jony/apps/rk3568_linux_sdk/buildroot/output/rockchip_rk3568/host/sbin:/usr/bin:/bin:/sbin:/usr/local/bin" PKG_CONFIG="/home/jony/apps/rk3568_linux_sdk/buildroot/output/rockchip_rk3568/host/bin/pkg-config" PKG_CONFIG_SYSROOT_DIR="/" PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_LIBDIR="/home/jony/apps/rk3568_linux_sdk/buildroot/output/rockchip_rk3568/host/lib/pkgconfig:/home/jony/apps/rk3568_linux_sdk/buildroot/output/rockchip_rk3568/host/share/pkgconfig" /usr/bin/make -j13 -C /home/jony/apps/rk3568_linux_sdk/buildroot/output/rockchip_rk3568/build/host-perl-5.26.1
2025-05-24T23:12:56 makefile:257: warning: ignoring prerequisites on suffix rule definition
2025-05-24T23:12:56 makefile:253: warning: ignoring prerequisites on suffix rule definition
2025-05-24T23:12:56 makefile:257: warning: ignoring prerequisites on suffix rule definition
2025-05-24T23:12:56 makefile:257: warning: ignoring prerequisites on suffix rule definition
2025-05-24T23:12:56 makefile:253: warning: ignoring prerequisites on suffix rule definition
2025-05-24T23:12:56 makefile:257: warning: ignoring prerequisites on suffix rule definition
2025-05-24T23:12:56 /usr/bin/gcc -fstack-protector-strong -L/usr/local/lib -o miniperl opmini.o perlmini.o gv.o toke.o perly.o pad.o regcomp.o dump.o util.o mg.o reentr.o mro_core.o keywords.o hv.o av.o run.o pp_hot.o sv.o pp.o scope.o pp_ctl.o pp_sys.o doop.o doio.o regexec.o utf8.o taint.o deb.o universal.o globals.o perlio.o perlapi.o numeric.o mathoms.o locale.o pp_pack.o pp_sort.o caretx.o dquote.o time64.o miniperlmain.o -lpthread -ldl -lm -lcrypt -lutil -lc
2025-05-24T23:12:56 ./miniperl -w -Ilib -Idist/Exporter/lib -MExporter -e '<?>' || sh -c 'echo >&2 Failed to build miniperl. Please run make minitest; exit 1'
2025-05-24T23:12:56 Attempt to free unreferenced scalar: SV 0x5fb3694e5348.
2025-05-24T23:12:57 Segmentation fault (core dumped)
2025-05-24T23:12:57 Failed to build miniperl. Please run make minitest
2025-05-24T23:12:57 make[2]: *** [makefile:364: lib/buildcustomize.pl] Error 1
2025-05-24T23:12:57 make[1]: *** [package/pkg-generic.mk:231: /home/jony/apps/rk3568_linux_sdk/buildroot/output/rockchip_rk3568/build/host-perl-5.26.1/.stamp_built] Error 2
2025-05-24T23:12:58 make: *** [/home/jony/apps/rk3568_linux_sdk/buildroot/output/rockchip_rk3568/Makefile:16: _all] Error 2
Command exited with non-zero status 1
you take 0:05.50 to build builroot
ERROR: Running build_buildroot failed!
ERROR: exit code 1 from line 717:
/usr/bin/time -f "you take %E to build builroot" $COMMON_DIR/mk-buildroot.sh $BOARD_CONFIG
Perl configuration
Summary of my perl5 (revision 5 version 26 subversion 2) configuration:
Platform:
osname=linux
osvers=6.11.0-26-generic
archname=x86_64-linux
uname='linux jony-server 6.11.0-26-generic #26~24.04.1-ubuntu smp preempt_dynamic thu apr 17 19:20:47 utc 2 x86_64 x86_64 x86_64 gnulinux '
config_args='-de -Dprefix=/home/jony/perl5/perlbrew/perls/perl-5.26.2 -Aeval:scriptdir=/home/jony/perl5/perlbrew/perls/perl-5.26.2/bin'
hint=recommended
useposix=true
d_sigaction=define
useithreads=undef
usemultiplicity=undef
use64bitint=define
use64bitall=define
uselongdouble=undef
usemymalloc=n
default_inc_excludes_dot=define
bincompat5005=undef
Compiler:
cc='cc'
ccflags ='-fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
optimize='-O2'
cppflags='-fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include'
ccversion=''
gccversion='13.3.0'
gccosandvers=''
intsize=4
longsize=8
ptrsize=8
doublesize=8
byteorder=12345678
doublekind=3
d_longlong=define
longlongsize=8
d_longdbl=define
longdblsize=16
longdblkind=3
ivtype='long'
ivsize=8
nvtype='double'
nvsize=8
Off_t='off_t'
lseeksize=8
alignbytes=8
prototype=define
Linker and Libraries:
ld='cc'
ldflags =' -fstack-protector-strong -L/usr/local/lib'
libpth=/usr/local/lib /usr/include/x86_64-linux-gnu /usr/lib /lib/x86_64-linux-gnu /lib/../lib /usr/lib/x86_64-linux-gnu /usr/lib/../lib /lib /lib64 /usr/lib64
libs=-lpthread -ldl -lm -lcrypt -lutil -lc
perllibs=-lpthread -ldl -lm -lcrypt -lutil -lc
libc=/lib/x86_64-linux-gnu/libc.so.6
so=so
useshrplib=false
libperl=libperl.a
gnulibc_version='2.39'
Dynamic Linking:
dlsrc=dl_dlopen.xs
dlext=so
d_dlsymun=undef
ccdlflags='-Wl,-E'
cccdlflags='-fPIC'
lddlflags='-shared -O2 -L/usr/local/lib -fstack-protector-strong'
Characteristics of this binary (from libperl):
Compile-time options:
HAS_TIMES
PERLIO_LAYERS
PERL_COPY_ON_WRITE
PERL_DONT_CREATE_GVSV
PERL_MALLOC_WRAP
PERL_OP_PARENT
PERL_PRESERVE_IVUV
USE_64_BIT_ALL
USE_64_BIT_INT
USE_LARGE_FILES
USE_LOCALE
USE_LOCALE_COLLATE
USE_LOCALE_CTYPE
USE_LOCALE_NUMERIC
USE_LOCALE_TIME
USE_PERLIO
USE_PERL_ATOF
Locally applied patches:
Devel::PatchPerl 2.08
Built under linux
Compiled at May 24 2025 16:38:33
%ENV:
PERLBREW_HOME="/home/jony/.perlbrew"
PERLBREW_MANPATH="/home/jony/perl5/perlbrew/perls/perl-5.26.2/man"
PERLBREW_PATH="/home/jony/perl5/perlbrew/bin:/home/jony/perl5/perlbrew/perls/perl-5.26.2/bin"
PERLBREW_PERL="perl-5.26.2"
PERLBREW_SHELLRC_VERSION="1.01"
PERLBREW_VERSION="1.01"
@inc:
/home/jony/perl5/perlbrew/perls/perl-5.26.2/lib/site_perl/5.26.2/x86_64-linux
/home/jony/perl5/perlbrew/perls/perl-5.26.2/lib/site_perl/5.26.2
/home/jony/perl5/perlbrew/perls/perl-5.26.2/lib/5.26.2/x86_64-linux
/home/jony/perl5/perlbrew/perls/perl-5.26.2/lib/5.26.2
The text was updated successfully, but these errors were encountered: