Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 31 Mar 2018 15:59:06 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 227116] CURRENT doesn't boot with integer divide fault in uma_startup_count
Message-ID:  <bug-227116-8-oFfehw58V5@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-227116-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-227116-8@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227116

--- Comment #13 from Daniel Kolesa <daniel@octaforge.org> ---
(In reply to Konstantin Belousov from comment #11)

That's amusing, I just came to the same conclusion by isolating the code in=
to a
standalone .c program with stubbed out variables.

---
    /* Memory for the rest of startup zones, UMA and VM, ... */
    if (zsize > UMA_SLAB_SIZE) {
        printf("branch1\n");
        pages +=3D (zones + vm_zones) *
            howmany(roundup2(zsize, UMA_BOOT_ALIGN), UMA_SLAB_SIZE);
    } else {
        printf("branch2\n");
        printf("roundup2 %d\n", roundup2(zsize, UMA_BOOT_ALIGN));
        pages +=3D howmany(zones,
            UMA_SLAB_SPACE / roundup2(zsize, UMA_BOOT_ALIGN));
    }
---

---
$ ./foo=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20
KSIZE 304
ZSIZE 3984
UMA_SLAB_SIZE 4096
sizeof uma_slab 112
UMA_SLAB_SPACE 3984
branch2
roundup2 4000
zsh: floating point exception  ./foo
---

So yeah, indeed, this seems to be the source of error.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-227116-8-oFfehw58V5>