public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "burnus at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/51972] New: [OOP] ALLOCATE misses memset/calloc, causing segfault Date: Mon, 23 Jan 2012 17:44:00 -0000 [thread overview] Message-ID: <bug-51972-4@http.gcc.gnu.org/bugzilla/> (raw) http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51972 Bug #: 51972 Summary: [OOP] ALLOCATE misses memset/calloc, causing segfault Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Keywords: wrong-code Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned@gcc.gnu.org ReportedBy: burnus@gcc.gnu.org Created attachment 26435 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26435 Test case The test case is a reduced version of chapter07/strategy_surrogate_f2003, available from http://www.cambridge.org/rouson under "Resources available". When compiling and running the program, one might get: Program received signal SIGABRT: Process abort signal. Backtrace for this error: #6 0x400AC5 in __lorenz_module_MOD___copy_lorenz_module_Lorenz at test.F90:42 #7 0x401392 in __runge_kutta_2nd_module_MOD_integrate at test.F90:73 #8 0x40153F in MAIN__ at test.F90:84 And with valgrind: Conditional jump or move depends on uninitialised value(s) at 0x400AD8: __lorenz_module_MOD___copy_lorenz_module_Lorenz (test.F90:42) by 0x4013B2: __runge_kutta_2nd_module_MOD_integrate (test.F90:73) The issue is that there is MEMSET or CALLOC missing in "integrate". There is a call to memset in "constructor" and "assign_lorenz".
next reply other threads:[~2012-01-23 17:37 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2012-01-23 17:44 burnus at gcc dot gnu.org [this message] 2012-01-28 16:50 ` [Bug fortran/51972] " burnus at gcc dot gnu.org 2012-01-28 17:42 ` burnus at gcc dot gnu.org 2012-01-28 19:01 ` burnus at gcc dot gnu.org 2012-01-29 21:25 ` [Bug fortran/51972] [OOP] Wrong code as _copy does not honor CLASS components burnus at gcc dot gnu.org 2012-01-29 21:42 ` burnus at gcc dot gnu.org 2012-02-05 9:46 ` burnus at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-51972-4@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).