Skip to content
This repository has been archived by the owner on Mar 9, 2019. It is now read-only.

TestBucket_Get_NonExistent fail on ARM #327

Closed
yvesf opened this issue Mar 8, 2015 · 2 comments
Closed

TestBucket_Get_NonExistent fail on ARM #327

yvesf opened this issue Mar 8, 2015 · 2 comments

Comments

@yvesf
Copy link

yvesf commented Mar 8, 2015

$ go test -v
seed: 23210
quick settings: count=5, items=1000, ksize=1024, vsize=1024
...
=== RUN TestBucket_Get_NonExistent
panic: runtime error: index out of range

goroutine 20 [running]:
github.com/boltdb/bolt.(*Tx).page(0x10432080, 0x73746500, 0x0, 0xfffffef)
        /home/ebus/influx/gopath/src/github.com/boltdb/bolt/tx.go:474 +0xd8
github.com/boltdb/bolt.(*Tx).forEachPage(0x10432080, 0x73746500, 0x0, 0x0, 0x10415e54)
        /home/ebus/influx/gopath/src/github.com/boltdb/bolt/tx.go:479 +0x34
github.com/boltdb/bolt.(*Tx).checkBucket(0x10432080, 0x104385e0, 0x104385c0, 0x10438540, 0x1045e0c0)
        /home/ebus/influx/gopath/src/github.com/boltdb/bolt/tx.go:379 +0xac
github.com/boltdb/bolt.func·015(0xb6d44020, 0x7, 0xfffffef, 0x0, 0x0, 0x0, 0x0, 0x0)
        /home/ebus/influx/gopath/src/github.com/boltdb/bolt/tx.go:384 +0xb0
github.com/boltdb/bolt.(*Bucket).ForEach(0x1043208c, 0x10415f10, 0x0, 0x0)
        /home/ebus/influx/gopath/src/github.com/boltdb/bolt/bucket.go:355 +0x190
github.com/boltdb/bolt.(*Tx).checkBucket(0x10432080, 0x1043208c, 0x104385c0, 0x10438540, 0x1045e0c0)
        /home/ebus/influx/gopath/src/github.com/boltdb/bolt/tx.go:387 +0xf4
github.com/boltdb/bolt.(*Tx).check(0x10432080, 0x1045e0c0)
        /home/ebus/influx/gopath/src/github.com/boltdb/bolt/tx.go:338 +0x418
created by github.com/boltdb/bolt.(*Tx).Check
        /home/ebus/influx/gopath/src/github.com/boltdb/bolt/tx.go:315 +0x68
...

System information:

$ git describe --always
cf33c9e
$ go version
go version go1.4.1 linux/arm
$ uname -a
Linux XXX 3.6.0 #1 Wed Oct 3 01:32:54 CEST 2012 armv5tel GNU/Linux
$ cat /proc/cpuinfo 
Processor       : Feroceon 88FR131 rev 1 (v5l)
BogoMIPS        : 1191.11
Features        : swp half thumb fastmult edsp 
CPU implementer : 0x56
CPU architecture: 5TE
CPU variant     : 0x2
CPU part        : 0x131
CPU revision    : 1
Hardware        : Marvell SheevaPlug Reference Board
Revision        : 0000
Serial          : 0000000000000000
$ cat /proc/meminfo  | grep MemTota
MemTotal:         125108 kB

I have no idea what goes wrong but if there are any ideas I'm happy to try and test. I stumbled upon this problem while trying to run influxdb on this machine.

@tfalencar
Copy link

Hi! Did you find a solution for this problem? I think I'm running into the same problem. Here is the ticket I've opened in influxdb: influxdata/influxdb#4218

I've been doing some research today, and it seems that this is caused by a memory issue in BoltDB. Let me add some more references which I think are related:
https://github.com/tgulacsi/boltcrash
#188
#315
#277
#299
#416
#414

Although I have added a lot of swap (1GB), my system is very constrained, 128MB of RAM.

@benbjohnson
Copy link
Member

Fixed by #578.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants