Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 658028 - net-misc/drive-0.3.9.1: panic: page 4 already freed
Summary: net-misc/drive-0.3.9.1: panic: page 4 already freed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Zac Medico
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2018-06-13 06:06 UTC by Massimo Burcheri
Modified: 2023-11-10 05:59 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Massimo Burcheri 2018-06-13 06:06:59 UTC
Coming from the upstream report:
https://github.com/odeke-em/drive/issues/934

As the panic is referencing files in $PORTAGE_TMPDIR that don't exist anymore this may be a Gentoo specific issue:



Reproducible: Always

Steps to Reproduce:
1. $ drive pull
2. -> clashes detected. Use `ignore-name-clashes` to override this behavior or `fix-clashes` to try fixing this
3. $ drive pull -ignore-name-clashes
Actual Results:  
Modification count 4
Deletion count 10
Addition count 1131 src: 2.63GB
Proceed with the changes? [Y/n]:Y
 0 / 2822791797 [-----------------------------------------------------------------------------------------------------------------]   0.00%panic: page 4 already freed

goroutine 284 [running]:
github.com/odeke-em/drive/vendor/github.com/boltdb/bolt.(*freelist).free(0xc4206941e0, 0x51, 0x7f19f8007000)
	/var/tmp/portage/net-misc/drive-0.3.9.1/work/drive-0.3.9.1/src/github.com/odeke-em/drive/vendor/github.com/boltdb/bolt/freelist.go:121 +0x2eb
github.com/odeke-em/drive/vendor/github.com/boltdb/bolt.(*node).spill(0xc4201c2150, 0xc4203a81c0, 0xa232c0)
	/var/tmp/portage/net-misc/drive-0.3.9.1/work/drive-0.3.9.1/src/github.com/odeke-em/drive/vendor/github.com/boltdb/bolt/node.go:363 +0x1fa
github.com/odeke-em/drive/vendor/github.com/boltdb/bolt.(*node).spill(0xc4201c20e0, 0xc4206942d0, 0xc4209cf708)
	/var/tmp/portage/net-misc/drive-0.3.9.1/work/drive-0.3.9.1/src/github.com/odeke-em/drive/vendor/github.com/boltdb/bolt/node.go:350 +0xbf
github.com/odeke-em/drive/vendor/github.com/boltdb/bolt.(*Bucket).spill(0xc420550a00, 0xc420694200, 0xc4209cf980)
	/var/tmp/portage/net-misc/drive-0.3.9.1/work/drive-0.3.9.1/src/github.com/odeke-em/drive/vendor/github.com/boltdb/bolt/bucket.go:570 +0x4b8
github.com/odeke-em/drive/vendor/github.com/boltdb/bolt.(*Bucket).spill(0xc4204220f8, 0x75d427a67, 0xec7c80)
	/var/tmp/portage/net-misc/drive-0.3.9.1/work/drive-0.3.9.1/src/github.com/odeke-em/drive/vendor/github.com/boltdb/bolt/bucket.go:537 +0x3f9
github.com/odeke-em/drive/vendor/github.com/boltdb/bolt.(*Tx).Commit(0xc4204220e0, 0x0, 0x0)
	/var/tmp/portage/net-misc/drive-0.3.9.1/work/drive-0.3.9.1/src/github.com/odeke-em/drive/vendor/github.com/boltdb/bolt/tx.go:163 +0x11f
github.com/odeke-em/drive/vendor/github.com/boltdb/bolt.(*DB).Update(0xc42020c1e0, 0xc4209cfbd8, 0x0, 0x0)
	/var/tmp/portage/net-misc/drive-0.3.9.1/work/drive-0.3.9.1/src/github.com/odeke-em/drive/vendor/github.com/boltdb/bolt/db.go:605 +0xe8
github.com/odeke-em/drive/config.(*Context).SerializeIndex(0xc4200c6b80, 0xc4208f6180, 0x0, 0x0)
	/var/tmp/portage/net-misc/drive-0.3.9.1/work/drive-0.3.9.1/src/github.com/odeke-em/drive/config/config.go:270 +0x140
github.com/odeke-em/drive/src.(*Commands).createIndex(0xc4200c6c40, 0xc420598b00, 0xc420064cc0, 0x42a994)
	/var/tmp/portage/net-misc/drive-0.3.9.1/work/drive-0.3.9.1/src/github.com/odeke-em/drive/src/fetch.go:314 +0x156
