Using the current stable pkgsrc tarball and a bootstrap from a few minutes ago, mtree compiled with gcc on Solaris 10 sparc dumps core whenever I try to get mtree to generate a new spec file from an existing directory: |jumptest1# /pkg/sbin/mtree -c -p /etc |Segmentation Fault (core dumped) |jumptest1# truss /pkg/sbin/mtree -c -p /etc : : |open("/var/run/tzsync", O_RDONLY) = 3 |mmap(0x00000000, 4, PROT_READ, MAP_SHARED, 3, 0) = 0xFF350000 |close(3) = 0 |open("/usr/share/lib/zoneinfo/Australia/Victoria", O_RDONLY) = 3 |fstat64(3, 0xFFBF89B8) = 0 |read(3, " T Z i f\0\0\0\0\0\0\0\0".., 785) = 785 |close(3) = 0 |ioctl(1, TCGETA, 0xFFBF7B7C) = 0 |fstat64(1, 0xFFBF7A98) = 0 | Incurred fault #6, FLTBOUNDS %pc = 0xFF232CB0 | siginfo: SIGSEGV SEGV_MAPERR addr=0x00000000 | Received signal #11, SIGSEGV [default] | siginfo: SIGSEGV SEGV_MAPERR addr=0x00000000 |jumptest1# ldd /pkg/sbin/mtree | libc.so.1 => /lib/libc.so.1 | libm.so.2 => /lib/libm.so.2 | /platform/SUNW,Sun-Fire-V240/lib/libc_psr.so.1 nothing particularly odd about the original bootstrap except that I did it with --unprivileged as root (so the root of the pkgsrc tree is /pkg afaik) happy to help others test if required ... solaris and GCC versions on this host are: |jumptest1# cat /etc/release | Oracle Solaris 10 8/11 s10s_u10wos_17b SPARC | Copyright (c) 1983, 2011, Oracle and/or its affiliates. All rights reserved. | Assembled 23 August 2011 |jumptest1# pkginfo -l SUNWgcc | PKGINST: SUNWgcc | NAME: gcc - The GNU C compiler | CATEGORY: system | ARCH: sparc | VERSION: 11.10.0,REV=2005.01.08.05.16 | BASEDIR: / | VENDOR: Oracle Corporation | DESC: GNU C - The GNU C compiler 3.4.3 | PSTAMP: sfw10-patch20110415085407 | INSTDATE: Jan 06 2014 16:49 | HOTLINE: Please contact your local service provider | STATUS: completely installed | FILES: 296 installed pathnames | 6 shared pathnames | 5 linked files | 25 directories | 33 executables | 104112 blocks used (approx) Regards, Malcolm -- Malcolm Herbert mjch%mjch.net@localhost
Attachment:
pgp6tsihi7Zhu.pgp
Description: PGP signature