[pdal] Intermittent crash calling LasReader::execute( PointTable )

Peder Axensten Peder.Axensten at slu.se
Sat May 1 08:01:00 PDT 2021



1 maj 2021 kl. 16:11 skrev Andrew Bell <andrew.bell.ia at gmail.com>:


On Sat, May 1, 2021 at 9:28 AM Peder Axensten <Peder.Axensten at slu.se<mailto:Peder.Axensten at slu.se>> wrote:
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.

However, if I compile in Ubuntu with sanitizers on there are things flagged that seem unrelated to my code.

==9474==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 15 byte(s) in 1 object(s) allocated from:
    #0 0x7f8275f9f9f7 in __interceptor_strdup ../../../../src/libsanitizer/asan/asan_interceptors.cpp:454
    #1 0x7f82741c2fb7 in __static_initialization_and_destruction_0 /tmp/PDAL/vendor/kazhdan/Ply.h:206
SUMMARY: AddressSanitizer: 15 byte(s) leaked in 1 allocation(s).

I'll look at this if I remember, but it's 15 bytes. ;)

Yes :-).
And it was the only pdal one – gdal had more…

Also, reading a file that it reads with sanitizers off, I get an exception from pdal:
'Invalid VLR offset - exceeds file size’.

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.

I can open the file with lasinfo as well as pdal info without a problem on both OS X and Docker/Ubuntu (I tried it again just now). And it reads fine in my code in all cases except Ubuntu+sanitizers. The file in question is choosen from a set of 60000+ files produced in the same manner by the Swedish mapping, cadastral and land registration authoroty as part of the official national scan – and this is the only occurance of this problem I have seen. We have previously processed all files using pdal tools in Docker/Ubuntu… I really find it hard to believe it is corrupt, although I can’t prove it.

– If the file is corrupt, should not pdal say so also without sanitisers?
– And if the file is not corrupt, is this something that needs looking into?

--
Andrew Bell
andrew.bell.ia at gmail.com<mailto:andrew.bell.ia at gmail.com>

---
När du skickar e-post till SLU så innebär detta att SLU behandlar dina personuppgifter. För att läsa mer om hur detta går till, klicka här <https://www.slu.se/om-slu/kontakta-slu/personuppgifter/>
E-mailing SLU will result in SLU processing your personal data. For more information on how this is done, click here <https://www.slu.se/en/about-slu/contact-slu/personal-data/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/pdal/attachments/20210501/0a3aab48/attachment-0001.html>


More information about the pdal mailing list