github.com/odeke-em/drive/src.(*Commands).localMod.func1(0xc420064d88, 0xc42059c6c0, 0xc4200c6c40)
	/var/tmp/portage/net-misc/drive-0.3.9.1/work/drive-0.3.9.1/src/github.com/odeke-em/drive/src/pull.go:529 +0x5c
github.com/odeke-em/drive/src.(*Commands).localMod(0xc4200c6c40, 0xc42059c6c0, 0x0, 0x0, 0x0, 0x0, 0x0)
	/var/tmp/portage/net-misc/drive-0.3.9.1/work/drive-0.3.9.1/src/github.com/odeke-em/drive/src/pull.go:567 +0x28e
github.com/odeke-em/drive/src.(*Commands).(github.com/odeke-em/drive/src.localMod)-fm(0xc42059c6c0, 0x0, 0x0, 0x0, 0x42d24a, 0x9df840)
	/var/tmp/portage/net-misc/drive-0.3.9.1/work/drive-0.3.9.1/src/github.com/odeke-em/drive/src/misc.go:1062 +0x52
github.com/odeke-em/drive/src.(*Commands).playPullChanges.func2.1(0xc42059c6c0, 0x9df848, 0xc42063ac00)
	/var/tmp/portage/net-misc/drive-0.3.9.1/work/drive-0.3.9.1/src/github.com/odeke-em/drive/src/pull.go:478 +0x4d
github.com/odeke-em/drive/src.(*changeJobSt).changeJober.func1(0x63222020200a2c7d, 0x74696c6962617061, 0xc4205d1ee8, 0x405fdb)
	/var/tmp/portage/net-misc/drive-0.3.9.1/work/drive-0.3.9.1/src/github.com/odeke-em/drive/src/misc.go:120 +0xab
github.com/odeke-em/drive/src.jobSt.Do(0xb, 0xc4203fc200, 0xc4205d1f08, 0x74e543, 0xc420777bc0, 0x0)
	/var/tmp/portage/net-misc/drive-0.3.9.1/work/drive-0.3.9.1/src/github.com/odeke-em/drive/src/misc.go:100 +0x27
github.com/odeke-em/drive/vendor/github.com/odeke-em/semalim.Run.func4.1(0xc420467c60, 0xc420777aa0, 0xc420467c70, 0xc420467c80, 0xa21c40, 0xc420467d60)
	/var/tmp/portage/net-misc/drive-0.3.9.1/work/drive-0.3.9.1/src/github.com/odeke-em/drive/vendor/github.com/odeke-em/semalim/semalim.go:71 +0x56
created by github.com/odeke-em/drive/vendor/github.com/odeke-em/semalim.Run.func4
	/var/tmp/portage/net-misc/drive-0.3.9.1/work/drive-0.3.9.1/src/github.com/odeke-em/drive/vendor/github.com/odeke-em/semalim/semalim.go:68 +0x113
Comment 1 Zac Medico gentoo-dev 2022-05-15 17:34:15 UTC
Is this still an issue with drive-0.4.0_p20210208?
Comment 2 Larry the Git Cow gentoo-dev 2023-11-10 05:59:31 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ba6f1c6fd9b9434bd2c07cf7233ee38cb6ab430a

commit ba6f1c6fd9b9434bd2c07cf7233ee38cb6ab430a
Author:     Brian Harring <ferringb@gmail.com>
AuthorDate: 2023-11-10 04:51:11 +0000
Commit:     Zac Medico <zmedico@gentoo.org>
CommitDate: 2023-11-10 05:59:23 +0000

    net-misc/drive: treeclean
    
    Dead upstream and fully broken since 2023-02 due to google
    auth changes.
    
    Closes: https://bugs.gentoo.org/658028
    Closes: https://bugs.gentoo.org/903862
    Signed-off-by: Brian Harring <ferringb@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/33751
    Signed-off-by: Zac Medico <zmedico@gentoo.org>

 net-misc/drive/Manifest                     |  2 --
 net-misc/drive/drive-0.4.0_p20210208.ebuild | 33 -----------------------------
 net-misc/drive/metadata.xml                 | 11 ----------
 3 files changed, 46 deletions(-)