Opened 6 years ago

Closed 6 years ago

#10278 closed defect (overcomebyevents)

gcc-{ar,nm,ranlib} segfault when run with full path (confirmed)

Reported by: Pierre Labastie Owned by: blfs-book@…
Priority: normal Milestone: 8.2
Component: BOOK Version: SVN
Severity: normal Keywords:
Cc:

Description

Change History (4)

comment:1 by Pierre Labastie, 6 years ago

Summary: gcc-{ar,nm,ranlib} segfault when run with full path (unconfirmed)gcc-{ar,nm,ranlib} segfault when run with full path (confirmed)

confirmed in chroot on a Sys V system built in November.

comment:2 by bdubbs@…, 6 years ago

On a relatively recent build, (started Jan 6), I cannot confirm. I ran gdb --args /usr/bin/gcc-ar with no problem.

I do not think we should be concerned with the problem in chroot. That is, by definition, a limited environment.

In addition, I expect a new release of gcc soon:

https://gcc.gnu.org/ml/gcc/2018-01/msg00115.html

Let's wait and if that does happen, this will be marked over come by events.

comment:3 by Pierre Labastie, 6 years ago

So I booted the same system as in comment:1. Here are the outputs of two commands:

pierre [ ~ ]$ gcc-ar
Usage: /usr/bin/ar [emulation options] [-]{dmpqrstx}[abcDfilMNoPsSTuvV] [--plugin <name>] [member-name] [count] archive-file file...
       /usr/bin/ar -M [<mri-script]
 commands:
  d            - delete file(s) from the archive
[...]
pierre [ ~ ]$ /usr/bin/gcc-ar
Segmentation fault

I agree it can wait for a new version of gcc. But I am amazed you do not see the segfault. BTW, I have not tried:

pierre [ ~ ]$ /usr/bin/ar

or

pierre [ ~ ]$ ar

Maybe I should

comment:4 by bdubbs@…, 6 years ago

Resolution: overcomebyevents
Status: newclosed

I have a test LFS build using gcc-7.3.0. I cannot duplicate the problem with any of gcc-{ar,nm,ranlib}.

Marking overcomebyevents in favor of ticket #10305.

Note: See TracTickets for help on using tickets.