problems with cvsup on FreeBSD 9 snapshot 201101

Kostik Belousov kostikbel at gmail.com
Wed Jun 15 14:58:55 UTC 2011


On Wed, Jun 15, 2011 at 10:24:46AM -0400, Eric McCorkle wrote:
> On 6/15/11 8:23 AM, Holger Kipp wrote:
> >Dear all,
> >
> >I had installed FreeBSD 9 amd64 from snapshot (ISO-image) located here:
> >ftp://ftp.freebsd.org/pub/FreeBSD/snapshots/201101/FreeBSD-9.0-CURRENT-201101-amd64-dvd1.iso 
> >
> >
> >Today I wanted to cvsup to a later date to upgrade to ZFS v28
> >and compiled port /usr/ports/net/cvsup-without-gui without problems.
> >
> >Starting freshly compiled cvsup then gives me
> >
> >"Illegal Instruction"
> >
> >This error seems to be identical to 
> >http://lists.freebsd.org/pipermail/freebsd-current/2010-September/020083.html 
> >
> 
> I've gotten the same problem, and managed to diagnose it.  The problem 
> actually isn't an illegal instruction, but a stack misalignment.  If you 
> load it in gdb, it will die with SIGSEGV somewhere in libc.so.7, on a 
> callq instruction.  This is because callq needs the stack to be 16-byte 
> aligned, and it's not for some reason.
Stack alignment requirement is an ABI convention, and it is not enforced
by CPU, except several special cases. In particular, either EFLAGS.AC
bit should be set, that usually is not, or SSE instruction explicitely
disallowing non-aligned access executed. Anyway, you will not get
Illegal instruction fault for unaligned access.

> 
> As for why it's not aligned, I don't know.
> 
> -- 
> Eric McCorkle
> Computer Science Ph.D Student,
> University of Massachusetts
> Research Intern, IBM Research
> _______________________________________________
> freebsd-current at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe at freebsd.org"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20110615/e5f48758/attachment.pgp


More information about the freebsd-current mailing list