Bug#814668: installing libglib2.0-0:kfreebsd-i386 on amd64 resets system clock to 1970

Steven Chamberlain steven at pyro.eu.org
Sun Feb 14 19:36:26 UTC 2016


Hi!

Helmut Grohne wrote:
> # dpkg --print-architecture
> amd64
> # apt-get install libglib2.0-0:kfreebsd-i386
> ...
> Setting up libglib2.0-0:kfreebsd-i386 (2.46.2-3) ...
> Segmentation fault
> Segmentation fault

Running postinst scripts for a foreign-arch package sounds problematic.
If it aborted without executing, is that not a problem still?

Apart from i386-on-amd64, I'd expect this to fail in most situations.
Have issues not been seen in postinst before, with other combinations of
native/foreign arch?

> What happens here is that a kfreebsd-i386 binary is run on a linux
> kernel. Unfortunately, their syscall interfaces are sufficiently similar
> that some syscalls actually are successful in doing what they never
> intended: changing the system clock.

If that binary has the FreeBSD ELF ABI type, I'm surprised Linux will
attempt to execute it?

In the reverse scenario, with linux binaries on kfreebsd, depending on
the ELF ABI type it is executes natively, or it is handled by the Linux
syscall emulation layer.

> Possibly glibc should do something different?

I'm surprised ld.so didn't fail in this situation.

Regards,
-- 
Steven Chamberlain
steven at pyro.eu.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-gnome-maintainers/attachments/20160214/103cd161/attachment.sig>


More information about the pkg-gnome-maintainers mailing list