Re: sh seg-faults

From: Pietro Cerutti <gahr_at_FreeBSD.org>
Date: Tue, 17 Jun 2008 13:45:50 +0200
-----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-----
Received on Tue Jun 17 2008 - 09:45:58 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:32 UTC