Skip to content

Instantly share code, notes, and snippets.

@jeamland
Created October 24, 2012 00:26
Show Gist options
  • Save jeamland/3942961 to your computer and use it in GitHub Desktop.
Save jeamland/3942961 to your computer and use it in GitHub Desktop.
valgrind raster2pgsql dtm20m
==10786== Memcheck, a memory error detector
==10786== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al.
==10786== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info
==10786== Command: raster2pgsql dtm20m
==10786==
Processing 1/1: dtm20m
==10786== Warning: set address range perms: large range [0x395a5040, 0x68312b40) (undefined)
==10786== Invalid write of size 4
==10786== at 0x40D3C3: ??? (in /usr/bin/raster2pgsql)
==10786== by 0x4108F5: ??? (in /usr/bin/raster2pgsql)
==10786== by 0x40797E: ??? (in /usr/bin/raster2pgsql)
==10786== by 0x4041AE: ??? (in /usr/bin/raster2pgsql)
==10786== by 0x5FD076C: (below main) (libc-start.c:226)
==10786== Address 0x68312b40 is 0 bytes after a block of size 785,832,704 alloc'd
==10786== at 0x4C2B6CD: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==10786== by 0x40D23E: ??? (in /usr/bin/raster2pgsql)
==10786== by 0x4108F5: ??? (in /usr/bin/raster2pgsql)
==10786== by 0x40797E: ??? (in /usr/bin/raster2pgsql)
==10786== by 0x4041AE: ??? (in /usr/bin/raster2pgsql)
==10786== by 0x5FD076C: (below main) (libc-start.c:226)
==10786==
==10786== Invalid write of size 4
==10786== at 0x40D3B8: ??? (in /usr/bin/raster2pgsql)
==10786== by 0x4108F5: ??? (in /usr/bin/raster2pgsql)
==10786== by 0x40797E: ??? (in /usr/bin/raster2pgsql)
==10786== by 0x4041AE: ??? (in /usr/bin/raster2pgsql)
==10786== by 0x5FD076C: (below main) (libc-start.c:226)
==10786== Address 0x68312b44 is 4 bytes after a block of size 785,832,704 alloc'd
==10786== at 0x4C2B6CD: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==10786== by 0x40D23E: ??? (in /usr/bin/raster2pgsql)
==10786== by 0x4108F5: ??? (in /usr/bin/raster2pgsql)
==10786== by 0x40797E: ??? (in /usr/bin/raster2pgsql)
==10786== by 0x4041AE: ??? (in /usr/bin/raster2pgsql)
==10786== by 0x5FD076C: (below main) (libc-start.c:226)
==10786==
==10786==
==10786== Process terminating with default action of signal 11 (SIGSEGV)
==10786== Access not within mapped region at address 0x68313000
==10786== at 0x40D3C3: ??? (in /usr/bin/raster2pgsql)
==10786== by 0x4108F5: ??? (in /usr/bin/raster2pgsql)
==10786== by 0x40797E: ??? (in /usr/bin/raster2pgsql)
==10786== by 0x4041AE: ??? (in /usr/bin/raster2pgsql)
==10786== by 0x5FD076C: (below main) (libc-start.c:226)
==10786== If you believe this happened as a result of a stack
==10786== overflow in your program's main thread (unlikely but
==10786== possible), you can try to increase the size of the
==10786== main thread stack using the --main-stacksize= flag.
==10786== The main thread stack size used in this run was 8388608.
==10786==
==10786== HEAP SUMMARY:
==10786== in use at exit: 786,032,401 bytes in 1,609 blocks
==10786== total heap usage: 4,739 allocs, 3,130 frees, 786,442,069 bytes allocated
==10786==
==10786== LEAK SUMMARY:
==10786== definitely lost: 0 bytes in 0 blocks
==10786== indirectly lost: 0 bytes in 0 blocks
==10786== possibly lost: 785,837,140 bytes in 141 blocks
==10786== still reachable: 195,261 bytes in 1,468 blocks
==10786== suppressed: 0 bytes in 0 blocks
==10786== Rerun with --leak-check=full to see details of leaked memory
==10786==
==10786== For counts of detected and suppressed errors, rerun with: -v
==10786== ERROR SUMMARY: 305 errors from 2 contexts (suppressed: 2 from 2)
Segmentation fault (core dumped)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment