Package: golang-github-golang-snappy-dev
Version: 0.0.2-3
Severity: important
Tags: upstream

Dear Maintainer,

The package aptly in debian is affected by a bug in golang snappy which
is used by goleveldb. This happens on arm64 systems, where it can
corrupt the aptly database. 

The bug was fixed by snappy upstream [0] in version 0.0.4. In aptly the issue 
[1] has been 
fixed [2] by upgrading the dependency goleveldb to 
v1.0.1-0.20220721030215-126854af5e6d 
which depends on snappy 0.0.4.

It would be great if debian/trixie would ship snappy 0.0.4 and an
updated goleveldb, then a rebuild of aptly 1.6.0 (currently in unstable) would 
fix the problem.

Kind Regards,

 André


[0] https://github.com/golang/snappy/commits/v0.0.4
[1] https://github.com/aptly-dev/aptly/issues/1172
[2] https://github.com/aptly-dev/aptly/pull/1419

Backtrace
----------
unexpected fault address 0x32353530306d8b
fatal error: fault
[signal SIGSEGV: segmentation violation code=0x1 addr=0x32353530306d8b 
pc=0x436b40]

goroutine 28 gp=0x4000202700 m=7 mp=0x40001b9008 [running]:
runtime.throw({0x645b12?, 0x0?})
        /usr/lib/go-1.22/src/runtime/panic.go:1023 +0x40 fp=0x4000146610 
sp=0x40001465e0 pc=0x4e940
runtime.sigpanic()
        /usr/lib/go-1.22/src/runtime/signal_unix.go:895 +0x22c fp=0x4000146670 
sp=0x4000146610 pc=0x68fec
github.com/golang/snappy.encodeBlock({0x4000124002, 0x79f, 0x79f}, 
{0x400002c700, 0x66b, 0x690})
        /go/pkg/mod/github.com/golang/snappy@v0.0.2/encode_arm64.s:666 +0x350 
fp=0x400014e710 sp=0x4000146680 pc=0x436b40
github.com/golang/snappy.Encode({0x4000124000?, 0x4?, 0x40000367d8?}, 
{0x400002c700?, 0x3?, 0x40000102b0?})
        /go/pkg/mod/github.com/golang/snappy@v0.0.2/encode.go:39 +0x1d8 
fp=0x400014e7a0 sp=0x400014e710 pc=0x436378
github.com/syndtr/goleveldb/leveldb/table.(*Writer).writeBlock(0x40000e0248, 
0x40000e02a0, 0x4000031440?)
        
/go/pkg/mod/github.com/syndtr/goleveldb@v1.0.1-0.20200815110645-5c35d600f0ca/leveldb/table/writer.go:171
 +0x110 fp=0x400014e810 sp=0x400014e7a0 pc=0x43e740
github.com/syndtr/goleveldb/leveldb/table.(*Writer).finishBlock(0x40000e0248)


-- System Information:
Debian Release: trixie/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: arm64 (aarch64)

Kernel: Linux 6.1.43-rockchip-rk3588 (SMP w/8 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect

-- no debconf information

Reply via email to