Segmentation fault in jupyter notebook but not REPL?

Hi everyone,

I’ve run into an extremely bizarre issue. When running Julia code, which calls Fortran code via CCall, I get a Stack Overflow Error when a particular subroutine is called in Fortran. This however, only happens when running it from a Jupyter notebook.

What is more puzzling is that when run from a REPL using:

using NBInclude
@nbinclude("test.ipynb")

it works without issue. Has anyone run into this before?