Hiya folks,

I am hoping to use Valgrind to help me figure out where some mysterious native 
memory leaks are happening with a server program I have written in Java.  I 
have found, however, that Valgrind seems to be exiting prematurely.  I wrote a 
simple test program that simply loops and outputs to the console for 10 
seconds, and even with that, Valgrind ends immediately.  Here is my command to 
run it with Valgrind:

valgrind --trace-children=yes java NewClass

And the following is the output.  Any help or insight would be greatly 
appreciated!

-Jess



==36360== Memcheck, a memory error detector
==36360== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==36360== Using Valgrind-3.14.0.GIT and LibVEX; rerun with -h for copyright info
==36360== Command: java NewClass
==36360== 

valgrind: m_debuginfo/debuginfo.c:452 (void 
discard_or_archive_DebugInfo(DebugInfo *)): Assertion 'is_DebugInfo_active(di)' 
failed.

host stacktrace:
==36360==    at 0x2580551AB: ???
==36360==    by 0x25805553C: ???
==36360==    by 0x25805551F: ???
==36360==    by 0x25808CEC3: ???
==36360==    by 0x25808B5CA: ???
==36360==    by 0x25810B68F: ???
==36360==    by 0x2580ECF19: ???
==36360==    by 0x2580EC76A: ???
==36360==    by 0x2580EA8E3: ???
==36360==    by 0x2580E8846: ???
==36360==    by 0x2580FB14E: ???

sched status:
  running_tid=1

