Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Segfault in optimizing for simple exponential model #545
This issue ported over from here.
I want to first thank the developers for an awesome software package that has helped me extensively in several projects.
This bug doesn't really affect me, but I felt like I should report it anyways. With a specific model/data combination and a specific random seed, I observe a segfault when invoking the optimizing function. The model is rather simple.
Steps to reproduce:
This only seems to occur for a specific PRNG state.
Facts about the platform this was discovered on:
OS: Mac OS High Sierra 10.13.2
R: R version 3.4.3 (2017-11-30) -- "Kite-Eating Tree"
rstan (Version 2.17.3, GitRev: 2e1f913)
R was executed directly from a bash terminal.
Well, I tried on the last released version of CmdStan and had segfault for some particular seed too. So I don't think it's a RStan issue.
This is the seed I used:
And exp.rdump file has
Thanks for following up. I'll move this to a Stan issue. With that seed, it prints 20 or 30 repetitions of: Error evaluating model log probability: Non-finite gradient. then goes into a busy infinite loop where it takes 100% of the CPU, but doesn't produce any output on the terminal.