{"action":"created","issue":{"url":"https://api.github.com/repos/PDAL/PDAL/issues/854","labels_url":"https://api.github.com/repos/PDAL/PDAL/issues/854/labels{/name}","comments_url":"https://api.github.com/repos/PDAL/PDAL/issues/854/comments","events_url":"https://api.github.com/repos/PDAL/PDAL/issues/854/events","html_url":"https://github.com/PDAL/PDAL/issues/854","id":65327484,"number":854,"title":"StageFactory initialization - buffer overflow and termination","user":{"login":"connormanning","id":5015470,"avatar_url":"https://avatars.githubusercontent.com/u/5015470?v=3","gravatar_id":"","url":"https://api.github.com/users/connormanning","html_url":"https://github.com/connormanning","followers_url":"https://api.github.com/users/connormanning/followers","following_url":"https://api.github.com/users/connormanning/following{/other_user}","gists_url":"https://api.github.com/users/connormanning/gists{/gist_id}","starred_url":"https://api.github.com/users/connormanning/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/connormanning/subscriptions","organizations_url":"https://api.github.com/users/connormanning/orgs","repos_url":"https://api.github.com/users/connormanning/repos","events_url":"https://api.github.com/users/connormanning/events{/privacy}","received_events_url":"https://api.github.com/users/connormanning/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-30T23:31:07Z","updated_at":"2015-03-31T01:23:09Z","closed_at":null,"body":"Output from PDAL info:\r\n\r\n```\r\n~/pdal$ ./bin/pdal info ../autzen.las\r\n*** buffer overflow detected ***: ./bin/pdal terminated\r\n======= Backtrace: =========\r\n/lib/x86_64-linux-gnu/libc.so.6(+0x7338f)[0x7f7d4648038f]\r\n/lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x5c)[0x7f7d46517c9c]\r\n/lib/x86_64-linux-gnu/libc.so.6(+0x109b60)[0x7f7d46516b60]\r\n/home/ubuntu/pdal/lib/libpdalcpp.so(BpfReader_InitPlugin+0x64)[0x7f7d46df5664]\r\n/home/ubuntu/pdal/lib/libpdalcpp.so(_ZN4pdal13PluginManager16initializePluginEPFPFivEvE+0x13)[0x7f7d46db5553]\r\n/home/ubuntu/pdal/lib/libpdalcpp.so(_ZN4pdal12StageFactoryC1Eb+0xe4)[0x7f7d46dcb684]\r\n/home/ubuntu/pdal/lib/libpdalcpp.so(_ZN4pdal13KernelSupport12makePipelineERKSs+0x3d)[0x7f7d46d8af1d]\r\n/home/ubuntu/pdal/lib/libpdalcpp.so(_ZN4pdal10InfoKernel7executeEv+0x2a5)[0x7f7d46e965f5]\r\n/home/ubuntu/pdal/lib/libpdalcpp.so(_ZN4pdal6Kernel8innerRunEv+0x4f)[0x7f7d46d7dedf]\r\n/home/ubuntu/pdal/lib/libpdalcpp.so(_ZN4pdal6Kernel12do_executionEv+0x19)[0x7f7d46d7e089]\r\n/home/ubuntu/pdal/lib/libpdalcpp.so(_ZN4pdal6Kernel3runEiPPKcRKSs+0x44)[0x7f7d46d7e3b4]\r\n./bin/pdal(main+0x26d)[0x4052bd]\r\n/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5)[0x7f7d4642eec5]\r\n./bin/pdal[0x406108] \r\n======= Memory map: ========\r\n(Omitted for brevity - see gist below for full output)\r\n```\r\n\r\nFull output gist [here](https://gist.github.com/connormanning/504e9e7ab4ac0ecc7acc).\r\n\r\nIt seems like the StageFactory fails to initialize the `io` drivers, after successfully initializing the filters (I assume, since their initializers occur earlier in the StageFactory constructor).  I've tried commenting out the plugin registrations of the BpfReader and Writer, at which point I get an almost identical output except with LasReader as the culprit.  I am almost certain that this is a configuration issue rather than a PDAL issue since I can only reproduce this error on an EC2 Ubuntu instance and nowhere else, and going back to SHAs from weeks ago on that machine (that have since been heavily used/tested) gives me the same types of errors.  Unit tests all fail and spew identical error messages.\r\n\r\nThe most recent SHA I ran was da41bb3424822c82ef176eb330b6e0f18aa08dd3.  Cmake configuration:\r\n\r\n```\r\n~/pdal$ cmake   -G \"Unix Makefiles\" \\\r\n>         -DCMAKE_BUILD_TYPE=Release \\\r\n>         -DCMAKE_INSTALL_PREFIX=/usr \\\r\n>         -DWITH_GEOTIFF=ON \\\r\n>         -DWITH_LASZIP=ON \\\r\n>         -DWITH_LAZPERF=ON  .\r\n-- Boost version: 1.54.0\r\n-- Found the following Boost libraries:\r\n--   program_options\r\n--   iostreams\r\n--   filesystem\r\n--   system\r\n--   thread\r\n--\r\n-- The following features have been enabled:\r\n\r\n * PDAL application , the PDAL command line application\r\n * PostgreSQL PointCloud plugin , read/write PostgreSQL PointCloud objects\r\n\r\n-- The following OPTIONAL packages have been found:\r\n\r\n * PkgConfig\r\n * LibXml2\r\n * GEOS (required version >= 3.3)\r\n   Provides general purpose geometry support\r\n * GeoTIFF (required version >= 1.3.0)\r\n * Lazperf\r\n\r\n-- The following RECOMMENDED packages have been found:\r\n\r\n * LASzip\r\n   Provides LASzip compression\r\n   Provides LASzip compression\r\n\r\n-- The following REQUIRED packages have been found:\r\n\r\n * Boost (required version >= 1.53)\r\n   Boost provides fundamental functionality for PDAL\r\n * GDAL (required version >= 1.9.0)\r\n   Provides general purpose raster, vector, and reference system support\r\n * Threads , The thread library of the system\r\n * ZLIB\r\n   Compression support in BPF\r\n * PostgreSQL\r\n\r\n-- The following features have been disabled:\r\n\r\n * Attribute plugin , apply attributes to a subset of points\r\n * CPD plugin , run Coherent Point Drift on two datasets\r\n * GeoWave plugin , Read and Write data using GeoWave\r\n * Greyhound plugin , read points from a Greyhound server\r\n * Hexbin plugin , determine boundary and density of a point cloud\r\n * Icebridge plugin , read data in the Icebridge format\r\n * MrSID plugin , read data in the MrSID format\r\n * NITF plugin , read/write LAS data wrapped in NITF\r\n * PCL plugin , provides PCL-based readers, writers, filters, and kernels\r\n * SQLite plugin , read/write SQLite objects\r\n * RiVLib plugin , read data in the RXP format\r\n * Python plugin , add features that depend on python\r\n * Unit tests , PDAL unit tests\r\n\r\n-- Configuring done\r\n-- Generating done\r\n-- Build files have been written to: /home/ubuntu/pdal\r\n```"},"comment":{"url":"https://api.github.com/repos/PDAL/PDAL/issues/comments/87893265","html_url":"https://github.com/PDAL/PDAL/issues/854#issuecomment-87893265","issue_url":"https://api.github.com/repos/PDAL/PDAL/issues/854","id":87893265,"user":{"login":"hobu","id":87751,"avatar_url":"https://avatars.githubusercontent.com/u/87751?v=3","gravatar_id":"","url":"https://api.github.com/users/hobu","html_url":"https://github.com/hobu","followers_url":"https://api.github.com/users/hobu/followers","following_url":"https://api.github.com/users/hobu/following{/other_user}","gists_url":"https://api.github.com/users/hobu/gists{/gist_id}","starred_url":"https://api.github.com/users/hobu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hobu/subscriptions","organizations_url":"https://api.github.com/users/hobu/orgs","repos_url":"https://api.github.com/users/hobu/repos","events_url":"https://api.github.com/users/hobu/events{/privacy}","received_events_url":"https://api.github.com/users/hobu/received_events","type":"User","site_admin":false},"created_at":"2015-03-31T01:23:09Z","updated_at":"2015-03-31T01:23:09Z","body":"Yeah, @connormanning was only doing \r\n\r\n`~/pdal$ ./bin/pdal info ../autzen.las`\r\n"}}