golang / go

The Go programming language
https://go.dev
BSD 3-Clause "New" or "Revised" License
123.24k stars 17.57k forks source link

fatal error: panic during malloc #6717

Closed gopherbot closed 9 years ago

gopherbot commented 10 years ago

by eau.forest:

My program is quite big, and I can't easily make it reproducible for you. It uses python
and go, and I do parallel calculation.
It's run perfectly well on osX 10.6 and 10.8, also on Linux Ubuntu 13.10.

But I have tried to run it on a server at University, and it does not want to work. It
always crash after around 10 min, at different place in my code. But it seems to be
usually about making slice. I have try to use different version of go, but it does not
work. It seems to run correctly when using only 1 cpu, it's when I try to use multiple
cpu that it's crashes. 

What I don't understand is that it runs correctly on mac and Ubuntu.  

What do you see instead?

panic: invalid memory address or nil pointer dereference
fatal error: panic during malloc
[signal 0xb code=0x1 addr=0x183 pc=0x4200f6]

goroutine 2238 [running]:
runtime.throw(0x685eed)
    /usr/local/go/src/pkg/runtime/panic.c:464 +0x69 fp=0x7f9bd41b8080
runtime.panicstring(0x685c48)
    /usr/local/go/src/pkg/runtime/panic.c:475 +0x53 fp=0x7f9bd41b80a8
runtime.sigpanic()
    /usr/local/go/src/pkg/runtime/os_linux.c:234 +0x16a fp=0x7f9bd41b80c0
runtime.mallocgc(0x140, 0x4f91e1, 0x1)
    /usr/local/go/src/pkg/runtime/malloc.goc:73 +0x116 fp=0x7f9bd41b8130
cnew(0x4f91e0, 0x13a, 0x1)
    /usr/local/go/src/pkg/runtime/malloc.goc:718 +0xc1 fp=0x7f9bd41b8150
runtime.cnewarray(0x4f91e0, 0x13a)
    /usr/local/go/src/pkg/runtime/malloc.goc:731 +0x3a fp=0x7f9bd41b8170
makeslice1(0x4f1c20, 0x9d, 0x13a, 0x7f9bd41b8228)
    /usr/local/go/src/pkg/runtime/slice.c:57 +0x4d fp=0x7f9bd41b8188
growslice1(0x4f1c20, 0xc23a17f1e0, 0x9d, 0x9d, 0xb5, ...)
    /usr/local/go/src/pkg/runtime/slice.c:113 +0x58 fp=0x7f9bd41b81b8
runtime.growslice(0x4f1c20, 0xc23a17f1e0, 0x9d, 0x9d, 0x18, ...)
    /usr/local/go/src/pkg/runtime/slice.c:80 +0x9d fp=0x7f9bd41b8200
