pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg/55269: 'bjam' always 'bus error' on NetBSD/sparc (presumably, other strict-alignement 32 bits arch as well)
The following reply was made to PR pkg/55269; it has been noted by GNATS.
From: Martin Husemann <martin%duskware.de@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc:
Subject: Re: pkg/55269: 'bjam' always 'bus error' on NetBSD/sparc
(presumably, other strict-alignement 32 bits arch as well)
Date: Mon, 18 May 2020 12:45:36 +0200
Please report this upstream, it is plain broken code.
#define hash_item_data(item) ((HASHDATA *)((char *)item + sizeof(ITEM)))
is obviously broken for all architectures where alignement of HASHDATA
and ITEM differ.
Let upstream decide on what they like best as a fix.
Maybe something like
struct item_data {
ITEM item;
HASDATA data;
};
and then letting the compiler do the homework.
Martin
Home |
Main Index |
Thread Index |
Old Index