<div dir="ltr"><div dir="ltr">On Sat, May 1, 2021 at 9:28 AM Peder Axensten <<a href="mailto:Peder.Axensten@slu.se">Peder.Axensten@slu.se</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I followed your advice and found a couple of issues that I’m happy I identified and fixed, one of which was related to the problem I had. In OS X all now compiles and runs without any error or warning, even with saitizers on. Also in Ubuntu under Docker if I compile without sanitizers. So thank you Andrew for the advice, my problem is solved.<br>
<br>
However, if I compile in Ubuntu with sanitizers on there are things flagged that seem unrelated to my code.<br>
<br>
==9474==ERROR: LeakSanitizer: detected memory leaks<br>
Direct leak of 15 byte(s) in 1 object(s) allocated from:<br>
    #0 0x7f8275f9f9f7 in __interceptor_strdup ../../../../src/libsanitizer/asan/asan_interceptors.cpp:454<br>
    #1 0x7f82741c2fb7 in __static_initialization_and_destruction_0 /tmp/PDAL/vendor/kazhdan/Ply.h:206<br>
SUMMARY: AddressSanitizer: 15 byte(s) leaked in 1 allocation(s).<br></blockquote><div><br></div><div>I'll look at this if I remember, but it's 15 bytes. ;)<br><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Also, reading a file that it reads with sanitizers off, I get an exception from pdal:<br>
'Invalid VLR offset - exceeds file size’.<br></blockquote><div><br></div><div>This says that you have a bad VLR and a corrupt LAS file.  You should contact the provider of your file and request a valid file.</div></div><div><br></div>-- <br><div dir="ltr" class="gmail_signature">Andrew Bell<br><a href="mailto:andrew.bell.ia@gmail.com" target="_blank">andrew.bell.ia@gmail.com</a></div></div>