From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8563 invoked by alias); 1 Dec 2014 17:16:51 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 8236 invoked by uid 48); 1 Dec 2014 17:16:45 -0000 From: "richard at netbsd dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/63779] g++ 4.9 generates invalid object provoking a GOT relative relocation must reference a local symbol linker error on SunOS Date: Mon, 01 Dec 2014 17:16:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.9.2 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: richard at netbsd dot org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-12/txt/msg00115.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D63779 --- Comment #3 from Richard PALO --- Well, apparently this was affecting many using gcc 4.9.x and a workaround w= as given here https://bugzilla.mozilla.org/show_bug.cgi?id=3D999496 I tested it and now have (as with 4.8.x): >richard@omnis:/tmp/pkgsrc/devel/xulrunner31/work/build/content/media$ nm -= C MediaDecoderReader.o |grep MallocSizeOf >[148] | 0| 29|FUNC |WEAK |2 |90 |mozilla::AudioQueue= MemoryFunctor::MallocSizeOf(const void*) > [_ZN7mozilla23AudioQueueMemoryFunctor12MallocSizeOfEPKv] >[145] | 0| 29|FUNC |WEAK |2 |87 |mozilla::VideoQueue= MemoryFunctor::MallocSizeOf(const void*) > [_ZN7mozilla23VideoQueueMemoryFunctor12MallocSizeOfEPKv] Is there any further information I can provide now to find this nasty probl= em? >>From gcc-bugs-return-469109-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 01 17:22:55 2014 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 12655 invoked by alias); 1 Dec 2014 17:22:55 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 12630 invoked by uid 55); 1 Dec 2014 17:22:51 -0000 From: "dmalcolm at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug jit/63854] Fix memory leaks seen in JIT Date: Mon, 01 Dec 2014 17:22:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: jit X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dmalcolm at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: dmalcolm at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-12/txt/msg00116.txt.bz2 Content-length: 966 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63854 --- Comment #22 from dmalcolm at gcc dot gnu.org --- Author: dmalcolm Date: Mon Dec 1 17:22:19 2014 New Revision: 218231 URL: https://gcc.gnu.org/viewcvs?rev=218231&root=gcc&view=rev Log: PR jit/63854: Fix leak within jit-builtins.c gcc/jit/ChangeLog: PR jit/63854 * jit-builtins.c (gcc::jit::recording::builtins_manager::make_fn_type): Call the context's new_function_type method, rather than directly creating a function_type instance. * jit-recording.c (gcc::jit::recording::context::new_function_type): New method, adapted from part of... (gcc::jit::recording::context::new_function_ptr_type): ...this. Update to call new_function_type. * jit-recording.h (gcc::jit::recording::context::new_function_type): New method. Modified: trunk/gcc/jit/ChangeLog trunk/gcc/jit/jit-builtins.c trunk/gcc/jit/jit-recording.c trunk/gcc/jit/jit-recording.h