Summary: | sys-devel/bc-1.07.1-r3[libedit]: segmentation fault ./fbc -c ./libmath.b < /dev/null > libmath.h | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | ernsteiswuerfel <erhard_f> |
Component: | Current packages | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | into-the-trash-it-goes, sam |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | PPC64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 737494 | ||
Attachments: |
emerge --info
build.log |
Created attachment 656204 [details]
build.log
still a problem ? better to look at the first frame before calling into the C library to see where the crash is coming from. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=07aad3b2c6a3a12be810c8e510a9acbddb34dc14 commit 07aad3b2c6a3a12be810c8e510a9acbddb34dc14 Author: Mike Frysinger <vapier@chromium.org> AuthorDate: 2022-09-09 08:23:31 +0000 Commit: Mike Frysinger <vapier@gentoo.org> CommitDate: 2022-09-09 08:23:38 +0000 sys-devel/bc: fix building with USE=libedit #738602 Closes: https://bugs.gentoo.org/738602 Signed-off-by: Mike Frysinger <vapier@gentoo.org> sys-devel/bc/bc-1.07.1-r5.ebuild | 3 +++ 1 file changed, 3 insertions(+) |
Created attachment 656202 [details] emerge --info When built with USE='libedit -readline -static' I get this segfault at building. Other USE-flag combinations work fine. [...] make[3]: Entering directory '/var/tmp/portage/sys-devel/bc-1.07.1-r3/work/bc-1.07.1/bc' powerpc64-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I. -I./../h -O2 -mcpu=970 -pipe -Wall -funsigned-char -O2 -mcpu=970 -pipe -Wall -funsigned-char -c -o global.o global.c make[3]: Leaving directory '/var/tmp/portage/sys-devel/bc-1.07.1-r3/work/bc-1.07.1/bc' powerpc64-unknown-linux-gnu-gcc -O2 -mcpu=970 -pipe -Wall -funsigned-char -O2 -mcpu=970 -pipe -Wall -funsigned-char -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -o libmath.h -o fbc main.o bc.o scan.o execute.o load.o storage.o util.o warranty.o global.o ../lib/libbc.a -lfl -ledit ./fbc -c ./libmath.b </dev/null >libmath.h /bin/sh: line 1: 89 Segmentation fault (core dumped) ./fbc -c ./libmath.b < /dev/null > libmath.h make[2]: *** [Makefile:631: libmath.h] Error 139 make[2]: Leaving directory '/var/tmp/portage/sys-devel/bc-1.07.1-r3/work/bc-1.07.1/bc' make[1]: *** [Makefile:357: all-recursive] Error 1 make[1]: Leaving directory '/var/tmp/portage/sys-devel/bc-1.07.1-r3/work/bc-1.07.1' make: *** [Makefile:297: all] Error 2 * ERROR: sys-devel/bc-1.07.1-r3::gentoo failed (compile phase): * emake failed From systemd's autogenerated coredump: Stack trace of thread 89: #0 0x00003fffb3fe3b40 __GI___fileno (libc.so.6 + 0xa8b40) #1 0x000000012037eca0 n/a (/var/tmp/portage/sys-devel/bc-1.07.1-r3/work/bc-1.07.1/bc/fbc + 0x6ca0) #2 0x000000012037eca0 n/a (/var/tmp/portage/sys-devel/bc-1.07.1-r3/work/bc-1.07.1/bc/fbc + 0x6ca0) #3 0x000000012037ede4 n/a (/var/tmp/portage/sys-devel/bc-1.07.1-r3/work/bc-1.07.1/bc/fbc + 0x6de4) #4 0x000000012037f340 n/a (/var/tmp/portage/sys-devel/bc-1.07.1-r3/work/bc-1.07.1/bc/fbc + 0x7340) #5 0x000000012037fe64 n/a (/var/tmp/portage/sys-devel/bc-1.07.1-r3/work/bc-1.07.1/bc/fbc + 0x7e64) #6 0x000000012037c954 n/a (/var/tmp/portage/sys-devel/bc-1.07.1-r3/work/bc-1.07.1/bc/fbc + 0x4954) #7 0x000000012037b760 n/a (/var/tmp/portage/sys-devel/bc-1.07.1-r3/work/bc-1.07.1/bc/fbc + 0x3760) #8 0x00003fffb3f83d30 generic_start_main (libc.so.6 + 0x48d30) #9 0x00003fffff1fb14b n/a (n/a + 0x0) #10 0x00003fffff1fb14b n/a (n/a + 0x0) #11 0x5354415455533d31 n/a (n/a + 0x0) Reading symbols from /var/tmp/portage/sys-devel/bc-1.07.1-r3/work/bc-1.07.1/bc/fbc... [New LWP 89] Core was generated by `./fbc -c ./libmath.b '. Program terminated with signal SIGSEGV, Segmentation fault. #0 __GI___fileno (fp=0x1b7147ac8290) at fileno.c:35 35 if (!(fp->_flags & _IO_IS_FILEBUF) || _IO_fileno (fp) < 0)