goTree/big.(*Float).MultiplyFloat64(0xc254c91810, 0x2aebd814d13f2468, 0x0, 0x0, 0x0, ...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/big/float.go:450 +0x52c fp=0x7f9bd41b83b8
goTree/estimation.addLikelihoodAfterCoa(0xc22d9cd400, 0x0, 0x2, 0x3)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:244 +0x2d7 fp=0x7f9bd41b8478
goTree/estimation.makeCoalescence(0xc22d9cd400, 0x0, 0x2, 0x3, 0xc24e55a000, ...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:262 +0x4a fp=0x7f9bd41b84a8
goTree/estimation.build1TreeCorrBiasStopEpoch(0xc230f3b1e0, 0x2, 0x2, 0x0, 0xc24b5e6300,
...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:755 +0x19bf fp=0x7f9bd41b8748
goTree/estimation.buildSomeTreesCorrBias(0xc23a887000, 0x54, 0x54, 0xa, 0xc2250fdb60,
...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:163 +0x1ef fp=0x7f9bd41b8f40
runtime.goexit()
    /usr/local/go/src/pkg/runtime/proc.c:1394 fp=0x7f9bd41b8f48
created by goTree/estimation.buildTreesCorrBias
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:209 +0x573

Which compiler are you using (5g, 6g, 8g, gccgo)?

Not sure

Which operating system are you using?

Linux 3.10.14-100.fc18.x86_64

Which version are you using?  (run 'go version')

go1.1.2 

Please provide any additional information below.
gopherbot commented 10 years ago

Comment 1 by eau.forest:

Another error message I get, when trying to run another time:
fatal error: malloc/free - deadlock
[signal 0xb code=0x1 addr=0x0 pc=0x40cec7]
goroutine 928 [running]:
[fp=0x7f84f38f0ae0] runtime.throw(0x5f0120)
    /usr/local/go/src/pkg/runtime/panic.c:473 +0x67
[fp=0x7f84f38f0b38] runtime.mallocgc(0x10, 0x100000000, 0x7f8400000001)
    /usr/local/go/src/pkg/runtime/zmalloc_linux_amd64.c:33 +0x66
[fp=0x7f84f38f0b58] runtime.mal(0x10)
    /usr/local/go/src/pkg/runtime/zmalloc_linux_amd64.c:611 +0x3f
[fp=0x7f84f38f0b90] copyin(0x51dc80, 0x7f84f38f0bd0, 0x7f84f38f0be8)
    /usr/local/go/src/pkg/runtime/iface.c:152 +0x5f
[fp=0x7f84f38f0bc8] runtime.convT2E()
    /usr/local/go/src/pkg/runtime/iface.c:220 +0x40
[fp=0x7f84f38f0bf8] runtime.newErrorString(0x5ef208, 0x31, 0x7f84f38f0c20)
    /usr/local/go/src/pkg/runtime/error.go:74 +0x38
[fp=0x7f84f38f0c38] runtime.panicstring(0x5ef208)
    /usr/local/go/src/pkg/runtime/panic.c:486 +0x8b
[fp=0x7f84f38f0c50] runtime.sigpanic()
    /usr/local/go/src/pkg/runtime/os_linux.c:236 +0x168
[fp=0x7f84f38f0c90] runtime.MCentral_AllocList(0x7f8504c01c20, 0x20, 0x7f84f38f0cb8)
    /usr/local/go/src/pkg/runtime/mcentral.c:63 +0xb7
[fp=0x7f84f38f0cd0] runtime.MCache_Alloc(0x7f84f4bdd788, 0x3, 0x20, 0x1)
    /usr/local/go/src/pkg/runtime/mcache.c:24 +0x83
[fp=0x7f84f38f0d28] runtime.mallocgc(0x20, 0x100000001, 0x1)
    /usr/local/go/src/pkg/runtime/zmalloc_linux_amd64.c:47 +0xf5
[fp=0x7f84f38f0d68] cnew(0x4fa940, 0x4, 0x1)
    /usr/local/go/src/pkg/runtime/zmalloc_linux_amd64.c:655 +0xee
[fp=0x7f84f38f0d88] runtime.cnewarray(0x4fa940, 0x4)
    /usr/local/go/src/pkg/runtime/zmalloc_linux_amd64.c:673 +0x38
[fp=0x7f84f38f0da0] makeslice1(0x4f45e0, 0x2, 0x4, 0x7f84f38f0e40)
    /usr/local/go/src/pkg/runtime/slice.c:53 +0x45
[fp=0x7f84f38f0dd0] growslice1(0x4f45e0, 0xc201fd1860, 0x2, 0x2, 0x3, ...)
    /usr/local/go/src/pkg/runtime/slice.c:212 +0x56
[fp=0x7f84f38f0e18] runtime.growslice(0x4f45e0, 0xc201fd1860, 0x2, 0x2, 0x1, ...)
    /usr/local/go/src/pkg/runtime/slice.c:179 +0x9f
[fp=0x7f84f38f0e98] goTree/dataObjects.Sequence.PositionOfMut(0xc21deb6000, 0x123,
0x123, 0x123, 0xc201fd1850, ...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/dataObjects/generation.go:29 +0xa9
[fp=0x7f84f38f0f90] goTree/dataObjects.(*Generation).AddSeq(0xc20dc1cbe0, 0xc21deb6000,
0x123, 0x123, 0x2, ...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/dataObjects/generation.go:122 +0x2c6
----- stack segment boundary -----
davecheney commented 10 years ago

Comment 2:

> It seems to run correctly when using only 1 cpu, it's when I try to use multiple cpu
that it's crashes. 
This sounds like a strong clue. Can you please build your application using the race
detector and check that it reports no issues.
http://blog.golang.org/race-detector

Status changed to WaitingForReply.

davecheney commented 10 years ago

Comment 3:

Please also provide the source of this file
/data/smew/not-backed-up/forest/cephi/goTree/src/goTree/dataObjects/generation.go
gopherbot commented 10 years ago

Comment 4 by eau.forest:

No, unfortunately I might have been wrong saying the it works with 1 cpu (I probably
didn't let it run for long enough). What I really don't understand is that I don't have
any error message on three other computers. Compiling with -r and running it   I got
this output:
goTree/big
goTree/dataObjects
goTree/estimation
goTree/goTree
panic: runtime error: index out of range
goroutine 1 [running]:
runtime.panic(0x51ffa0, 0x685e37)
    /usr/local/go/src/pkg/runtime/panic.c:266 +0xb6
goTree/estimation.buildTreesPopSizes(0xc22c7c9000, 0x3e8, 0x3e8, 0xc229ab1000, 0x14, ...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:649 +0x639a
goTree/estimation.TwoStepsPopSizeEpochEstimation(0xc22c7be000, 0x8c0, 0x95e,
0xc22c78bec0, 0x1, ...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/twoStepsEstimation.go:272 +0x5044
main.main()
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/goTree/main.go:66 +0xa1f
goroutine 3 [finalizer wait]:
runtime.park(0x40c370, 0x688e60, 0x687508)
    /usr/local/go/src/pkg/runtime/proc.c:1342 +0x66
runfinq()
    /usr/local/go/src/pkg/runtime/mgc0.c:2276 +0x84
runtime.goexit()
    /usr/local/go/src/pkg/runtime/proc.c:1394
Here is a link for generation.go:
https://gist.github.com/marieforest/1c9ab6793905182b202e
I have tried it multiple time and it crashed again at different place, sometime because
"invalid argument to Intn" in this
file:https://gist.github.com/marieforest/960fb1031b4e6a9471c3.
I understand if there is nothing to do. It just it has been running for month with
different dataset without any problems on other computer, and I am clueless why it does
not want to work on this server. Thanks
davecheney commented 10 years ago

Comment 5:

All these crashes point to data races, please build your program under the race detector
and try that, you should see results very quickly.
gopherbot commented 10 years ago

Comment 6 by eau.forest:

So I have build my program using -race (as you can see at the beginning of the output)
and this is the error output I got.
/data/smew/not-backed-up/forest/cephi/env/go/bin/go get;
/data/smew/not-backed-up/forest/cephi/env/go/bin/go build -race -v
goTree/dataObjects
goTree/estimation
goTree/goTree
chmod u+x /data/smew/not-backed-up/forest/cephi/goTree/bin/goTree
go install -race;
forest@smew $ python cephi.py -f external_programs/ms/msdir/outputSim/1KSect_sim2e.ms -m
pop sizes per epoch two pop optim -n 100 --correctBias --nbrIterPSPE 5 --ncpu 22 -o
18Oct13/1KSect_sim2e_TPSEcorr1_7 --theta 30.0 30.0 -T 0.0 1.12 --realValues 0.12 30.0  
--realValues_pop1 None 0 20000 0.12 20000 --realValues_pop2 None 0 10000 0.12 10000 
--realValues_pop3 None  0.12 10000 8.0 10000  
>screens/18Oct13/Screen_1KSect_sim2e_TPSEcorr1_7.txt
unexpected fault address 0x0
fatal error: fault
[signal 0xb code=0x80 addr=0x0 pc=0x4200f6]
goroutine 4786 [running]:
runtime.throw(0x685c97)
    /usr/local/go/src/pkg/runtime/panic.c:464 +0x69 fp=0x7ff9f9d730e8
runtime.sigpanic()
    /usr/local/go/src/pkg/runtime/os_linux.c:237 +0xe9 fp=0x7ff9f9d73100
runtime.mallocgc(0x8, 0x4f9421, 0x1)
    /usr/local/go/src/pkg/runtime/malloc.goc:73 +0x116 fp=0x7ff9f9d73170
cnew(0x4f9420, 0x1, 0x1)
    /usr/local/go/src/pkg/runtime/malloc.goc:718 +0xc1 fp=0x7ff9f9d73190
runtime.cnewarray(0x4f9420, 0x1)
    /usr/local/go/src/pkg/runtime/malloc.goc:731 +0x3a fp=0x7ff9f9d731b0
makeslice1(0x4f2120, 0x0, 0x1, 0x7ff9f9d73268)
    /usr/local/go/src/pkg/runtime/slice.c:57 +0x4d fp=0x7ff9f9d731c8
growslice1(0x4f2120, 0x0, 0x0, 0x0, 0x1, ...)
    /usr/local/go/src/pkg/runtime/slice.c:113 +0x58 fp=0x7ff9f9d731f8
runtime.growslice(0x4f2120, 0x0, 0x0, 0x0, 0x1, ...)
    /usr/local/go/src/pkg/runtime/slice.c:80 +0x9d fp=0x7ff9f9d73240
goTree/estimation.chooseMutation(0xc254db0800, 0x0)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:163 +0x7e6 fp=0x7ff9f9d733d0
goTree/estimation.makeMutation(0xc254db0800, 0x1, 0x4)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:201 +0x32 fp=0x7ff9f9d734a8
goTree/estimation.build1TreeCorrBiasStopEpoch(0xc253f98140, 0x2, 0x2, 0x0, 0xc2314106c0,
...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:751 +0x18be fp=0x7ff9f9d73748
goTree/estimation.buildSomeTreesCorrBias(0xc26c8c4000, 0x2e, 0x2e, 0xa, 0xc268f488a0,
...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:163 +0x1fa fp=0x7ff9f9d73f40
runtime.goexit()
    /usr/local/go/src/pkg/runtime/proc.c:1394 fp=0x7ff9f9d73f48
created by goTree/estimation.buildTreesCorrBias
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:209 +0x573
goroutine 1 [runnable]:
goTree/estimation.buildTreesCorrBias(0xc24a761000, 0x3e8, 0x3e8, 0xc24b396000, 0xa, ...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:214 +0x632
goTree/estimation.TwoStepsPopSizeEpochEstimation(0xc22c7be000, 0x8c0, 0x95e,
0xc22c78bec0, 0x1, ...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/twoStepsEstimation.go:268 +0x4df7
main.main()
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/goTree/main.go:66 +0xa1f
goroutine 3 [finalizer wait]:
runtime.park(0x40c370, 0x688e60, 0x687508)
    /usr/local/go/src/pkg/runtime/proc.c:1342 +0x66
runfinq()
    /usr/local/go/src/pkg/runtime/mgc0.c:2276 +0x84
runtime.goexit()
    /usr/local/go/src/pkg/runtime/proc.c:1394
goroutine 4782 [runnable]:
goTree/estimation.chooseEvent(0xc2647cf200, 0x0, 0x3, 0x8, 0x1)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:115
goTree/estimation.build1TreeCorrBiasStopEpoch(0xc26197bb40, 0x2, 0x2, 0x0, 0xc2387b5960,
...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:689 +0xebf
goTree/estimation.buildSomeTreesCorrBias(0xc2585ba000, 0x2e, 0x2e, 0xa, 0xc268f488a0,
...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:163 +0x1fa
created by goTree/estimation.buildTreesCorrBias
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:209 +0x573
goroutine 4797 [runnable]:
math/rand.(*Rand).Float64(0xc245d2c0f0, 0x0)
    /usr/local/go/src/pkg/math/rand/rand.go:98
goTree/estimation.chooseEvent(0xc2609b4800, 0x0, 0x5, 0x0, 0x0)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:123 +0x1c2
goTree/estimation.build1TreeCorrBiasStopEpoch(0xc220ae15a0, 0x2, 0x2, 0x0, 0xc2547ee4e0,
...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:689 +0xebf
goTree/estimation.buildSomeTreesCorrBias(0xc245151000, 0x2e, 0x2e, 0xa, 0xc268f488a0,
...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:163 +0x1fa
created by goTree/estimation.buildTreesCorrBias
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:209 +0x573
goroutine 4798 [runnable]:
goTree/big.(*Float).MultiplyFloat64(0xc24317f390, 0x2b03599c07ea05c6, 0x0, 0x0, 0x0, ...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/big/float.go:449 +0x362
goTree/estimation.addLikelihoodAfterCoa(0xc23f34f400, 0x0, 0x7, 0x2)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:244 +0x2d7
goTree/estimation.makeCoalescence(0xc23f34f400, 0x0, 0x7, 0x2, 0xc216ff2a00, ...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:262 +0x4a
goTree/estimation.build1TreeCorrBiasStopEpoch(0xc21b660960, 0x2, 0x2, 0x0, 0xc21c4a95a0,
...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:755 +0x19bf
goTree/estimation.buildSomeTreesCorrBias(0xc21514b000, 0x2e, 0x2e, 0xa, 0xc268f488a0,
...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:163 +0x1fa
created by goTree/estimation.buildTreesCorrBias
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:209 +0x573
goroutine 4788 [runnable]:
goTree/dataObjects.Sequence.Equal(0xc257e08c80, 0x12b, 0x13c, 0xc21c6df3c0, 0x12b, ...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/dataObjects/generation.go:47
goTree/dataObjects.(*Generation).SeqInGen(0xc2512e48c0, 0xc21c6df3c0, 0x12b, 0x13c, 0x2,
...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/dataObjects/generation.go:101 +0xac
goTree/estimation.build1TreeCorrBiasStopEpoch(0xc2512e48c0, 0x2, 0x2, 0x0, 0xc235b45960,
...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:754 +0x194d
goTree/estimation.buildSomeTreesCorrBias(0xc25c9c8000, 0x2e, 0x2e, 0xa, 0xc268f488a0,
...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:163 +0x1fa
created by goTree/estimation.buildTreesCorrBias
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:209 +0x573
goroutine 4785 [runnable]:
math/rand.(*Rand).Float64(0xc2452024c0, 0x0)
    /usr/local/go/src/pkg/math/rand/rand.go:98
goTree/estimation.chooseEvent(0xc23b22f000, 0x0, 0x3, 0x0, 0x0)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:123 +0x1c2
goTree/estimation.build1TreeCorrBiasStopEpoch(0xc24c044b40, 0x2, 0x2, 0x0, 0xc22d6aa3c0,
...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:689 +0xebf
goTree/estimation.buildSomeTreesCorrBias(0xc212e0f000, 0x2e, 0x2e, 0xa, 0xc268f488a0,
...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:163 +0x1fa
created by goTree/estimation.buildTreesCorrBias
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:209 +0x573
goroutine 4787 [runnable]:
goTree/dataObjects.(*Generation).SeqInGen(0x7ff9f91ab378, 0xc229902b00, 0x14d, 0x14d,
0xc242cd82f0, ...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/dataObjects/generation.go:105 +0x197
goTree/dataObjects.(*Generation).AddSeq(0xc220aad140, 0xc229902b00, 0x14d, 0x14d, 0x18)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/dataObjects/generation.go:114 +0x80
goTree/estimation.makeMutation(0xc26072e800, 0x0, 0x5)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:210 +0x276
goTree/estimation.build1TreeCorrBiasStopEpoch(0xc220aad140, 0x2, 0x2, 0x0, 0xc22fa0c480,
...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:751 +0x18be
goTree/estimation.buildSomeTreesCorrBias(0xc230c3b000, 0x2e, 0x2e, 0xa, 0xc268f488a0,
...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:163 +0x1fa
created by goTree/estimation.buildTreesCorrBias
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:209 +0x573
goroutine 4792 [runnable]:
goTree/dataObjects.Sequence.Equal(0xc251a3dc80, 0x132, 0x13c, 0xc251a3dc80, 0x132, ...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/dataObjects/generation.go:47
goTree/dataObjects.(*Generation).SeqInGen(0xc25706b410, 0xc251a3dc80, 0x132, 0x13c, 0x2,
...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/dataObjects/generation.go:101 +0xac
goTree/estimation.build1TreeCorrBiasStopEpoch(0xc25706b3c0, 0x2, 0x2, 0x0, 0xc24ef76000,
...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:754 +0x194d
goTree/estimation.buildSomeTreesCorrBias(0xc2415f6000, 0x2e, 0x2e, 0xa, 0xc268f488a0,
...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:163 +0x1fa
created by goTree/estimation.buildTreesCorrBias
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:209 +0x573
goroutine 4794 [runnable]:
goTree/estimation.chooseEvent(0xc22443e200, 0x0, 0x5, 0x8, 0x1)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:115
goTree/estimation.build1TreeCorrBiasStopEpoch(0xc247e07320, 0x2, 0x2, 0x0, 0xc215ec3960,
...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:689 +0xebf
goTree/estimation.buildSomeTreesCorrBias(0xc25c82a000, 0x2e, 0x2e, 0xa, 0xc268f488a0,
...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:163 +0x1fa
created by goTree/estimation.buildTreesCorrBias
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:209 +0x573
goroutine 4795 [runnable]:
goTree/estimation.(*treeConstructor).ComputeMutationRate(0xc24f6db200, 0x0, 0x2)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:103
goTree/estimation.chooseEvent(0xc24f6db200, 0x0, 0x2, 0x0, 0x0)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:117 +0x6f
goTree/estimation.build1TreeCorrBiasStopEpoch(0xc23d0bf5a0, 0x2, 0x2, 0x0, 0xc23ba53f00,
...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:689 +0xebf
goTree/estimation.buildSomeTreesCorrBias(0xc265b3f000, 0x2e, 0x2e, 0xa, 0xc268f488a0,
...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:163 +0x1fa
created by goTree/estimation.buildTreesCorrBias
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:209 +0x573
goroutine 4780 [runnable]:
goTree/estimation.chooseMutation(0xc250dcac00, 0x0)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:163 +0x7e6
goTree/estimation.makeMutation(0xc250dcac00, 0x0, 0x2)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:201 +0x32
goTree/estimation.build1TreeCorrBiasStopEpoch(0xc21aaaee60, 0x2, 0x2, 0x0, 0xc23213b420,
...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:751 +0x18be
goTree/estimation.buildSomeTreesCorrBias(0xc230d4d000, 0x2e, 0x2e, 0xa, 0xc268f488a0,
...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:163 +0x1fa
created by goTree/estimation.buildTreesCorrBias
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:209 +0x573
goroutine 4799 [runnable]:
goTree/dataObjects.(*Generation).SeqInGen(0x7ff9f990a378, 0xc25eee1a00, 0x180, 0x1da,
0xc2426bf750, ...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/dataObjects/generation.go:102 +0xcd
goTree/dataObjects.(*Generation).RemoveSeq(0xc25d9c03c0, 0xc25eee1a00, 0x180, 0x1da,
0x180)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/dataObjects/generation.go:137 +0x83
goTree/estimation.makeMutation(0xc23a106600, 0x0, 0x1)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:209 +0x20c
goTree/estimation.build1TreeCorrBiasStopEpoch(0xc25d9c03c0, 0x2, 0x2, 0x0, 0xc251161ae0,
...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:751 +0x18be
goTree/estimation.buildSomeTreesCorrBias(0xc21f8bc000, 0x22, 0x22, 0xa, 0xc268f488a0,
...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:163 +0x1fa
created by goTree/estimation.buildTreesCorrBias
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:209 +0x573
goroutine 4783 [runnable]:
goTree/dataObjects.Sequence.PositionOfMut(0xc215408000, 0x150, 0x150, 0x150,
0xc21dd403e0, ...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/dataObjects/generation.go:29 +0xab
goTree/dataObjects.(*Generation).AddSeq(0xc2528b3140, 0xc215408000, 0x150, 0x150, 0x19)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/dataObjects/generation.go:122 +0x2c6
goTree/estimation.makeMutation(0xc23c613000, 0x0, 0x0)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:210 +0x276
goTree/estimation.build1TreeCorrBiasStopEpoch(0xc2528b3140, 0x2, 0x2, 0x0, 0xc24de7de40,
...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:751 +0x18be
goTree/estimation.buildSomeTreesCorrBias(0xc23da9c000, 0x2e, 0x2e, 0xa, 0xc268f488a0,
...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:163 +0x1fa
created by goTree/estimation.buildTreesCorrBias
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:209 +0x573
goroutine 4789 [runnable]:
math/rand.(*Rand).ExpFloat64(0xc2244bbf70, 0x2)
    /usr/local/go/src/pkg/math/rand/exp.go:31
goTree/estimation.computeTimeNextEvent(0xc21b4e8800, 0x5, 0x5, 0x5481d0, 0xb)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:279 +0x200
goTree/estimation.build1TreeCorrBiasStopEpoch(0xc21c9ec820, 0x2, 0x2, 0x0, 0xc262a0bb40,
...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:723 +0x174d
goTree/estimation.buildSomeTreesCorrBias(0xc245ab5000, 0x2e, 0x2e, 0xa, 0xc268f488a0,
...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:163 +0x1fa
created by goTree/estimation.buildTreesCorrBias
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:209 +0x573
goroutine 4793 [runnable]:
goTree/dataObjects.Sequence.Equal(0xc233c14dc0, 0x131, 0x13c, 0xc22cdbfb40, 0x131, ...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/dataObjects/generation.go:47
goTree/dataObjects.(*Generation).SeqInGen(0x7ff9f923b378, 0xc22cdbfb40, 0x131, 0x131,
0xc24af54180, ...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/dataObjects/generation.go:101 +0xac
goTree/dataObjects.(*Generation).AddSeq(0xc220c8feb0, 0xc22cdbfb40, 0x131, 0x131, 0x13)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/dataObjects/generation.go:114 +0x80
goTree/estimation.makeMutation(0xc23baf5c00, 0x1, 0x5)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:210 +0x276
goTree/estimation.build1TreeCorrBiasStopEpoch(0xc220c8fe60, 0x2, 0x2, 0x0, 0xc2398049c0,
...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:751 +0x18be
goTree/estimation.buildSomeTreesCorrBias(0xc21792e000, 0x2e, 0x2e, 0xa, 0xc268f488a0,
...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:163 +0x1fa
created by goTree/estimation.buildTreesCorrBias
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:209 +0x573
goroutine 4778 [runnable]:
goTree/estimation.chooseMutation(0xc24279f400, 0x0)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:163 +0x7e6
goTree/estimation.makeMutation(0xc24279f400, 0x1, 0x5)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:201 +0x32
goTree/estimation.build1TreeCorrBiasStopEpoch(0xc234b69dc0, 0x2, 0x2, 0x0, 0xc2415f5840,
...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:751 +0x18be
goTree/estimation.buildSomeTreesCorrBias(0xc252a51000, 0x2e, 0x2e, 0xa, 0xc268f488a0,
...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:163 +0x1fa
created by goTree/estimation.buildTreesCorrBias
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:209 +0x573
goroutine 4779 [runnable]:
goTree/dataObjects.Sequence.Equal(0xc211f53640, 0x10b, 0x13c, 0xc223b4f280, 0x10b, ...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/dataObjects/generation.go:47
goTree/dataObjects.SeqInList(0xc211f53640, 0x10b, 0x13c, 0xc215220c00, 0x39, ...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/dataObjects/generation.go:72 +0xa7
goTree/dataObjects.(*MutationTable).UpdateAfterCoa(0xc22d4202d0, 0xc26ba9f190,
0xc211f53640, 0x10b, 0x13c)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/dataObjects/mutationTable.go:81 +0x88
goTree/estimation.makeCoalescence(0xc25016f400, 0x0, 0x0, 0x3, 0xc211f53640, ...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:266 +0x141
goTree/estimation.build1TreeCorrBiasStopEpoch(0xc26ba9f140, 0x2, 0x2, 0x0, 0xc22d4202a0,
...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:755 +0x19bf
goTree/estimation.buildSomeTreesCorrBias(0xc21193e000, 0x2e, 0x2e, 0xa, 0xc268f488a0,
...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:163 +0x1fa
created by goTree/estimation.buildTreesCorrBias
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:209 +0x573
goroutine 4791 [runnable]:
goTree/estimation.computeTimeNextEvent(0xc218572800, 0x5, 0x5, 0x549970, 0x8)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:278 +0x1cd
goTree/estimation.build1TreeCorrBiasStopEpoch(0xc21bed13c0, 0x2, 0x2, 0x0, 0xc232dc2180,
...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:723 +0x174d
goTree/estimation.buildSomeTreesCorrBias(0xc26499a000, 0x2e, 0x2e, 0xa, 0xc268f488a0,
...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:163 +0x1fa
created by goTree/estimation.buildTreesCorrBias
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:209 +0x573
goroutine 4784 [runnable]:
goTree/dataObjects.Sequence.Equal(0xc262f46400, 0x156, 0x1da, 0xc2594d3000, 0x156, ...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/dataObjects/generation.go:47
goTree/dataObjects.(*Generation).SeqInGen(0x7ff9f67eb378, 0xc2594d3000, 0x156, 0x1da,
0xc241b0f440, ...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/dataObjects/generation.go:101 +0xac
goTree/dataObjects.(*Generation).RemoveSeq(0xc230cd1690, 0xc2594d3000, 0x156, 0x1da,
0x156)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/dataObjects/generation.go:137 +0x83
goTree/estimation.makeMutation(0xc25119ca00, 0x1, 0x0)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:209 +0x20c
goTree/estimation.build1TreeCorrBiasStopEpoch(0xc230cd1640, 0x2, 0x2, 0x0, 0xc2264b53c0,
...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:751 +0x18be
goTree/estimation.buildSomeTreesCorrBias(0xc22f51e000, 0x2e, 0x2e, 0xa, 0xc268f488a0,
...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:163 +0x1fa
created by goTree/estimation.buildTreesCorrBias
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:209 +0x573
goroutine 4796 [runnable]:
goTree/big.(*Float).MultiplyFloat64(0xc26c0358a0, 0x2af1a4f3c03b20f7, 0x0, 0x0, 0x0, ...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/big/float.go:449 +0x362
goTree/estimation.addLikelihoodAfterCoa(0xc262a0ce00, 0x0, 0x0, 0xa)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:244 +0x2d7
goTree/estimation.makeCoalescence(0xc262a0ce00, 0x0, 0x0, 0xa, 0xc25ede6200, ...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:262 +0x4a
goTree/estimation.build1TreeCorrBiasStopEpoch(0xc256af9500, 0x2, 0x2, 0x0, 0xc25530b420,
...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:755 +0x19bf
goTree/estimation.buildSomeTreesCorrBias(0xc23511f000, 0x2e, 0x2e, 0xa, 0xc268f488a0,
...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:163 +0x1fa
created by goTree/estimation.buildTreesCorrBias
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:209 +0x573
goroutine 4790 [runnable]:
goTree/dataObjects.(*Generation).SeqInGen(0x7ff9f68a9420, 0xc259a56200, 0x144, 0x1da,
0x421602, ...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/dataObjects/generation.go:102 +0xcd
goTree/dataObjects.(*Generation).Coalesce(0xc25fa77eb0, 0xc259a56200, 0x144, 0x1da)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/dataObjects/generation.go:162 +0x7a
goTree/estimation.makeCoalescence(0xc22d275c00, 0x0, 0x0, 0x4, 0xc259a56200, ...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:264 +0x9b
goTree/estimation.build1TreeCorrBiasStopEpoch(0xc25fa77e60, 0x2, 0x2, 0x0, 0xc2380e68a0,
...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:755 +0x19bf
goTree/estimation.buildSomeTreesCorrBias(0xc268739000, 0x2e, 0x2e, 0xa, 0xc268f488a0,
...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:163 +0x1fa
created by goTree/estimation.buildTreesCorrBias
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:209 +0x573
goroutine 4781 [runnable]:
math/rand.(*Rand).Intn(0xc21f7ca170, 0xe, 0x140)
    /usr/local/go/src/pkg/math/rand/rand.go:87
goTree/estimation.chooseMutation(0xc210112600, 0x0)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:148 +0x641
goTree/estimation.makeMutation(0xc210112600, 0x1, 0x5)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:201 +0x32
goTree/estimation.build1TreeCorrBiasStopEpoch(0xc216205780, 0x2, 0x2, 0x0, 0xc24632eb40,
...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:751 +0x18be
goTree/estimation.buildSomeTreesCorrBias(0xc21ac31000, 0x2e, 0x2e, 0xa, 0xc268f488a0,
...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:163 +0x1fa
created by goTree/estimation.buildTreesCorrBias
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:209 +0x573
Traceback (most recent call last):
  File "cephi.py", line 205, in <module>
    main(argv , gen , '')
  File "cephi.py", line 113, in main
    goResults = runGoTree(argv.fileName, Constants.GOTREE_IO_PATH + "/"+argv.fileName + "goTree.output")
  File "cephi.py", line 19, in runGoTree
    o_file = open( output_file,'r')
IOError: [Errno 2] No such file or directory:
'goFiles_IO/18Oct13/1KSect_sim2e_TPSEcorr1_7goTree.output'
davecheney commented 10 years ago

Comment 7:

Looks like your program crashed before the race detector ran, if it was built properly
with the race dectector. I say this because your build process looks quite convoluted.
I am still quite sure that your problem is related to concurrent mutation of a slice
that is shared between several goroutines. I see the same object (the first parameter of
a function call in the stack trace) show up in many goroutines. From the copy of
generation.go that you provided, there is no synchronisation so this is what leads me to
believe you have a data race.
gopherbot commented 10 years ago

Comment 8 by eau.forest:

I have succeed to compile with -race (I also needed to add it to my go get.) Here is the
output so far:
==================
WARNING: DATA RACE
Write by goroutine 83:
  math/rand.(*rngSource).Int63()
      /usr/local/go/src/pkg/math/rand/rng.go:233 +0x35
  math/rand.(*Rand).Int63()
      /usr/local/go/src/pkg/math/rand/rand.go:43 +0x4a
  math/rand.(*Rand).Float64()
      /usr/local/go/src/pkg/math/rand/rand.go:98 +0x34
  goTree/estimation.chooseEvent()
      /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:123 +0x46f
  goTree/estimation.build1TreeCorrBiasStopEpoch()
      /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:689 +0x1edc
  goTree/estimation.buildSomeTreesCorrBias()
      /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:163 +0x260
Previous read by goroutine 77:
  [failed to restore the stack]
Goroutine 83 (running) created at:
  goTree/estimation.buildTreesCorrBias()
      /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:208 +0x783
  goTree/estimation.buildTreesCorrBias()
      /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:247 +0x39
  main.main()
      /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/goTree/main.go:66 +0xc20
Goroutine 77 (running) created at:
  goTree/estimation.buildTreesCorrBias()
      /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:208 +0x783
  goTree/estimation.buildTreesCorrBias()
      /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:247 +0x39
  main.main()
      /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/goTree/main.go:66 +0xc20
==================
==================
WARNING: DATA RACE
Read by goroutine 40:
  goTree/big.(*Float).MultiplyFloat64()
      /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/big/float.go:449 +0x581
  goTree/estimation.addLikelihoodAfterCoa()
      /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:244 +0x679
  goTree/estimation.makeCoalescence()
      /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:262 +0x57
  goTree/estimation.build1TreeCorrBiasStopEpoch()
      /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:755 +0x3848
  goTree/estimation.buildSomeTreesCorrBias()
      /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:163 +0x260
Previous write by goroutine 71:
  [failed to restore the stack]
Goroutine 40 (running) created at:
  goTree/estimation.buildTreesCorrBias()
      /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:208 +0x783
  goTree/estimation.buildTreesCorrBias()
      /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:247 +0x39
  main.main()
      /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/goTree/main.go:66 +0xc20
Goroutine 71 (running) created at:
  goTree/estimation.buildTreesCorrBias()
      /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:208 +0x783
  goTree/estimation.buildTreesCorrBias()
      /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:247 +0x39
  main.main()
      /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/goTree/main.go:66 +0xc20
==================
gopherbot commented 10 years ago

Comment 9 by eau.forest:

==================
WARNING: DATA RACE
Write by goroutine 28:
  goTree/dataObjects.(*MutationTable).UpdateAfterCoa()
      /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/dataObjects/mutationTable.go:83 +0x1cd
  goTree/estimation.makeCoalescence()
      /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:266 +0x219
  goTree/estimation.build1TreeCorrBiasStopEpoch()
      /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:755 +0x3848
  goTree/estimation.buildSomeTreesCorrBias()
      /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:163 +0x260
Previous read by goroutine 12:
  [failed to restore the stack]
Goroutine 28 (running) created at:
  goTree/estimation.buildTreesCorrBias()
      /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:208 +0x783
  goTree/estimation.buildTreesCorrBias()
      /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:247 +0x39
  main.main()
      /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/goTree/main.go:66 +0xc20
Goroutine 12 (running) created at:
  goTree/estimation.buildTreesCorrBias()
      /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:208 +0x783
  goTree/estimation.buildTreesCorrBias()
      /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:247 +0x39
  main.main()
      /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/goTree/main.go:66 +0xc20
==================
gopherbot commented 10 years ago

Comment 10 by eau.forest:

And the remaining output until it crashes:
==================
WARNING: DATA RACE
Write by goroutine 28:
  goTree/dataObjects.(*MutationTable).UpdateAfterCoa()
      /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/dataObjects/mutationTable.go:83 +0x1cd
  goTree/estimation.makeCoalescence()
      /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:266 +0x219
  goTree/estimation.build1TreeCorrBiasStopEpoch()
      /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:755 +0x3848
  goTree/estimation.buildSomeTreesCorrBias()
      /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:163 +0x260
Previous read by goroutine 12:
  [failed to restore the stack]
Goroutine 28 (running) created at:
  goTree/estimation.buildTreesCorrBias()
      /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:208 +0x783
  goTree/estimation.buildTreesCorrBias()
      /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:247 +0x39
  main.main()
      /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/goTree/main.go:66 +0xc20
Goroutine 12 (running) created at:
  goTree/estimation.buildTreesCorrBias()
      /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:208 +0x783
  goTree/estimation.buildTreesCorrBias()
      /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:247 +0x39
  main.main()
      /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/goTree/main.go:66 +0xc20
==================
==================
WARNING: DATA RACE
Read by goroutine 63:
  goTree/estimation.seqCanMutate()
      /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:95 +0x9a
  goTree/estimation.(*treeConstructor).ComputeMutationRate()
      /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:105 +0x154
  goTree/estimation.chooseEvent()
      /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:117 +0x7c
  goTree/estimation.build1TreeCorrBiasStopEpoch()
      /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:689 +0x1edc
  goTree/estimation.buildSomeTreesCorrBias()
      /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:163 +0x260
Previous write by goroutine 19:
  [failed to restore the stack]
Goroutine 63 (running) created at:
  goTree/estimation.buildTreesCorrBias()
      /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:208 +0x783
  goTree/estimation.buildTreesCorrBias()
      /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:247 +0x39
  main.main()
      /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/goTree/main.go:66 +0xc20
Goroutine 19 (running) created at:
  goTree/estimation.buildTreesCorrBias()
      /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:208 +0x783
  goTree/estimation.buildTreesCorrBias()
      /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:247 +0x39
  main.main()
      /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/goTree/main.go:66 +0xc20
==================
==================
WARNING: DATA RACE
Write by goroutine 47:
  goTree/dataObjects.(*MutationTable).UpdateAfterCoa()
      /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/dataObjects/mutationTable.go:88 +0x2ec
  goTree/estimation.makeCoalescence()
      /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:266 +0x219
  goTree/estimation.build1TreeCorrBiasStopEpoch()
      /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:755 +0x3848
  goTree/estimation.buildSomeTreesCorrBias()
      /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:163 +0x260
Previous write by goroutine 33:
  [failed to restore the stack]
Goroutine 47 (running) created at:
  goTree/estimation.buildTreesCorrBias()
      /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:208 +0x783
  goTree/estimation.buildTreesCorrBias()
      /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:247 +0x39
  main.main()
      /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/goTree/main.go:66 +0xc20
Goroutine 33 (running) created at:
  goTree/estimation.buildTreesCorrBias()
      /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:208 +0x783
  goTree/estimation.buildTreesCorrBias()
      /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:247 +0x39
  main.main()
      /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/goTree/main.go:66 +0xc20
==================
SIGSEGV: segmentation violation
PC=0x552843
invalid spdelta 482573 23
runtime: unexpected return pc for __tsan_read called from 0xc21b1ec00000
__tsan_read()
    ?:0 +0x43
goroutine 1727 [running]:
runtime: unexpected return pc for runtime.asmcgocall called from 0x3d
runtime.asmcgocall(0x3d, 0xc215a63500)
    /usr/local/go/src/pkg/runtime/asm_amd64.s:619 +0x2d fp=0x7fea983aa0c0
created by goTree/estimation.buildTreesPopSizes
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:589 +0x6be1
goroutine 1 [chan receive]:
goTree/estimation.buildTreesPopSizes(0xc22712c000, 0x3e8, 0x3e8, 0xc220cec000, 0x14, ...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:594 +0x6d02
goTree/estimation.TwoStepsPopSizeEpochEstimation(0xc22705c000, 0x8c0, 0x95e,
0xc21da6c280, 0x1, ...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/twoStepsEstimation.go:272 +0x845a
main.main()
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/goTree/main.go:66 +0xc21
goroutine 7 [finalizer wait]:
runtime.park(0x40de20, 0x786418, 0x772bc8)
    /usr/local/go/src/pkg/runtime/proc.c:1342 +0x66
runfinq()
    /usr/local/go/src/pkg/runtime/mgc0.c:2276 +0x84
runtime.goexit()
    /usr/local/go/src/pkg/runtime/proc.c:1394
goroutine 1734 [runnable]:
goTree/estimation.seqCanMutate(0x2, 0xc237792a00, 0x125, 0x125, 0x428c87, ...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:93 +0x48
goTree/estimation.(*treeConstructor).ComputeMutationRate(0xc21be77e00, 0x2, 0x11)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:105 +0x155
goTree/estimation.chooseEvent(0xc21be77e00, 0x2, 0x11, 0x0, 0x0)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:117 +0x7d
goTree/estimation.build1TreePopSize(0xc21b2fc8c0, 0x2, 0x2, 0x0, 0xc227be8de0, ...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:401 +0xf58
goTree/estimation.buildSomeTreesPopSizes(0xc238f67500, 0x26, 0x26, 0x14, 0xc22de2d540,
...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:498 +0x259
created by goTree/estimation.buildTreesPopSizes
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:589 +0x6be1
goroutine 1738 [runnable]:
goTree/dataObjects.(*Generation).SeqInGen(0x7fea9874a038, 0xc220cca8c0, 0x128, 0x13c,
0x4650bc, ...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/dataObjects/generation.go:102 +0x132
goTree/dataObjects.(*Generation).RemoveSeq(0xc2282f7d70, 0xc220cca8c0, 0x128, 0x13c,
0x128)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/dataObjects/generation.go:137 +0xae
goTree/estimation.makeMutation(0xc222898200, 0x1, 0x0)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:209 +0x434
goTree/estimation.build1TreePopSize(0xc2282f7d20, 0x2, 0x2, 0x0, 0xc22c74a960, ...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:364 +0x8c58
goTree/estimation.buildSomeTreesPopSizes(0xc2132c7500, 0x26, 0x26, 0x14, 0xc225987f60,
...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:498 +0x259
created by goTree/estimation.buildTreesPopSizes
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:589 +0x6be1
goroutine 1740 [runnable]:
goTree/dataObjects.(*Generation).SeqInGen(0x7fea98734038, 0xc22808f900, 0x169, 0x169,
0x4650bc, ...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/dataObjects/generation.go:102 +0x132
goTree/dataObjects.(*Generation).RemoveSeq(0xc224443820, 0xc22808f900, 0x169, 0x169,
0x169)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/dataObjects/generation.go:137 +0xae
goTree/estimation.makeMutation(0xc221dc8000, 0x0, 0xf)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:209 +0x434
goTree/estimation.build1TreePopSize(0xc224443820, 0x2, 0x2, 0x0, 0xc22cc77a80, ...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:427 +0x194e
goTree/estimation.buildSomeTreesPopSizes(0xc23187d500, 0x26, 0x26, 0x14, 0xc2296fb780,
...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:498 +0x259
created by goTree/estimation.buildTreesPopSizes
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:589 +0x6be1
goroutine 1733 [runnable]:
goTree/estimation.seqCanMutate(0x33, 0xc235f94a00, 0x12b, 0x12b, 0x428c87, ...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:93 +0x48
goTree/estimation.(*treeConstructor).ComputeMutationRate(0xc2196e8200, 0x0, 0x2)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:105 +0x155
goTree/estimation.chooseEvent(0xc2196e8200, 0x0, 0x2, 0x0, 0x0)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:117 +0x7d
goTree/estimation.build1TreePopSize(0xc22e313a00, 0x2, 0x2, 0x0, 0xc22a64db40, ...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:312 +0x6d9a
goTree/estimation.buildSomeTreesPopSizes(0xc238f63000, 0x26, 0x26, 0x14, 0xc2131b4040,
...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:498 +0x259
created by goTree/estimation.buildTreesPopSizes
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:589 +0x6be1
goroutine 1735 [runnable]:
goTree/dataObjects.(*Generation).SeqInGen(0x7fea98726038, 0xc2291ff6c0, 0x10e, 0x10e,
0xc2317fc000, ...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/dataObjects/generation.go:105 +0x27d
goTree/dataObjects.(*Generation).AddSeq(0xc238cd8aa0, 0xc2291ff6c0, 0x10e, 0x10e, 0xc)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/dataObjects/generation.go:114 +0xae
goTree/estimation.makeMutation(0xc222050e00, 0x0, 0x3)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:210 +0x4c2
goTree/estimation.build1TreePopSize(0xc238cd8aa0, 0x2, 0x2, 0x0, 0xc210a90ae0, ...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:364 +0x8c58
goTree/estimation.buildSomeTreesPopSizes(0xc215d95000, 0x26, 0x26, 0x14, 0xc21bf6eaa0,
...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:498 +0x259
created by goTree/estimation.buildTreesPopSizes
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:589 +0x6be1
goroutine 1739 [runnable]:
goTree/estimation.computeTimeNextEvent(0xc21b622000, 0x4, 0x4, 0x5c7930, 0xb)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:278 +0x473
goTree/estimation.build1TreePopSize(0xc21216a960, 0x2, 0x2, 0x0, 0xc227443480, ...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:337 +0x8889
goTree/estimation.buildSomeTreesPopSizes(0xc231879000, 0x26, 0x26, 0x14, 0xc2140ca400,
...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:498 +0x259
created by goTree/estimation.buildTreesPopSizes
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:589 +0x6be1
goroutine 1737 [runnable]:
goTree/dataObjects.(*Generation).SeqInGen(0xc220490cd0, 0xc223b05800, 0x185, 0x1da, 0x2,
...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/dataObjects/generation.go:102 +0x132
goTree/estimation.build1TreePopSize(0xc220490c80, 0x2, 0x2, 0x0, 0xc22c48b5a0, ...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:373 +0x9aae
goTree/estimation.buildSomeTreesPopSizes(0xc2132c3000, 0x26, 0x26, 0x14, 0xc214317a80,
...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:498 +0x259
created by goTree/estimation.buildTreesPopSizes
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:589 +0x6be1
goroutine 1736 [runnable]:
goTree/dataObjects.(*Generation).SeqInGen(0x7fea986b80e0, 0xc22291d8c0, 0x134, 0x13c,
0x427c4d, ...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/dataObjects/generation.go:102 +0x132
goTree/dataObjects.(*Generation).Coalesce(0xc210114140, 0xc22291d8c0, 0x134, 0x13c)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/dataObjects/generation.go:162 +0xa5
goTree/estimation.makeCoalescence(0xc234791000, 0x0, 0x2, 0x3, 0xc22291d8c0, ...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:264 +0xca
goTree/estimation.build1TreePopSize(0xc210114140, 0x2, 0x2, 0x0, 0xc2277e9180, ...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:374 +0x9b7a
goTree/estimation.buildSomeTreesPopSizes(0xc215d99500, 0x26, 0x26, 0x14, 0xc21584f080,
...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:498 +0x259
created by goTree/estimation.buildTreesPopSizes
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:589 +0x6be1
goroutine 1731 [runnable]:
goTree/dataObjects.(*Generation).SeqInGen(0x7fea98676038, 0xc220c758c0, 0x12d, 0x13c,
0x4650bc, ...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/dataObjects/generation.go:102 +0x132
goTree/dataObjects.(*Generation).RemoveSeq(0xc22beb2960, 0xc220c758c0, 0x12d, 0x13c,
0x12d)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/dataObjects/generation.go:137 +0xae
goTree/estimation.makeMutation(0xc217b4ce00, 0x0, 0x0)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:209 +0x434
goTree/estimation.build1TreePopSize(0xc22beb2960, 0x2, 0x2, 0x0, 0xc210187f60, ...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:364 +0x8c58
goTree/estimation.buildSomeTreesPopSizes(0xc21b767000, 0x26, 0x26, 0x14, 0xc23473b620,
...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:498 +0x259
created by goTree/estimation.buildTreesPopSizes
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:589 +0x6be1
goroutine 1730 [runnable]:
goTree/estimation.seqCanMutate(0x3c, 0xc214c32400, 0x123, 0x123, 0x428c87, ...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:93 +0x48
goTree/estimation.(*treeConstructor).ComputeMutationRate(0xc21262fc00, 0x0, 0x1)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:105 +0x155
goTree/estimation.chooseEvent(0xc21262fc00, 0x0, 0x1, 0x0, 0x0)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:117 +0x7d
goTree/estimation.build1TreePopSize(0xc22385ff00, 0x2, 0x2, 0x0, 0xc2273e9360, ...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:312 +0x6d9a
goTree/estimation.buildSomeTreesPopSizes(0xc2301b1000, 0x26, 0x26, 0x14, 0xc216f8a200,
...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:498 +0x259
created by goTree/estimation.buildTreesPopSizes
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:589 +0x6be1
goroutine 1732 [runnable]:
goTree/big.(*Float).MultiplyFloat64(0xc233f0bea0, 0x2b1ae5485623c566, 0x0, 0x0, 0x0, ...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/big/float.go:450 +0x7e4
goTree/estimation.addLikelihoodAfterMut(0xc2373f5800, 0x1, 0x5)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:184 +0x76b
goTree/estimation.makeMutation(0xc2373f5800, 0x1, 0x5)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:207 +0x3b6
goTree/estimation.build1TreePopSize(0xc21c8be280, 0x2, 0x2, 0x0, 0xc2272e5000, ...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:364 +0x8c58
goTree/estimation.buildSomeTreesPopSizes(0xc21b76b500, 0x26, 0x26, 0x14, 0xc217082b40,
...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:498 +0x259
created by goTree/estimation.buildTreesPopSizes
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:589 +0x6be1
goroutine 1728 [runnable]:
goTree/estimation.computeTimeNextEvent(0xc21b7e3400, 0x6, 0x6, 0x5c9110, 0x8)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:278 +0x473
goTree/estimation.build1TreePopSize(0xc22d546dc0, 0x2, 0x2, 0x0, 0xc21adf21e0, ...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:337 +0x8889
goTree/estimation.buildSomeTreesPopSizes(0xc2345e6000, 0x26, 0x26, 0x14, 0xc232445140,
...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:498 +0x259
created by goTree/estimation.buildTreesPopSizes
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:589 +0x6be1
goroutine 1729 [runnable]:
goTree/estimation.seqCanMutate(0x20, 0xc233065800, 0x157, 0x157, 0x428c87, ...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:93 +0x48
goTree/estimation.(*treeConstructor).ComputeMutationRate(0xc2223a0800, 0x0, 0x5)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:105 +0x155
goTree/estimation.chooseEvent(0xc2223a0800, 0x0, 0x5, 0x0, 0x0)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:117 +0x7d
goTree/estimation.build1TreePopSize(0xc216413c80, 0x2, 0x2, 0x0, 0xc2107fa240, ...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:312 +0x6d9a
goTree/estimation.buildSomeTreesPopSizes(0xc2345ea500, 0x26, 0x26, 0x14, 0xc22f3745c0,
...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:498 +0x259
created by goTree/estimation.buildTreesPopSizes
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:589 +0x6be1
goroutine 1741 [runnable]:
goTree/dataObjects.(*Generation).SeqInGen(0x7fea983fc038, 0xc2242407e0, 0x11d, 0x11d,
0x4650bc, ...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/dataObjects/generation.go:102 +0x132
goTree/dataObjects.(*Generation).RemoveSeq(0xc218a81960, 0xc2242407e0, 0x11d, 0x11d,
0x11d)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/dataObjects/generation.go:137 +0xae
goTree/estimation.makeMutation(0xc230360000, 0x0, 0x4)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:209 +0x434
goTree/estimation.build1TreePopSize(0xc218a81960, 0x2, 0x2, 0x0, 0xc210832420, ...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:364 +0x8c58
goTree/estimation.buildSomeTreesPopSizes(0xc21574a000, 0x26, 0x26, 0x14, 0xc224981d40,
...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:498 +0x259
created by goTree/estimation.buildTreesPopSizes
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:589 +0x6be1
goroutine 1742 [runnable]:
goTree/estimation.seqCanMutate(0x31, 0xc218527000, 0x119, 0x119, 0x428c87, ...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:93 +0x48
goTree/estimation.(*treeConstructor).ComputeMutationRate(0xc212b57c00, 0x1, 0x0)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:105 +0x155
goTree/estimation.chooseEvent(0xc212b57c00, 0x1, 0x0, 0x0, 0x0)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:117 +0x7d
goTree/estimation.build1TreePopSize(0xc228125640, 0x2, 0x2, 0x0, 0xc22bcf8120, ...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:312 +0x6d9a
goTree/estimation.buildSomeTreesPopSizes(0xc21574e500, 0x26, 0x26, 0x14, 0xc233f60140,
...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:498 +0x259
created by goTree/estimation.buildTreesPopSizes
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:589 +0x6be1
goroutine 1743 [runnable]:
goTree/estimation.seqCanMutate(0x51, 0xc22f25d800, 0x100, 0x100, 0x428c87, ...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:93 +0x48
goTree/estimation.(*treeConstructor).ComputeMutationRate(0xc22e70b200, 0x0, 0x0)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:105 +0x155
goTree/estimation.chooseEvent(0xc22e70b200, 0x0, 0x0, 0x0, 0x0)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:117 +0x7d
goTree/estimation.build1TreePopSize(0xc228825aa0, 0x2, 0x2, 0x0, 0xc2273d1e40, ...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:312 +0x6d9a
goTree/estimation.buildSomeTreesPopSizes(0xc21ad2d000, 0x26, 0x26, 0x14, 0xc22e011520,
...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:498 +0x259
created by goTree/estimation.buildTreesPopSizes
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:589 +0x6be1
goroutine 1744 [runnable]:
goTree/dataObjects.(*Generation).SeqInGen(0x7fea986fe038, 0xc236a50780, 0x12e, 0x12e,
0xc225942000, ...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/dataObjects/generation.go:105 +0x27d
goTree/dataObjects.(*Generation).AddSeq(0xc2166c2000, 0xc236a50780, 0x12e, 0x12e, 0x29)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/dataObjects/generation.go:114 +0xae
goTree/estimation.makeMutation(0xc22dabc800, 0x0, 0x0)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:210 +0x4c2
goTree/estimation.build1TreePopSize(0xc2166c2000, 0x2, 0x2, 0x0, 0xc21ca79cc0, ...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:364 +0x8c58
goTree/estimation.buildSomeTreesPopSizes(0xc21ad31500, 0x26, 0x26, 0x14, 0xc2162cb960,
...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:498 +0x259
created by goTree/estimation.buildTreesPopSizes
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:589 +0x6be1
goroutine 1745 [runnable]:
goTree/estimation.chooseMutation(0xc221b84e00, 0x0)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:163 +0xddf
goTree/estimation.makeMutation(0xc221b84e00, 0x0, 0x3)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:201 +0x43
goTree/estimation.build1TreePopSize(0xc210355be0, 0x2, 0x2, 0x0, 0xc2170c6cc0, ...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:364 +0x8c58
goTree/estimation.buildSomeTreesPopSizes(0xc23125f000, 0x26, 0x26, 0x14, 0xc2347c2d40,
...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:498 +0x259
created by goTree/estimation.buildTreesPopSizes
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:589 +0x6be1
goroutine 1746 [runnable]:
goTree/dataObjects.(*Generation).SeqInGen(0x7fea9807f038, 0xc223f33c80, 0x103, 0x13c,
0x4650bc, ...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/dataObjects/generation.go:102 +0x132
goTree/dataObjects.(*Generation).RemoveSeq(0xc218fa64b0, 0xc223f33c80, 0x103, 0x13c,
0x103)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/dataObjects/generation.go:137 +0xae
goTree/estimation.makeMutation(0xc21c9ebc00, 0x1, 0x2)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:209 +0x434
goTree/estimation.build1TreePopSize(0xc218fa6460, 0x2, 0x2, 0x0, 0xc227352240, ...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:364 +0x8c58
goTree/estimation.buildSomeTreesPopSizes(0xc231263500, 0x26, 0x26, 0x14, 0xc2379b40e0,
...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:498 +0x259
created by goTree/estimation.buildTreesPopSizes
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:589 +0x6be1
goroutine 1747 [runnable]:
goTree/dataObjects.(*Generation).SeqInGen(0x7fea9809d038, 0xc21ae2d480, 0x118, 0x118,
0xc235677000, ...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/dataObjects/generation.go:102 +0x132
goTree/dataObjects.(*Generation).AddSeq(0xc210fc7140, 0xc21ae2d480, 0x118, 0x118, 0x14)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/dataObjects/generation.go:114 +0xae
goTree/estimation.makeMutation(0xc2286ac400, 0x0, 0x0)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:210 +0x4c2
goTree/estimation.build1TreePopSize(0xc210fc7140, 0x2, 0x2, 0x0, 0xc227451f60, ...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:364 +0x8c58
goTree/estimation.buildSomeTreesPopSizes(0xc2356be000, 0x26, 0x26, 0x14, 0xc233f88540,
...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:498 +0x259
created by goTree/estimation.buildTreesPopSizes
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:589 +0x6be1
goroutine 1748 [runnable]:
goTree/estimation.computeTimeNextEvent(0xc22e0aaa00, 0x5, 0x5, 0x5c9110, 0x8)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:278 +0x473
goTree/estimation.build1TreePopSize(0xc22e402f00, 0x2, 0x2, 0x0, 0xc22d428480, ...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:337 +0x8889
goTree/estimation.buildSomeTreesPopSizes(0xc2356c2500, 0x26, 0x26, 0x14, 0xc214e4bb20,
...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:498 +0x259
created by goTree/estimation.buildTreesPopSizes
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:589 +0x6be1
goroutine 1749 [runnable]:
goTree/estimation.build1TreePopSize(0xc22c5c0b40, 0x2, 0x2, 0x0, 0xc22a676540, ...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:378 +0xa4ce
goTree/estimation.buildSomeTreesPopSizes(0xc213886000, 0x26, 0x26, 0x14, 0xc233ee32a0,
...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:498 +0x259
created by goTree/estimation.buildTreesPopSizes
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:589 +0x6be1
goroutine 1750 [runnable]:
goTree/estimation.build1TreePopSize(0xc21b64c500, 0x2, 0x2, 0x0, 0xc210382780, ...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:381 +0xb082
goTree/estimation.buildSomeTreesPopSizes(0xc21388a500, 0x26, 0x26, 0x14, 0xc23918a6c0,
...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:498 +0x259
created by goTree/estimation.buildTreesPopSizes
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:589 +0x6be1
goroutine 1751 [runnable]:
goTree/estimation.seqCanMutate(0x2, 0xc2147e5400, 0x16c, 0x16c, 0x428c87, ...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:93 +0x48
goTree/estimation.(*treeConstructor).ComputeMutationRate(0xc2176f8a00, 0x2, 0x12)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:105 +0x155
goTree/estimation.chooseEvent(0xc2176f8a00, 0x2, 0x12, 0x0, 0x0)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:117 +0x7d
goTree/estimation.build1TreePopSize(0xc214aff960, 0x2, 0x2, 0x0, 0xc22795c3c0, ...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:401 +0xf58
goTree/estimation.buildSomeTreesPopSizes(0xc21b666000, 0x26, 0x26, 0x14, 0xc2184d0a60,
...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:498 +0x259
created by goTree/estimation.buildTreesPopSizes
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:589 +0x6be1
goroutine 1752 [runnable]:
goTree/estimation.seqCanMutate(0x44, 0xc2109b1000, 0xfa, 0xfa, 0x428c87, ...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:93 +0x48
goTree/estimation.(*treeConstructor).ComputeMutationRate(0xc22de84400, 0x0, 0x0)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:105 +0x155
goTree/estimation.chooseEvent(0xc22de84400, 0x0, 0x0, 0x0, 0x0)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:117 +0x7d
goTree/estimation.build1TreePopSize(0xc22c9acf00, 0x2, 0x2, 0x0, 0xc22720b120, ...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/build1Tree.go:312 +0x6d9a
goTree/estimation.buildSomeTreesPopSizes(0xc22e014000, 0x32, 0x32, 0x14, 0xc218f615c0,
...)
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:498 +0x259
created by goTree/estimation.buildTreesPopSizes
    /data/smew/not-backed-up/forest/cephi/goTree/src/goTree/estimation/buildTrees.go:589 +0x6be1
rax     0x200000000000
rbx     0x0
rcx     0x7fea983a9fe0
rdx     0x45b1bd
rdi     0x0
rsi     0xc21d04c15d
rbp     0x230874130560
rsp     0x7fea577fddb0
r8      0xc210a83c60
r9      0x7fea983a9f78
r10     0x1
r11     0xa
r12     0x80
r13     0x71
r14     0x0
r15     0x0
rip     0x552843
rflags  0x10217
cs      0x33
fs      0x0
gs      0x0
Traceback (
bradfitz commented 10 years ago

Comment 11:

Looks like you have a bug (data race) in your program, so closing this issue.
Feel free to re-open if you still see crashes after you fix your race.

Status changed to Invalid.

gopherbot commented 10 years ago

Comment 12 by eau.forest:

But why, I do I get Warning (data race ) only on this Fedora computer but I don't get
any Warning, when I run my program built with -race, on a Ubuntu and Mac computer ? This
is what I don't get.
bradfitz commented 10 years ago

Comment 13:

Luck.
The race detector is a dynamic check.  It actually has to see a race happen to report
it.  It's not a static check.  It doesn't prove the correctness or incorrectness of your
program from static analysis.
It just so happens due to timing, only one of your computers is triggering this race,
but the code is still buggy.
gopherbot commented 10 years ago

Comment 14 by eau.forest:

Ok, now I don't have any data race when build with -race on Fedora 18, but it still
crashes when run in parallel on Fedora 18 (tested on 2 different severs). It crashes at
different part of my code (that are tested), always related to objects that I used in
the parallel part of the code. But it never crashes on Ubuntu or MacOSX, tried on four
different  computers and on Amazon cloud services.  
This is really strange and I am wondering if it might be related to Fedora. Any idea ?
davecheney commented 10 years ago

Comment 15:

@eau. This issue is closed, please don't continue to comment on it, it is likely that
nobody would respond.
I'd recommend posting to the mailing list or if you want opening a new issue. If you
choose either path, please include a link to your code so others can try to reproduce
the issue.