ar on Solaris -- segfault with libgcj.a

Nick Clifton nickc@redhat.com
Wed Nov 21 12:09:00 GMT 2007


Hi,

> Building gcc-4.2.2 on Solaris 9, ar  version 2.18 produced a segmentation fault during the make process.  I can reproduce the error at the command prompt like this:
> 
> $ ar -s ./sparc-sun-solaris2.9/sparcv9/libjava/.libs/libgcj.a
> Segmentation fault (core dumped)
> 
> ar seems to work fine for other archives.  If the archive was created by the native ar, might gnu ar behave like this?

Possibly, but it certainly should not seg-fault.

Please could you open a bug report at:

  http://sourceware.org/bugzilla/

It will really help if you can include a simple test case.  eg upload a *small* 
archive which will trigger the seg fault when the ar command is run on it.

Cheers
   Nick



More information about the Binutils mailing list