pijul_org / pijul

#6 Infinite loop with `pijul clone https://news.pijul.com/gmorenz/pijul`

Opened by gmorenz, on March 17, 2017
Closed
gmorenz commented on March 17, 2017

news should be nest, typo.

I assume it's infinite, it's been running for several minutes. Cloning https://nest.pijul.com/pijul_org/pijul resolves in seconds.

strace output is a loop of

stat("pijul/.pijul/pristine/db", {st_mode=S_IFREG|0644, st_size=45056, ...}) = 0
stat("pijul/.pijul/pristine/db", {st_mode=S_IFREG|0644, st_size=45056, ...}) = 0
open("pijul/.pijul/pristine/db", O_RDWR|O_CREAT|O_CLOEXEC, 0666) = 3
ioctl(3, FIOCLEX)                       = 0
ftruncate(3, 45056)                     = 0
fstat(3, {st_mode=S_IFREG|0644, st_size=45056, ...}) = 0
mmap(NULL, 45056, PROT_READ|PROT_WRITE, MAP_SHARED, 3, 0) = 0x7f11b6032000
open("pijul/.pijul/pristine/db.lock", O_WRONLY|O_CREAT|O_TRUNC|O_CLOEXEC, 0666) = 4
ioctl(4, FIOCLEX)                       = 0
open("pijul/.pijul/pristine/db.mut", O_WRONLY|O_CREAT|O_TRUNC|O_CLOEXEC, 0666) = 5
ioctl(5, FIOCLEX)                       = 0
flock(5, LOCK_EX)                       = 0
flock(5, LOCK_UN)                       = 0
close(3)                                = 0
close(4)                                = 0
close(5)                                = 0
munmap(0x7f11b6032000, 45056)           = 0
gmorenz commented on March 17, 2017

Stuck in loop on line 509 of remote.rs, after patches download.

e.lacks_space() is continually true

pmeunier commented on March 18, 2017

I just turned this problem into a less wasteful one: now cloning results in an empty repository ;-)

pmeunier commented on March 18, 2017

Also, fixed on the nest now.

pmeunier commented on April 13, 2017

Close.