[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [liblo] Bug#721617: pyliblo: FTBFS on sparc: testSendOthers (unit.ServerTestCase) ... Bus error (core dumped)



Control: reopen -1
Control: severity -1 normal

> Closing because liblo is no longer in sparc, and will not be built again there.

Re-opening because in Debian we don't "fix bugs" by sweeping them under the
carpet. Also, we're currently making sparc64 fit for release and there is
a very active upstream.

> It appears the problem is that in sparc, you can't just say
> *(datatype*)data. Depending on datatype, 'data' has to be aligned at a
> certain number of bytes from the original block (4 for int, 8 for
> int64):

Which is absolutely not specific to SPARC. The moment you are recasting
a pointer that way, you are leaving the territory of the C99 specification
which explicitly states that declarations which refer to the same object must
have compatible types, otherwise the behavior is undefined (C99, 6.2.7/2) [1].

The code in question is therefore buggy and has to be fixed anyway as there
is otherwise no guarantee it will work on future architectures or compilers.

I'll have a look at this issue, it's a common programming mistake.

Cheers,
Adrian

> [1] http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1256.pdf

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaubitz@debian.org
`. `'   Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913


Reply to: