<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Paul,</div><div class=""><br class=""></div><div class="">unless I hear otherwise I would currently assume this issue is there for your binary/your build only. Could you make sure you are indeed building the latest master and nothing else? Perhaps do a make distclean and git reset —hard origin/master first and then start again with make.</div><br class=""><div><blockquote type="cite" class=""><div class="">On 14.12.2014, at 15:39, Paul Sargent <<a href="mailto:paul.lionseye@icloud.com" class="">paul.lionseye@icloud.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">This is on the current head (9fe458ea2e30), running on Mac OS 10.10.1.<div class=""><br class=""></div><div class="">What I did was:</div><div class=""><br class=""></div><div class=""><div class=""><font face="Inconsolata" class=""># make clean</font></div><div class=""><font face="Inconsolata" class=""># qmake INCLUDEPATH+="/usr/local/include /usr/local/Cellar/sqlite/3.8.7.1/include" LIBS+="-L/usr/local/Cellar/sqlite/3.8.7.1/lib -L/usr/local/lib" -config debug</font></div></div><div class=""><font face="Inconsolata" class=""># make</font></div><div class=""><font face="Inconsolata" class=""># open Subsurface.app</font></div></div></div></blockquote><div><br class=""></div><div>BTW, in my Mac build directories, I created a soft link <span style="font-size: 11px;" class="">subsurface -> Subsurface.app/Contents/MacOS/Subsurface so I can run the binary as</span></div><div><span style="font-size: 11px;" class=""><br class=""></span></div><div><span style="font-size: 11px;" class="">./subsurface</span></div><div><span style="font-size: 11px;" class=""><br class=""></span></div><div><span style="font-size: 11px;" class="">which gives me STDOUT/STDERR on the terminal (which opening the Subsurface.app doesn’t). The disadvantage is that this runs it without an icon and the window opens in the back rather than in the front.</span></div><br class=""><blockquote type="cite" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Attaching the debugger gave:</div><div class=""><br class=""></div><div class=""><div class=""><font face="Inconsolata" class="">* thread #1: tid = 0x7eef0, 0x00000001084e41c3 subsurface`fill_missing_tank_pressures(dive=0x00038a4008774e80, pi=0x00007fff5774eef8, track_pr=0x00007fff5774ec20, o2_flag=false) + 675 at gaspressures.c:301, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=EXC_I386_GPFLT)</font></div><div class=""><font face="Inconsolata" class="">    frame #0: 0x00000001084e41c3 subsurface`fill_missing_tank_pressures(dive=0x00038a4008774e80, pi=0x00007fff5774eef8, track_pr=0x00007fff5774ec20, o2_flag=false) + 675 at gaspressures.c:301</font></div><div class=""><font face="Inconsolata" class="">   298</font></div><div class=""><font face="Inconsolata" class="">   299 <span class="Apple-tab-span" style="white-space:pre">                 </span>// If there is a valid segment but no tank pressure ..</font></div><div class=""><font face="Inconsolata" class="">   300 <span class="Apple-tab-span" style="white-space:pre">                  </span>interpolate = get_pr_interpolate_data(segment, pi, i, pressure); // Set up an interpolation structure</font></div><div class=""><font face="Inconsolata" class="">-> 301 <span class="Apple-tab-span" style="white-space:pre">                  </span>if(dive->cylinder[cyl].cylinder_use == OC_GAS) {</font></div><div class=""><font face="Inconsolata" class="">   302</font></div><div class=""><font face="Inconsolata" class="">   303 <span class="Apple-tab-span" style="white-space:pre">                          </span>/* if this segment has pressure_time, then calculate a new interpolated pressure */</font></div><div class=""><font face="Inconsolata" class="">   304 <span class="Apple-tab-span" style="white-space:pre">                             </span>if (interpolate.pressure_time) {</font></div></div><div class=""><font face="Inconsolata" class=""><br class=""></font></div><div class=""><div class=""><font face="Inconsolata" class="">(lldb) p cyl</font></div><div class=""><font face="Inconsolata" class="">(int) $0 = -1</font></div></div></div></blockquote></div><div><br class=""></div><div>Hmm, unless this is originating from uninitialized memory, a cylinder number -1 could only come from <span style="font-size: 11px;" class="">dive->oxygen_cylinder_index (or the corresponding function </span><b style="color: rgb(195, 55, 32); font-size: 11px;" class="">get_cylinder</b><span style="font-size: 11px;" class="">_idx_by_use() if no oxygen cylinder is defined. In the place you quote, however, since commit 13934b0f this should have been caught a few lines above. Are you sure you have that commit?</span></div><div><span style="font-size: 11px;" class=""><br class=""></span></div><div><span style="font-size: 11px;" class="">Best</span></div><div><span style="font-size: 11px;" class="">Robert</span></div><div><span style="font-size: 11px;" class=""><br class=""></span></div><br class=""></body></html>