public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "richard at netbsd dot org" <gcc-bugzilla@gcc.gnu.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	[thread overview]
Message-ID: <bug-63779-4-ArtubLaNCy@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-63779-4@http.gcc.gnu.org/bugzilla/>

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63779

--- Comment #3 from Richard PALO <richard at netbsd dot org> ---
Well, apparently this was affecting many using gcc 4.9.x and a workaround was
given here https://bugzilla.mozilla.org/show_bug.cgi?id=999496

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::AudioQueueMemoryFunctor::MallocSizeOf(const void*)
>						       [_ZN7mozilla23AudioQueueMemoryFunctor12MallocSizeOfEPKv]
>[145]	|         0|        29|FUNC |WEAK |2    |87     |mozilla::VideoQueueMemoryFunctor::MallocSizeOf(const void*)
>						       [_ZN7mozilla23VideoQueueMemoryFunctor12MallocSizeOfEPKv]

Is there any further information I can provide now to find this nasty problem?
>From gcc-bugs-return-469109-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 01 17:22:55 2014
Return-Path: <gcc-bugs-return-469109-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
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: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
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" <gcc-bugzilla@gcc.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: <bug-63854-4-0QmB5IAyKu@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-63854-4@http.gcc.gnu.org/bugzilla/>
References: <bug-63854-4@http.gcc.gnu.org/bugzilla/>
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?idc854

--- 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!8231&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


  parent reply	other threads:[~2014-12-01 17:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-08  9:21 [Bug c++/63779] New: " richard at netbsd dot org
2014-11-14 16:01 ` [Bug c++/63779] " ro at gcc dot gnu.org
2014-12-01 17:16 ` richard at netbsd dot org [this message]
2015-01-03 20:13 ` vhaisman at gmail dot com

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-63779-4-ArtubLaNCy@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: link
Be 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).