sh seg-faults

Pietro Cerutti gahr at FreeBSD.org
Tue Jun 17 11:45:58 UTC 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Pietro Cerutti wrote:
| Hi guys,
|
| I'm experiencing "random" sh core-dumps while building ports. During
| these core-dumps, sh is usually invoked by libtool.

Indeed, this is a typical invocation of libtool which causes such
seg-faults:

/bin/sh /usr/ports/lang/php5/work/php-5.2.6/libtool --silent
- --preserve-dup-deps --mode=compile cc  -Isapi/cli/
- -I/usr/ports/lang/php5/work/php-5.2.6/sapi/cli/
- -DPHP_ATOM_INC -I/usr/ports/lang/php5/work/php-5.2.6/include
- -I/usr/ports/lang/php5/work/php-5.2.6/main
- -I/usr/ports/lang/php5/work/php-5.2.6 -I/usr/local/include/libxml2
- -I/usr/local/include -I/usr/ports/lang/php5/work/php-5.2.6/ext/date/lib
- -I/usr/ports/lang /php5/work/php-5.2.6/TSRM
- -I/usr/ports/lang/php5/work/php-5.2.6/Zend
- -O2 -pipe -fno-strict-aliasing
- -c /usr/ports/lang/php5/work/php-5.2.6/sapi/cli/php_cli_readline.c
- -o sapi/cli/php_cli_readline.lo

I say it's random, because re-issuing the command manually doesn't cause
any problem.


|
| The system is
|
| FreeBSD atari.bfh.ch 8.0-CURRENT FreeBSD 8.0-CURRENT #0: Tue Jun 17
| 01:31:25 UTC 2008 root at atari.bfh.ch:/usr/obj/usr/src/sys/ATARI sparc64
|
| running a GENERIC-(WITNESS+INVARIANTS) kernel.
|
| The directory on my webserver [1] contains:
| - the binary
| - the dumped core
| - a backtrace from GDB
| - a listing of the frame where the error occurs
|
| The problem seems to be inside dowait() [jobs.c:912-1009]. Especially
| the lines 927-939 seem to be of interest.
|
| Unfortunately, I have no clue of sh's internals, so any hint is welcome!
|
| [1] http://gahr.ch/FreeBSD/misc/sh_coredump/
|
| Thanks,
|
_______________________________________________
freebsd-sparc64 at freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-sparc64
To unsubscribe, send any mail to "freebsd-sparc64-unsubscribe at freebsd.org"

- --
Pietro Cerutti
gahr at FreeBSD.org

PGP Public Key:
http://gahr.ch/pgp

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (FreeBSD)

iEYEAREKAAYFAkhXo+wACgkQwMJqmJVx944zoQCgibIOh19+595b1LVWuMHdd4lM
TEAAoKyhJlvUcD70rpxcQwSMjEd1upyw
=0z1q
-----END PGP SIGNATURE-----


More information about the freebsd-sparc64 mailing list