# a+) for testing the issue maybe even better It is enough to just create and re-create the mirror, that can trigger the same EOF or an even worse crash which might provide a second angle of debug-attack.
# Install apt update; apt upgrade -y apt install aptly # Create the config ignoring signatures aptly mirror create --ignore-signatures=true ubuntu-lts_jammy http://archive.ubuntu.com/ubuntu/ jammy main aptly mirror create --ignore-signatures=true ubuntu-lts_jammy http://archive.ubuntu.com/ubuntu/ jammy main # Good case output: Downloading http://archive.ubuntu.com/ubuntu/dists/jammy/Release... ERROR: unable to add mirror: mirror with name ubuntu-lts_jammy already exists # Bad case will trigger one of the two following output: # Either one EOF for each time we tried to create it Downloading http://archive.ubuntu.com/ubuntu/dists/jammy/Release... 2026/02/24 07:31:33 Error decoding remote repo: EOF 2026/02/24 07:31:33 Error decoding remote repo: EOF 2026/02/24 07:31:33 Error decoding remote repo: EOF Mirror [ubuntu-lts_jammy]: http://archive.ubuntu.com/ubuntu/ jammy successfully added. You can run 'aptly mirror update ubuntu-lts_jammy' to download repository contents. # Or worse, a total crash aptly mirror create --ignore-signatures=true ubuntu-lts_jammy http://archive.ubuntu.com/ubuntu/ jammy main Downloading http://archive.ubuntu.com/ubuntu/dists/jammy/Release... 2026/02/24 07:31:34 Error decoding remote repo: EOF 2026/02/24 07:31:34 Error decoding remote repo: EOF 2026/02/24 07:31:34 Error decoding remote repo: EOF 2026/02/24 07:31:34 Error decoding remote repo: EOF unexpected fault address 0x10ffffff80 fatal error: fault [signal SIGSEGV: segmentation violation code=0x1 addr=0x10ffffff80 pc=0x4645bf] goroutine 1 [running]: runtime.throw({0xde0c08?, 0x203000?}) runtime/panic.go:992 +0x71 fp=0xc0001d1390 sp=0xc0001d1360 pc=0x436b51 runtime.sigpanic() runtime/signal_unix.go:829 +0x305 fp=0xc0001d13e0 sp=0xc0001d1390 pc=0x44c745 aeshashbody() runtime/asm_amd64.s:1343 +0x39f fp=0xc0001d13e8 sp=0xc0001d13e0 pc=0x4645bf runtime.mapiternext(0xc00051a0c0) runtime/map.go:934 +0x2cb fp=0xc0001d1458 sp=0xc0001d13e8 pc=0x41264b runtime.mapiterinit(0x203000?, 0x8?, 0xc0001d14b0?) runtime/map.go:861 +0x228 fp=0xc0001d1478 sp=0xc0001d1458 pc=0x412328 reflect.mapiterinit(0xc0005be0d0?, 0x198?, 0xc0001d1600?) runtime/map.go:1373 +0x19 fp=0xc0001d14a0 sp=0xc0001d1478 pc=0x460e59 github.com/ugorji/go/codec.mapRange(0xc0001d15c0, {0xcedd20, 0xc0005c2250, 0x195}, {0xca6c00, 0xc0005be0d0, 0x198}, {0xd820a0, 0xc0005c6320, 0x199}, ...) github.com/ugorji/go/codec/helper_unsafe.go:745 +0xe8 fp=0xc0001d14c0 sp=0xc0001d14a0 pc=0x878a68 github.com/ugorji/go/codec.(*Encoder).kMap(0xc000222340, 0xc0001ea440, {0xcedd20?, 0xc0005c2250?, 0xc0001d1698?}) github.com/ugorji/go/codec/encode.go:652 +0x45b fp=0xc0001d1610 sp=0xc0001d14c0 pc=0x824afb github.com/ugorji/go/codec.(*Encoder).encodeValue(0xc000222340, {0xcedd20?, 0xc0005c2250?, 0xc000222300?}, 0x0) github.com/ugorji/go/codec/encode.go:1245 +0x5a6 fp=0xc0001d1740 sp=0xc0001d1610 pc=0x827f26 github.com/ugorji/go/codec.(*Encoder).kStructNoOmitempty(0xc000222340, 0xc0001ea280, {0xdc6840?, 0xc0005c21c0?, 0x40f61e?}) github.com/ugorji/go/codec/encode.go:485 +0x14d fp=0xc0001d18c0 sp=0xc0001d1740 pc=0x82360d github.com/ugorji/go/codec.(*Encoder).encodeValue(0xc000222340, {0xdbff60?, 0xc0005c21c0?, 0x400?}, 0x0) github.com/ugorji/go/codec/encode.go:1245 +0x5a6 fp=0xc0001d19f0 sp=0xc0001d18c0 pc=0x827f26 github.com/ugorji/go/codec.(*Encoder).encode(0xc000222340, {0xdbff60, 0xc0005c21c0?}) github.com/ugorji/go/codec/encode.go:1174 +0xb65 fp=0xc0001d1a58 sp=0xc0001d19f0 pc=0x827905 github.com/ugorji/go/codec.(*Encoder).mustEncode(0xc000222340, {0xdbff60?, 0xc0005c21c0?}) github.com/ugorji/go/codec/encode.go:1050 +0x36 fp=0xc0001d1a80 sp=0xc0001d1a58 pc=0x826cf6 github.com/ugorji/go/codec.(*Encoder).Encode(0xff9e00?, {0xdbff60?, 0xc0005c21c0?}) github.com/ugorji/go/codec/encode.go:1035 +0x9f fp=0xc0001d1ae0 sp=0xc0001d1a80 pc=0x826a5f github.com/aptly-dev/aptly/deb.(*RemoteRepo).Encode(0xc00023c000?) github.com/aptly-dev/aptly/deb/remote.go:655 +0x66 fp=0xc0001d1b20 sp=0xc0001d1ae0 pc=0x8ef686 github.com/aptly-dev/aptly/deb.(*RemoteRepoCollection).Update(0xc000092100, 0xc0005c21c0) github.com/aptly-dev/aptly/deb/remote.go:787 +0x85 fp=0xc0001d1bd8 sp=0xc0001d1b20 pc=0x8f0145 github.com/aptly-dev/aptly/deb.(*RemoteRepoCollection).Add(0xc000092100, 0xc0005c21c0) github.com/aptly-dev/aptly/deb/remote.go:776 +0x46 fp=0xc0001d1c20 sp=0xc0001d1bd8 pc=0x8effe6 github.com/aptly-dev/aptly/cmd.aptlyMirrorCreate(0xc0003dea80?, {0xc00024c020, 0x4, 0x4}) github.com/aptly-dev/aptly/cmd/mirror_create.go:67 +0x63f fp=0xc0001d1d48 sp=0xc0001d1c20 pc=0xc221df github.com/smira/commander.(*Command).Dispatch(0xc00051c900, {0xc00024c020?, 0x4, 0x4}) github.com/smira/commander/commands.go:305 +0xe4 fp=0xc0001d1db8 sp=0xc0001d1d48 pc=0x57d3c4 github.com/smira/commander.(*Command).Dispatch(0xc00051d200, {0xc00024c010?, 0x5, 0x5}) github.com/smira/commander/commands.go:283 +0x186 fp=0xc0001d1e28 sp=0xc0001d1db8 pc=0x57d466 github.com/smira/commander.(*Command).Dispatch(0xc00053a480, {0xc00024c000?, 0x6, 0x6}) github.com/smira/commander/commands.go:283 +0x186 fp=0xc0001d1e98 sp=0xc0001d1e28 pc=0x57d466 github.com/aptly-dev/aptly/cmd.Run(0xc00039ff70?, {0xc00012e010?, 0x406471?, 0xc3df60?}, 0x1) github.com/aptly-dev/aptly/cmd/run.go:41 +0x1f6 fp=0xc0001d1f30 sp=0xc0001d1e98 pc=0xc344d6 main.main() github.com/aptly-dev/aptly/main.go:24 +0x13d fp=0xc0001d1f80 sp=0xc0001d1f30 pc=0xc3db1d runtime.main() runtime/proc.go:250 +0x212 fp=0xc0001d1fe0 sp=0xc0001d1f80 pc=0x4392b2 runtime.goexit() runtime/asm_amd64.s:1571 +0x1 fp=0xc0001d1fe8 sp=0xc0001d1fe0 pc=0x4671c1 goroutine 51 [chan receive]: github.com/aptly-dev/aptly/console.(*Progress).worker(0xc0005960a0) github.com/aptly-dev/aptly/console/progress.go:180 +0x75 created by github.com/aptly-dev/aptly/console.(*Progress).Start github.com/aptly-dev/aptly/console/progress.go:54 +0x56 goroutine 10 [select]: github.com/syndtr/goleveldb/leveldb/util.(*BufferPool).drain(0xc0005c22a0) github.com/syndtr/goleveldb/leveldb/util/buffer_pool.go:209 +0xc7 created by github.com/syndtr/goleveldb/leveldb/util.NewBufferPool github.com/syndtr/goleveldb/leveldb/util/buffer_pool.go:240 +0x18c goroutine 11 [select]: github.com/syndtr/goleveldb/leveldb.(*session).refLoop(0xc000384000) github.com/syndtr/goleveldb/leveldb/session_util.go:189 +0x59b created by github.com/syndtr/goleveldb/leveldb.newSession github.com/syndtr/goleveldb/leveldb/session.go:93 +0x2d9 goroutine 12 [select]: github.com/syndtr/goleveldb/leveldb.(*DB).compactionError(0xc00039c000) github.com/syndtr/goleveldb/leveldb/db_compaction.go:91 +0x158 created by github.com/syndtr/goleveldb/leveldb.openDB github.com/syndtr/goleveldb/leveldb/db.go:148 +0x4ea goroutine 13 [select]: github.com/syndtr/goleveldb/leveldb.(*DB).mpoolDrain(0xc00039c000) github.com/syndtr/goleveldb/leveldb/db_state.go:101 +0xa8 created by github.com/syndtr/goleveldb/leveldb.openDB github.com/syndtr/goleveldb/leveldb/db.go:149 +0x52a goroutine 14 [select]: github.com/syndtr/goleveldb/leveldb.(*DB).tCompaction(0xc00039c000) github.com/syndtr/goleveldb/leveldb/db_compaction.go:836 +0x657 created by github.com/syndtr/goleveldb/leveldb.openDB github.com/syndtr/goleveldb/leveldb/db.go:155 +0x598 goroutine 15 [select]: github.com/syndtr/goleveldb/leveldb.(*DB).mCompaction(0xc00039c000) github.com/syndtr/goleveldb/leveldb/db_compaction.go:773 +0x113 created by github.com/syndtr/goleveldb/leveldb.openDB github.com/syndtr/goleveldb/leveldb/db.go:156 +0x5d6 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2140498 Title: aptly fails to create new mirrors or decode previous mirror data To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/aptly/+bug/2140498/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
