pijul_org / pijul

#206 Stack overflow after unrecord

Opened by porky11, on October 7, 2017
Bug
Closed
porky11 commented on October 7, 2017

I created a new branch. Then I tried to unrecord the last record of my master branch. Now most commands, when called on the master branch cause a stack overflow.\r + pijul checkout still is possible, so I can change branches.\r + The exact way, if I remember correctly, how I got this bug:\r +

#at branch master\r                                                                                                                                                                                                                                                                                          +
$ pijul fork test\r                                                                                                                                                                                                                                                                                          +
$ pijul checkout master\r                                                                                                                                                                                                                                                                                    +
$ pijul unrecord\r                                                                                                                                                                                                                                                                                           +
# not sure, how much i did unrecord, I think 1, but the master branch was empty when the problem occured\r                                                                                                                                                                                                   +
# try, if my old version is now loaded\r                                                                                                                                                                                                                                                                     +
$ pijul checkout test\r                                                                                                                                                                                                                                                                                      +
# try if the new programm still works\r                                                                                                                                                                                                                                                                      +
$ pijul checkout master\r                                                                                                                                                                                                                                                                                    +
$ pijul status #now stackoverflow\r                                                                                                                                                                                                                                                                          +
```\r                                                                                                                                                                                                                                                                                                        +
\r                                                                                                                                                                                                                                                                                                           +
I wasn't able to replicate this error, and now the branch works again.\r                                                                                                                                                                                                                                     +
But while I tried a few times to do the same thing again, I got a different bug:\r                                                                                                                                                                                                                           +
When in the branch, which I called `test` in this example, after the unrecord didn't make any problems, I tried to run my program, and some parts of the file were gone, so it didn't compile anymore. When calling `pijul revert`, fist it asked me, if I want to add some lines, then this error occured:\r+
```\r                                                                                                                                                                                                                                                                                                        +
thread 'main' panicked at 'assertion failed: page != 0', /home/porky11/.cargo/registry/src/github.com-1ecc6299db9ec823/sanakirja-0.8.14/src/del.rs:757:8\r                                                                                                                                                   +
note: Run with `RUST_BACKTRACE=1` for a backtrace.\r                                                                                                                                                                                                                                                         +
```\r                                                                                                                                                                                                                                                                                                        +

lthms commented on October 9, 2017

Thanks for reporting!\r + \r + I will try this as soon as possible, to see if I can at least reproduce.

pmeunier commented on October 9, 2017

Looks like a corrupted repository. What versions of Pijul did you use to create and edit it?

porky11 commented on October 10, 2017

pijul 0.8.2\r+

lthms commented on October 12, 2017

Did you try to clone your repository with a up-to-date pijul and then reproduce on this fresh repo?

lthms commented on November 28, 2017

Closing now as there is a good chance it is now fixed. Feel free to pop in if it is not!

lthms closed this discussion on November 28, 2017