Inconsistent results on two F9 boxes when running a trivial c++ program

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Can anyone help. Through debugging a program I have created this trivial
C++ program.


#include <iostream>

//int main(int argc, char *argv[]) {
int main() {
	return 0;
}


I have two F9 boxes, both mounting an NFS partition.  When testing the
program using valgrind, on one box there is no problem.  On the other
box, it reports an error (full output at the end of this email).  This
happens regardless of which box the program is compiled on.

If the include line is removed, the error does not happen.

Can anyone give me any pointers as to what the problem could be?

Thanks

Steve

Valgrind output:

$ valgrind ./a.out
==12095== Memcheck, a memory error detector.
==12095== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al.
==12095== Using LibVEX rev 1804, a library for dynamic binary translation.
==12095== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP.
==12095== Using valgrind-3.3.0, a dynamic binary instrumentation framework.
==12095== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al.
==12095== For more details, rerun with: -v
==12095== 
==12095== Invalid free() / delete / delete[]
==12095==    at 0x40052EA: operator delete(void*, std::nothrow_t const&) (vg_replace_malloc.c:354)
==12095==    by 0x4215118: std::__verify_grouping(char const*, unsigned, std::string const&) (locale_facets.cc:108)
==12095==    by 0x421604C: std::locale::_Impl::_Impl(char const*, unsigned) (localename.cc:218)
==12095==    by 0x42160CC: std::locale::_Impl::_Impl(char const*, unsigned) (localename.cc:206)
==12095==    by 0x42171F7: std::locale::locale() (basic_string.h:2189)
==12095==    by 0x42121CC: std::locale::_Impl::_Impl(std::locale::_Impl const&, unsigned) (locale.cc:249)
==12095==    by 0x804857D: __static_initialization_and_destruction_0(int, int) (in /tmp/a.out)
==12095==    by 0x80485B6: _GLOBAL__I_main (in /tmp/a.out)
==12095==    by 0x804864C: (within /tmp/a.out)
==12095==    by 0x8048413: (within /tmp/a.out)
==12095==    by 0x80485E8: __libc_csu_init (in /tmp/a.out)
==12095==    by 0x65F570: (below main) (libc-start.c:179)
==12095==  Address 0x42ae188 is not stack'd, malloc'd or (recently) free'd
==12095== 
==12095== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 15 from 1)
==12095== malloc/free: in use at exit: 0 bytes in 0 blocks.
==12095== malloc/free: 0 allocs, 1 frees, 0 bytes allocated.
==12095== For counts of detected errors, rerun with: -v
==12095== All heap blocks were freed -- no leaks are possible.

-- 
 
(o<     www.stevesearle.com
//\     Powered by Fedora
V_/_    No MS products were used in the creation of this message

 22:45:41 up 43 days, 11:07,  1 user,  load average: 0.00, 0.01, 0.00

Attachment: pgp13cY06z29F.pgp
Description: PGP signature

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux