Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 908989 - dev-util/conf2struct-1.5 - make: [Makefile:<snip>: example.c]<snip> Segmentation fault
Summary: dev-util/conf2struct-1.5 - make: [Makefile:<snip>: example.c]<snip> Segmentat...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Craig Andrews
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-22 07:03 UTC by Toralf Förster
Modified: 2023-09-09 07:52 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,18.23 KB, text/plain)
2023-06-22 07:03 UTC, Toralf Förster
Details
dev-util:conf2struct-1.5:20230622-032705.log (dev-util:conf2struct-1.5:20230622-032705.log,1.88 KB, text/plain)
2023-06-22 07:03 UTC, Toralf Förster
Details
emerge-history.txt.xz (emerge-history.txt.xz,64.79 KB, application/x-xz)
2023-06-22 07:03 UTC, Toralf Förster
Details
environment (environment,81.07 KB, text/plain)
2023-06-22 07:03 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,784 bytes, application/x-xz)
2023-06-22 07:03 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,25.91 KB, application/x-xz)
2023-06-22 07:03 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,19.32 KB, application/x-xz)
2023-06-22 07:03 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2023-06-22 07:03:20 UTC
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-util/conf2struct-1.5/work/conf2struct-1.5 ...
make -j5 CC=x86_64-pc-linux-gnu-gcc 'CFLAGS=-O2 -pipe -march=native -fno-diagnostics-color' 
./conf2struct eg_conf.cfg
x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color   -c -o argtable3.o argtable3.c
x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color   -c -o confcheck.o confcheck.c
make: *** [Makefile:25: example.c] Segmentation fault
make: *** Waiting for unfinished jobs....
 * ERROR: dev-util/conf2struct-1.5::gentoo failed (compile phase):

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_no_multilib_systemd-20230617-072911

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10
 [2] x86_64-pc-linux-gnu-13 *
clang/llvm (if any):
clang version 16.0.6
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/16/bin
Configuration file: /etc/clang/clang.cfg
/usr/lib/llvm/16
16.0.6
Python 3.11.4
Available Ruby profiles:
  [1]   ruby31 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.69.0
  [2]   rust-1.69.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.18_p10 [openjdk-bin-11]
*)	Eclipse Temurin JDK 17.0.6_p10 [openjdk-bin-17]
3)	Eclipse Temurin JDK 8.362_p09 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-11 
  [3]   openjdk-bin-17  system-vm

php cli (if any):
go version go1.20.5 linux/amd64

  HEAD of ::gentoo
commit c201e3190ff7254f76c2306c0712aff78860c0ad
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Thu Jun 22 03:02:03 2023 +0000

    2023-06-22 03:02:02 UTC

emerge -qpvO dev-util/conf2struct
[ebuild  N    ] dev-util/conf2struct-1.5
Comment 1 Toralf Förster gentoo-dev 2023-06-22 07:03:21 UTC
Created attachment 864397 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-06-22 07:03:22 UTC
Created attachment 864398 [details]
dev-util:conf2struct-1.5:20230622-032705.log
Comment 3 Toralf Förster gentoo-dev 2023-06-22 07:03:23 UTC
Created attachment 864399 [details]
emerge-history.txt.xz
Comment 4 Toralf Förster gentoo-dev 2023-06-22 07:03:24 UTC
Created attachment 864400 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2023-06-22 07:03:25 UTC
Created attachment 864401 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2023-06-22 07:03:26 UTC
Created attachment 864402 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2023-06-22 07:03:27 UTC
Created attachment 864403 [details]
temp.tar.xz
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-06-22 07:07:13 UTC
This is surely related to either new dev-perl/Conf-Libconfig--1.0.0 and/or perl-5.38
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-06-22 07:10:57 UTC
Thread 2.1 "conf2struct" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ffff7f91b80 (LWP 1354681)]
0x00007ffff7fbdce4 in get_general_array () from /usr/lib64/perl5/vendor_perl/5.38/x86_64-linux/auto/Conf/Libconfig/Libconfig.so
(gdb) bt
#0  0x00007ffff7fbdce4 in get_general_array () from /usr/lib64/perl5/vendor_perl/5.38/x86_64-linux/auto/Conf/Libconfig/Libconfig.so
#1  0x00007ffff7fbe025 in ?? () from /usr/lib64/perl5/vendor_perl/5.38/x86_64-linux/auto/Conf/Libconfig/Libconfig.so
#2  0x00007ffff7d17462 in Perl_pp_entersub () at pp_hot.c:5555
#3  0x00007ffff7d0c813 in Perl_runops_standard () at run.c:41
#4  0x00007ffff7c4f09b in S_run_body (oldscope=<optimized out>) at perl.c:2812
#5  perl_run (my_perl=<optimized out>) at perl.c:2727
#6  0x00005555555552f2 in main (argc=<optimized out>, argv=<optimized out>, env=<optimized out>) at perlmain.c:127
(gdb)
Comment 10 Larry the Git Cow gentoo-dev 2023-06-22 07:13:20 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ae3167af75c5957258041562a7056066673798c6

commit ae3167af75c5957258041562a7056066673798c6
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-06-22 07:12:24 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-06-22 07:12:24 +0000

    profiles: mask =dev-perl/Conf-Libconfig-1.0.0
    
    Makes conf2struct segfault (in Perl!)
    
    Bug: https://bugs.gentoo.org/908982
    Closes: https://bugs.gentoo.org/908989
    Signed-off-by: Sam James <sam@gentoo.org>

 profiles/package.mask | 5 +++++
 1 file changed, 5 insertions(+)
Comment 11 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-06-22 07:16:54 UTC
(In reply to Sam James from comment #8)
> This is surely related to either new dev-perl/Conf-Libconfig--1.0.0 and/or
> perl-5.38

(note that toralf had 5.36 on this box, not 5.38)
Comment 12 Larry the Git Cow gentoo-dev 2023-06-22 07:18:35 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=78c386bd45831746bd753218a404013e8c052b31

commit 78c386bd45831746bd753218a404013e8c052b31
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-06-22 07:18:04 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-06-22 07:18:04 +0000

    dev-perl/Conf-Libconfig: add note to test dev-util/conf2struct
    
    Bug: https://bugs.gentoo.org/908989
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-perl/Conf-Libconfig/Conf-Libconfig-0.100.0-r2.ebuild | 5 ++++-
 dev-perl/Conf-Libconfig/Conf-Libconfig-1.0.0.ebuild      | 3 +++
 2 files changed, 7 insertions(+), 1 deletion(-)
Comment 13 Larry the Git Cow gentoo-dev 2023-09-09 07:52:54 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6d39d286d67b4c8bb66a27119b4a2f81533549fb

commit 6d39d286d67b4c8bb66a27119b4a2f81533549fb
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-09-09 07:51:23 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-09-09 07:51:46 +0000

    dev-perl/Conf-Libconfig: add 1.0.3, drop 1.0.0
    
    conf2struct works with 1.0.3, so drop masked 1.0.0.
    
    Bug: https://bugs.gentoo.org/908989
    Bug: https://bugs.gentoo.org/908982
    Signed-off-by: Sam James <sam@gentoo.org>

 .../{Conf-Libconfig-1.0.0.ebuild => Conf-Libconfig-1.0.3.ebuild}     | 0
 dev-perl/Conf-Libconfig/Manifest                                     | 2 +-
 profiles/package.mask                                                | 5 -----
 3 files changed, 1 insertion(+), 6 deletions(-)