FAQ
Hello Everyone-

Every few months etcd breaks on 32 bit systems due to atomic alignments.
Has anyone written a static analysis tool to check this? Trivial Googling
didn't turn anything up.

Example issue: https://github.com/coreos/etcd/pull/4734

Thank You,

Brandon

--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

  • Kevin Malachowski at Apr 9, 2016 at 12:24 am
    Why can't you just use unsafe.Alignof in an init func and panic if a value is different than expected?

    https://golang.org/pkg/unsafe/#Alignof

    --
    You received this message because you are subscribed to the Google Groups "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
  • Kevin Malachowski at Apr 9, 2016 at 12:26 am
    Sorry, unsafe.Offsetof seems more appropriate. If I'm just misunderstanding the requirements, please pardon the noise.

    --
    You received this message because you are subscribed to the Google Groups "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
  • Brandon Philips at Apr 10, 2016 at 11:29 pm
    I think the annoyance there will be we have to check in every struct that
    embeds that original struct as well. Seems like an OK place to start though.
    On Fri, Apr 8, 2016 at 5:26 PM Kevin Malachowski wrote:

    Sorry, unsafe.Offsetof seems more appropriate. If I'm just
    misunderstanding the requirements, please pardon the noise.

    --
    You received this message because you are subscribed to the Google Groups
    "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an
    email to golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
    --
    You received this message because you are subscribed to the Google Groups "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupgolang-nuts @
categoriesgo
postedApr 8, '16 at 10:40p
activeApr 10, '16 at 11:29p
posts4
users2
websitegolang.org

People

Translate

site design / logo © 2022 Grokbase