[Gdal-dev] ogr2ogr on Red Hat Advanced Server 2.1 vs. Red Hat 9
Doug_Newcomb at fws.gov
Doug_Newcomb at fws.gov
Fri Sep 5 10:12:06 EDT 2003
Frank,
I have repeated the crash on the Red Hat 9 box (using gdal 1.1.9
compiled from source) . Valgrind output as follows:
We seem to have the following pattern repeating
==574== Memcheck, a.k.a. Valgrind, a memory error detector for x86-linux.
==574== Copyright (C) 2002, and GNU GPL'd, by Julian Seward.
==574== Using valgrind-1.9.6, a program instrumentation system for
x86-linux.
==574== Copyright (C) 2000-2002, and GNU GPL'd, by Julian Seward.
==574== Estimated CPU clock rate is 1672 MHz
==574== For more details, rerun with: -v
==574==
==574== Memcheck, a.k.a. Valgrind, a memory error detector for x86-linux.
==574== Copyright (C) 2002, and GNU GPL'd, by Julian Seward.
==574== Using valgrind-1.9.6, a program instrumentation system for
x86-linux.
==574== Copyright (C) 2000-2002, and GNU GPL'd, by Julian Seward.
==574== Estimated CPU clock rate is 1668 MHz
==574== For more details, rerun with: -v
==574==
==574==
==574== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 2 from 1)
==574== malloc/free: in use at exit: 29080 bytes in 1310 blocks.
==574== malloc/free: 63255 allocs, 61945 frees, 3901130 bytes allocated.
==574== For counts of detected errors, rerun with: -v
==574== searching for pointers to 1310 not-freed blocks.
==574== checked 10804300 bytes.
==574==
==574== 104 bytes in 2 blocks are definitely lost in loss record 5 of 12
==574== at 0x4016388E: __builtin_new (in /usr/lib/valgrind/valgrind.so)
==574== by 0x401638D6: operator new(unsigned) (in
/usr/lib/valgrind/valgrind.so)
==574== by 0x8049389: main (in /usr/local/bin/ogr2ogr)
==574== by 0x4060CA46: __libc_start_main (in /lib/libc-2.3.2.so)
==574==
==574== LEAK SUMMARY:
==574== definitely lost: 104 bytes in 2 blocks.
==574== possibly lost: 0 bytes in 0 blocks.
==574== still reachable: 28976 bytes in 1308 blocks.
==574== suppressed: 0 bytes in 0 blocks.
==574== Reachable blocks (those to which a pointer was found) are not
shown.
==574== To see them, rerun with: --show-reachable=yes
==574==
==576== Memcheck, a.k.a. Valgrind, a memory error detector for x86-linux.
==576== Copyright (C) 2002, and GNU GPL'd, by Julian Seward.
==576== Using valgrind-1.9.6, a program instrumentation system for
x86-linux.
==576== Copyright (C) 2000-2002, and GNU GPL'd, by Julian Seward.
==576== Estimated CPU clock rate is 1676 MHz
==576== For more details, rerun with: -v
==576==
==576== Memcheck, a.k.a. Valgrind, a memory error detector for x86-linux.
==576== Copyright (C) 2002, and GNU GPL'd, by Julian Seward.
==576== Using valgrind-1.9.6, a program instrumentation system for
x86-linux.
==576== Copyright (C) 2000-2002, and GNU GPL'd, by Julian Seward.
==576== Estimated CPU clock rate is 1680 MHz
==576== For more details, rerun with: -v
==576==
==576==
==576== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 2 from 1)
==576== malloc/free: in use at exit: 29080 bytes in 1310 blocks.
==576== malloc/free: 78550 allocs, 77240 frees, 11075204 bytes allocated.
==576== For counts of detected errors, rerun with: -v
==576== searching for pointers to 1310 not-freed blocks.
==576== checked 10808396 bytes.
==576==
==576== 104 bytes in 2 blocks are definitely lost in loss record 5 of 12
==576== at 0x4016388E: __builtin_new (in /usr/lib/valgrind/valgrind.so)
==576== by 0x401638D6: operator new(unsigned) (in
/usr/lib/valgrind/valgrind.so)
==576== by 0x403333F5:
OGRCreateCoordinateTransformation(OGRSpatialReference*,
OGRSpatialReference*) (in /usr/local/lib/libgdal.1.1.so)
==576== by 0x804A40C: TranslateLayer(OGRDataSource*, OGRLayer*,
OGRDataSource*, char**, char const*, int, OGRSpatialReference*,
OGRSpatialReference*, char**, int, int) (in /usr/local/bin/ogr2ogr)
==576==
==576== LEAK SUMMARY:
==576== definitely lost: 104 bytes in 2 blocks.
==576== possibly lost: 0 bytes in 0 blocks.
==576== still reachable: 28976 bytes in 1308 blocks.
==576== suppressed: 0 bytes in 0 blocks.
==576== Reachable blocks (those to which a pointer was found) are not
shown.
==576== To see them, rerun with: --show-reachable=yes
==576==
And then the final crash -
==581== Memcheck, a.k.a. Valgrind, a memory error detector for x86-linux.
==581== Copyright (C) 2002, and GNU GPL'd, by Julian Seward.
==581== Using valgrind-1.9.6, a program instrumentation system for
x86-linux.
==581== Copyright (C) 2000-2002, and GNU GPL'd, by Julian Seward.
==581== Estimated CPU clock rate is 1667 MHz
==581== For more details, rerun with: -v
==581==
==581== Memcheck, a.k.a. Valgrind, a memory error detector for x86-linux.
==581== Copyright (C) 2002, and GNU GPL'd, by Julian Seward.
==581== Using valgrind-1.9.6, a program instrumentation system for
x86-linux.
==581== Copyright (C) 2000-2002, and GNU GPL'd, by Julian Seward.
==581== Estimated CPU clock rate is 1668 MHz
==581== For more details, rerun with: -v
==581==
==581== FATAL: M_PROCMAP_BUF is too small; increase it and recompile
shape project failed at /home/dnewcomb/bin/ogrprojdd.pl line 51.
==32633== valgrind's libpthread.so: KLUDGED call to: siglongjmp (cleanup
handlers are ignored)
==32633==
==32633== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 4 from 2)
==32633== malloc/free: in use at exit: 334460 bytes in 2799 blocks.
==32633== malloc/free: 5782 allocs, 2983 frees, 1640087 bytes allocated.
==32633== For counts of detected errors, rerun with: -v
==32633== searching for pointers to 2799 not-freed blocks.
==32633== checked 5480132 bytes.
==32633==
==32633== 5 bytes in 1 blocks are definitely lost in loss record 1 of 14
==32633== at 0x40163791: malloc (in /usr/lib/valgrind/valgrind.so)
==32633== by 0x40284613: Perl_savesharedpv (util.c:797)
==32633== by 0x40239046: S_init_main_stash (perl.c:2779)
==32633== by 0x40235494: S_parse_body (perl.c:1126)
==32633==
==32633== 5632 bytes in 2 blocks are definitely lost in loss record 10 of
14
==32633== at 0x40163D9C: realloc (in /usr/lib/valgrind/valgrind.so)
==32633== by 0x402833BC: Perl_safesysrealloc (util.c:113)
==32633== by 0x402C5433: Perl_tmps_grow (scope.c:167)
==32633== by 0x402AC684: Perl_sv_2mortal (sv.c:6578)
==32633==
==32633== 12012 bytes in 12 blocks are possibly lost in loss record 12 of
14
==32633== at 0x40163791: malloc (in /usr/lib/valgrind/valgrind.so)
==32633== by 0x4028323A: Perl_safesysmalloc (util.c:69)
==32633== by 0x402A1672: S_more_xpviv (sv.c:808)
==32633== by 0x402A161E: S_new_xpviv (sv.c:783)
==32633==
==32633== 132222 bytes in 11 blocks are definitely lost in loss record 13
of 14
==32633== at 0x40163791: malloc (in /usr/lib/valgrind/valgrind.so)
==32633== by 0x4028323A: Perl_safesysmalloc (util.c:69)
==32633== by 0x402C5062: Perl_new_stackinfo (scope.c:72)
==32633== by 0x4023A0FD: Perl_init_stacks (perl.c:3429)
==32633==
==32633== LEAK SUMMARY:
==32633== definitely lost: 137859 bytes in 14 blocks.
==32633== possibly lost: 12012 bytes in 12 blocks.
==32633== still reachable: 184589 bytes in 2773 blocks.
==32633== suppressed: 0 bytes in 0 blocks.
==32633== Reachable blocks (those to which a pointer was found) are not
shown.
==32633== To see them, rerun with: --show-reachable=yes
==32633==
Doug Newcomb
USFWS
Raleigh, NC
P.S. I had forgotten to mention that the previous message valgrind was
run against the 9-3-2003 cvs snapshot. This run was against the 1.1.9
final.
More information about the Gdal-dev
mailing list