<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="font-family: 'Segoe UI',Frutiger,'Frutiger Linotype','Dejavu Sans','Helvetica Neue',Arial,sans-serif; font-size: 14px;">
<div class="hiri-body-wrapper" contenteditable="true">
<div><br>
Just to follow up a little bit; I realized from looking at README.envvar just now that the default value of ABT_THREAD_STACKSIZE is 16K. That's almost certainly too low for us because we have ULTs that make calls into a variety of system libraries (including
fairly big things like libfabric) that are beyond our control.<br>
<br>
It seems likely that we will have to run with a larger stack size, but I would still like to have a better understanding of where the problem paths are, and how much head room we really need, if anyone has suggestions.<br>
<br>
thanks!<br>
-Phil</div>
</div>
<div class="hiri-extra" contenteditable="false">
<p>On 2019-02-21 15:31:53-05:00 Carns, Philip H. via discuss wrote:</p>
<blockquote style="padding-left:10px; border-left:1px solid #ccc; margin:0">
<div>
<div class="hiri-body-wrapper">
<div>Hi all, <br>
<br>
There is a little bit of back story on <a _src="https://github.com/pmodels/argobots/issues/93" href="https://github.com/pmodels/argobots/issues/93">https://github.com/pmodels/argobots/issues/93</a> , but make a long story short we have realized that we have
some code that is overflowing the stack in Argobots. Many thanks to Shintaro for his help and insight or we may have never figured this out. We can work around the problem with `export <code>ABT_THREAD_STACKSIZE=$((1024 * 1024))`. This not only fixes a
Power8 test case for us, but also appears to solve a different frustrating, nonsensical segmentation fault that we've been chasing with a different code permutation on x86_64.<br>
<br>
Any suggestions on how to track down what's triggering this in our code or get a better idea of how much stack we need? </code><span style="font-family: monospace;">We are using a considerable number of libraries, many of which are not maintained by us, so
I don't even know where to start looking yet. </span>My usual go to tool for this would be asan in gcc or clang, but I don't think that will work correctly with Argobots, and maybe there is a better solution anyway. </div>
<div><br>
thanks,<br>
-Phil</div>
</div>
</div>
</blockquote>
</div>
</body>
</html>