Hi, 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: ==9725== Conditional jump or move depends on uninitialised value(s) ==9725== at 0x80BCFC3: SNESSolve_LS (ls.c:168) ==9725== by 0x809E6E3: SNESSolve (snes.c:2221) ==9725== by 0x80B71E4: DMMGSolveSNES (damgsnes.c:510) ==9725== by 0x80B0A23: DMMGSolve (damg.c:372) ==9725== by 0x8050E41: Solve (twgcqt2unffnidgp.c:580) ==9725== by 0x804DBE0: main (twgcqt2unffnidgp.c:288) ==9725== Uninitialised value was created by a heap allocation ==9725== at 0x4022BF3: malloc (vg_replace_malloc.c:195) ==9725== by 0x8628840: PetscMallocAlign (mal.c:40) ==9725== by 0x862992F: PetscTrMallocDefault (mtr.c:194) ==9725== by 0x8056AFD: FormFunction (twgcqt2unffnidgp.c:1111) ==9725== by 0x80953E8: SNESComputeFunction (snes.c:1016) ==9725== by 0x80BCD06: SNESSolve_LS (ls.c:159) ==9725== by 0x809E6E3: SNESSolve (snes.c:2221) ==9725== by 0x80B71E4: DMMGSolveSNES (damgsnes.c:510) ==9725== by 0x80B0A23: DMMGSolve (damg.c:372) ==9725== by 0x8050E41: Solve (twgcqt2unffnidgp.c:580) ==9725== by 0x804DBE0: main (twgcqt2unffnidgp.c:288)
What could be wrong with it? Thanks very much! Rebecca -- (Rebecca) Xuefei YUAN Department of Applied Physics and Applied Mathematics Columbia University Tel:917-399-8032 www.columbia.edu/~xy2102 ------------------------------------------------------------------------------ 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
