Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 738602 - sys-devel/bc-1.07.1-r3[libedit -readline -static]: segmentation fault ./fbc -c ./libmath.b < /dev/null > libmath.h
Summary: sys-devel/bc-1.07.1-r3[libedit -readline -static]: segmentation fault ./fbc -...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC64 Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 737494
  Show dependency tree
 
Reported: 2020-08-22 16:07 UTC by ernsteiswuerfel
Modified: 2021-11-29 10:56 UTC (History)
2 users (show)

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


Attachments
emerge --info (file_738602.txt,5.79 KB, text/plain)
2020-08-22 16:07 UTC, ernsteiswuerfel
Details
build.log (bc-1.07.1-r3:20200822-155404.log,9.56 KB, text/plain)
2020-08-22 16:08 UTC, ernsteiswuerfel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ernsteiswuerfel archtester 2020-08-22 16:07:04 UTC
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)
Comment 1 ernsteiswuerfel archtester 2020-08-22 16:08:42 UTC
Created attachment 656204 [details]
build.log