On Mon, Jan 18, 2010 at 1:34 PM, (Rebecca) Xuefei YUAN <[email protected]> wrote: > I met some errors of my code and the message was very long, part of it > said that "Uninitialised value was created by a heap allocation" as > below:
Cut down to the essential, that message says Conditional jump or move depends on uninitialised value(s) at SNESSolve_LS (ls.c:168) Uninitialised value was created by a heap allocation at malloc (vg_replace_malloc.c:195) by PetscMallocAlign (mal.c:40) by PetscTrMallocDefault (mtr.c:194) by FormFunction (twgcqt2unffnidgp.c:1111) by SNESComputeFunction (snes.c:1016) by SNESSolve_LS (ls.c:159) So memory is allocated at line 159 of ls.c (by calling SNESComputeFunction, which calls FormFunction, which allocates memory at line 1111 of twgcqt2unffnidgp.c), but not initialized, and it is then used at line 168 of ls.c That's how you read those messages. - Dan ------------------------------------------------------------------------------ Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev _______________________________________________ Valgrind-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/valgrind-users