Thread 1: status = VgTs_Runnable (lwpid 771)
==36360==    at 0x100038476: __mmap (in /usr/lib/dyld)
==36360==    by 0x100037D7F: mmap (in /usr/lib/dyld)
==36360==    by 0x10001E3AA: ImageLoaderMachO::mapSegments(int, unsigned long 
long, unsigned long long, unsigned long long, ImageLoader::LinkContext const&) 
(in /usr/lib/dyld)
==36360==    by 0x100021BF9: 
ImageLoaderMachOCompressed::instantiateFromFile(char const*, int, unsigned char 
const*, unsigned long, unsigned long long, unsigned long long, stat const&, 
unsigned int, unsigned int, linkedit_data_command const*, 
encryption_info_command const*, ImageLoader::LinkContext const&) (in 
/usr/lib/dyld)
==36360==    by 0x10001B25F: ImageLoaderMachO::instantiateFromFile(char const*, 
int, unsigned char const*, unsigned long, unsigned long long, unsigned long 
long, stat const&, ImageLoader::LinkContext const&) (in /usr/lib/dyld)
==36360==    by 0x10000AB9F: dyld::loadPhase6(int, stat const&, char const*, 
dyld::LoadContext const&) (in /usr/lib/dyld)
==36360==    by 0x1000110DD: dyld::loadPhase5(char const*, char const*, 
dyld::LoadContext const&, unsigned int&, std::__1::vector<char const*, 
std::__1::allocator<char const*> >*) (in /usr/lib/dyld)
==36360==    by 0x100010D19: dyld::loadPhase4(char const*, char const*, 
dyld::LoadContext const&, unsigned int&, std::__1::vector<char const*, 
std::__1::allocator<char const*> >*) (in /usr/lib/dyld)
==36360==    by 0x100010A99: dyld::loadPhase3(char const*, char const*, 
dyld::LoadContext const&, unsigned int&, std::__1::vector<char const*, 
std::__1::allocator<char const*> >*) (in /usr/lib/dyld)
==36360==    by 0x100010267: dyld::loadPhase1(char const*, char const*, 
dyld::LoadContext const&, unsigned int&, std::__1::vector<char const*, 
std::__1::allocator<char const*> >*) (in /usr/lib/dyld)
==36360==    by 0x10000A7FE: dyld::loadPhase0(char const*, char const*, 
dyld::LoadContext const&, unsigned int&, std::__1::vector<char const*, 
std::__1::allocator<char const*> >*) (in /usr/lib/dyld)
==36360==    by 0x10000A4A1: dyld::load(char const*, dyld::LoadContext const&, 
unsigned int&) (in /usr/lib/dyld)
==36360==    by 0x1000119B2: dyld::libraryLocator(char const*, bool, char 
const*, ImageLoader::RPathChain const*, unsigned int&) (in /usr/lib/dyld)
==36360==    by 0x1000187F1: 
ImageLoader::recursiveLoadLibraries(ImageLoader::LinkContext const&, bool, 
ImageLoader::RPathChain const&, char const*) (in /usr/lib/dyld)
==36360==    by 0x1000189A8: 
ImageLoader::recursiveLoadLibraries(ImageLoader::LinkContext const&, bool, 
ImageLoader::RPathChain const&, char const*) (in /usr/lib/dyld)
==36360==    by 0x1000189A8: 
ImageLoader::recursiveLoadLibraries(ImageLoader::LinkContext const&, bool, 
ImageLoader::RPathChain const&, char const*) (in /usr/lib/dyld)
==36360==    by 0x1000189A8: 
ImageLoader::recursiveLoadLibraries(ImageLoader::LinkContext const&, bool, 
ImageLoader::RPathChain const&, char const*) (in /usr/lib/dyld)
==36360==    by 0x1000189A8: 
ImageLoader::recursiveLoadLibraries(ImageLoader::LinkContext const&, bool, 
ImageLoader::RPathChain const&, char const*) (in /usr/lib/dyld)
==36360==    by 0x1000189A8: 
ImageLoader::recursiveLoadLibraries(ImageLoader::LinkContext const&, bool, 
ImageLoader::RPathChain const&, char const*) (in /usr/lib/dyld)
==36360==    by 0x1000189A8: 
ImageLoader::recursiveLoadLibraries(ImageLoader::LinkContext const&, bool, 
ImageLoader::RPathChain const&, char const*) (in /usr/lib/dyld)
==36360==    by 0x1000189A8: 
ImageLoader::recursiveLoadLibraries(ImageLoader::LinkContext const&, bool, 
ImageLoader::RPathChain const&, char const*) (in /usr/lib/dyld)
==36360==    by 0x1000189A8: 
ImageLoader::recursiveLoadLibraries(ImageLoader::LinkContext const&, bool, 
ImageLoader::RPathChain const&, char const*) (in /usr/lib/dyld)
==36360==    by 0x1000189A8: 
ImageLoader::recursiveLoadLibraries(ImageLoader::LinkContext const&, bool, 
ImageLoader::RPathChain const&, char const*) (in /usr/lib/dyld)
==36360==    by 0x1000189A8: 
ImageLoader::recursiveLoadLibraries(ImageLoader::LinkContext const&, bool, 
ImageLoader::RPathChain const&, char const*) (in /usr/lib/dyld)
==36360==    by 0x1000189A8: 
ImageLoader::recursiveLoadLibraries(ImageLoader::LinkContext const&, bool, 
ImageLoader::RPathChain const&, char const*) (in /usr/lib/dyld)
==36360==    by 0x1000189A8: 
ImageLoader::recursiveLoadLibraries(ImageLoader::LinkContext const&, bool, 
ImageLoader::RPathChain const&, char const*) (in /usr/lib/dyld)
==36360==    by 0x1000189A8: 
ImageLoader::recursiveLoadLibraries(ImageLoader::LinkContext const&, bool, 
ImageLoader::RPathChain const&, char const*) (in /usr/lib/dyld)
==36360==    by 0x100017B64: ImageLoader::link(ImageLoader::LinkContext const&, 
bool, bool, bool, ImageLoader::RPathChain const&, char const*) (in 
/usr/lib/dyld)
==36360==    by 0x10000BF69: dyld::link(ImageLoader*, bool, bool, 
ImageLoader::RPathChain const&, unsigned int) (in /usr/lib/dyld)
==36360==    by 0x10000DFE7: dyld::_main(macho_header const*, unsigned long, 
int, char const**, char const**, char const**, unsigned long*) (in 
/usr/lib/dyld)
==36360==    by 0x1000083D3: dyldbootstrap::start(macho_header const*, int, 
char const**, long, macho_header const*, unsigned long*) (in /usr/lib/dyld)
==36360==    by 0x1000081D1: _dyld_start (in /usr/lib/dyld)
==36360==    by 0x1: ???
==36360==    by 0x1048A4A76: ???
==36360==    by 0x1048A4A7B: ???


Note: see also the FAQ in the source distribution.
It contains workarounds to several common problems.
In particular, if Valgrind aborted or crashed after
identifying problems in your program, there's a good chance
that fixing those problems will prevent Valgrind aborting or
crashing, especially if it happened in m_mallocfree.c.

If that doesn't help, please report this bug to: www.valgrind.org

In the bug report, send all the above text, the valgrind
version, and what OS and version you are using.  Thanks.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to