public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug gcov-profile/55650] New: [4.8 Regression] Firefox profiledbuild:  libxul.so: cannot map zero-fill pages: Cannot allocate memory
@ 2012-12-11 17:17 markus at trippelsdorf dot de
  2012-12-12  8:07 ` [Bug gcov-profile/55650] " jakub at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: markus at trippelsdorf dot de @ 2012-12-11 17:17 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55650

             Bug #: 55650
           Summary: [4.8 Regression] Firefox profiledbuild:  libxul.so:
                    cannot map zero-fill pages: Cannot allocate memory
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: gcov-profile
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: markus@trippelsdorf.de


Building Firefox with:
make -f client.mk profiledbuild

Results in:
...
/var/tmp/moz-build-dir/dist/bin/xpcshell: error while loading shared libraries:
libxul.so: cannot map zero-fill pages: Cannot allocate memory
make[4]: *** [prepare-package] Error 127

 % readelf -lSW ./libxul.so
There are 41 section headers, starting at offset 0x103e7f10:
Section Headers:
  [Nr] Name              Type            Address          Off    Size   ES Flg
Lk Inf Al
...
  [28] .bss              NOBITS          000000000bfaabe0 bfa9be0 80186ae8c 00 
WA  0   0 32

Adding Wl,-Map,libxul.map when linking libxul shows:
...
 .bss..LPBX1    0x000000000ccb3be0 0x800000000
/var/tmp/moz-build-dir/toolkit/library/../components/protobuf/once.i_o
....

Reducing once.cpp leads to:

 % cat test.ii
class A
{
    virtual void Run ();
};
class B:public A
{
public:
    B ();
    void Run ()
    {
    }
};
void *operator     new (unsigned long)
__attribute__ ((__externally_visible__));
void *moz_xmalloc ();
inline void *operator
new (unsigned long)
{
    return moz_xmalloc ();
}

inline A *
NewCallback ()
{
    return new B;
}

 % c++ -c -fprofile-generate -fdata-sections -O2 test.ii
 % readelf -lSW ./test.o | grep "800000000"
  [11] .bss..LPBX1       NOBITS          0000000000000000 000120 800000000 00 
WA  0   0 32


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug gcov-profile/55650] [4.8 Regression] Firefox profiledbuild:  libxul.so: cannot map zero-fill pages: Cannot allocate memory
  2012-12-11 17:17 [Bug gcov-profile/55650] New: [4.8 Regression] Firefox profiledbuild: libxul.so: cannot map zero-fill pages: Cannot allocate memory markus at trippelsdorf dot de
@ 2012-12-12  8:07 ` jakub at gcc dot gnu.org
  2012-12-12  8:09 ` jakub at gcc dot gnu.org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-12-12  8:07 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55650

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2012-12-12
                 CC|                            |jakub at gcc dot gnu.org
   Target Milestone|---                         |4.8.0
     Ever Confirmed|0                           |1


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug gcov-profile/55650] [4.8 Regression] Firefox profiledbuild:  libxul.so: cannot map zero-fill pages: Cannot allocate memory
  2012-12-11 17:17 [Bug gcov-profile/55650] New: [4.8 Regression] Firefox profiledbuild: libxul.so: cannot map zero-fill pages: Cannot allocate memory markus at trippelsdorf dot de
  2012-12-12  8:07 ` [Bug gcov-profile/55650] " jakub at gcc dot gnu.org
@ 2012-12-12  8:09 ` jakub at gcc dot gnu.org
  2012-12-13 10:12 ` jakub at gcc dot gnu.org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-12-12  8:09 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55650

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
         AssignedTo|unassigned at gcc dot       |jakub at gcc dot gnu.org
                   |gnu.org                     |

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-12-12 08:08:35 UTC ---
Created attachment 28933
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28933
gcc48-pr55650.patch

Untested fix.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug gcov-profile/55650] [4.8 Regression] Firefox profiledbuild:  libxul.so: cannot map zero-fill pages: Cannot allocate memory
  2012-12-11 17:17 [Bug gcov-profile/55650] New: [4.8 Regression] Firefox profiledbuild: libxul.so: cannot map zero-fill pages: Cannot allocate memory markus at trippelsdorf dot de
  2012-12-12  8:07 ` [Bug gcov-profile/55650] " jakub at gcc dot gnu.org
  2012-12-12  8:09 ` jakub at gcc dot gnu.org
@ 2012-12-13 10:12 ` jakub at gcc dot gnu.org
  2012-12-13 10:13 ` jakub at gcc dot gnu.org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-12-13 10:12 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55650

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-12-13 10:11:47 UTC ---
Author: jakub
Date: Thu Dec 13 10:11:39 2012
New Revision: 194470

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=194470
Log:
    PR gcov-profile/55650
    * coverage.c (coverage_obj_init): Return false if no functions
    are being emitted.

    * g++.dg/other/pr55650.C: New test.
    * g++.dg/other/pr55650.cc: New file.

Added:
    trunk/gcc/testsuite/g++.dg/other/pr55650.C
    trunk/gcc/testsuite/g++.dg/other/pr55650.cc
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/coverage.c
    trunk/gcc/testsuite/ChangeLog


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug gcov-profile/55650] [4.8 Regression] Firefox profiledbuild:  libxul.so: cannot map zero-fill pages: Cannot allocate memory
  2012-12-11 17:17 [Bug gcov-profile/55650] New: [4.8 Regression] Firefox profiledbuild: libxul.so: cannot map zero-fill pages: Cannot allocate memory markus at trippelsdorf dot de
                   ` (2 preceding siblings ...)
  2012-12-13 10:12 ` jakub at gcc dot gnu.org
@ 2012-12-13 10:13 ` jakub at gcc dot gnu.org
  2014-01-28 23:48 ` mh+gcc at glandium dot org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-12-13 10:13 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55650

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-12-13 10:13:14 UTC ---
Fixed.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug gcov-profile/55650] [4.8 Regression] Firefox profiledbuild:  libxul.so: cannot map zero-fill pages: Cannot allocate memory
  2012-12-11 17:17 [Bug gcov-profile/55650] New: [4.8 Regression] Firefox profiledbuild: libxul.so: cannot map zero-fill pages: Cannot allocate memory markus at trippelsdorf dot de
                   ` (3 preceding siblings ...)
  2012-12-13 10:13 ` jakub at gcc dot gnu.org
@ 2014-01-28 23:48 ` mh+gcc at glandium dot org
  2014-01-29  9:21 ` trippels at gcc dot gnu.org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: mh+gcc at glandium dot org @ 2014-01-28 23:48 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55650

--- Comment #4 from Mike Hommey <mh+gcc at glandium dot org> ---
*** Bug 59973 has been marked as a duplicate of this bug. ***


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug gcov-profile/55650] [4.8 Regression] Firefox profiledbuild:  libxul.so: cannot map zero-fill pages: Cannot allocate memory
  2012-12-11 17:17 [Bug gcov-profile/55650] New: [4.8 Regression] Firefox profiledbuild: libxul.so: cannot map zero-fill pages: Cannot allocate memory markus at trippelsdorf dot de
                   ` (4 preceding siblings ...)
  2014-01-28 23:48 ` mh+gcc at glandium dot org
@ 2014-01-29  9:21 ` trippels at gcc dot gnu.org
  2014-01-29 18:37 ` [Bug gcov-profile/55650] " trippels at gcc dot gnu.org
  2014-01-29 18:40 ` trippels at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: trippels at gcc dot gnu.org @ 2014-01-29  9:21 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55650

Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
                 CC|                            |trippels at gcc dot gnu.org
            Version|4.8.0                       |4.7.4
         Resolution|FIXED                       |---
   Target Milestone|4.8.0                       |4.7.3

--- Comment #5 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
A backport to 4.7-branch looks easy and appropriate.
Jakub, can you handle this?


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug gcov-profile/55650] Firefox profiledbuild:  libxul.so: cannot map zero-fill pages: Cannot allocate memory
  2012-12-11 17:17 [Bug gcov-profile/55650] New: [4.8 Regression] Firefox profiledbuild: libxul.so: cannot map zero-fill pages: Cannot allocate memory markus at trippelsdorf dot de
                   ` (5 preceding siblings ...)
  2014-01-29  9:21 ` trippels at gcc dot gnu.org
@ 2014-01-29 18:37 ` trippels at gcc dot gnu.org
  2014-01-29 18:40 ` trippels at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: trippels at gcc dot gnu.org @ 2014-01-29 18:37 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55650

--- Comment #6 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
Author: trippels
Date: Wed Jan 29 18:36:42 2014
New Revision: 207277

URL: http://gcc.gnu.org/viewcvs?rev=207277&root=gcc&view=rev
Log:
2014-01-29  Markus Trippelsdorf  <markus@trippelsdorf.de>

        Backport from mainline
        2012-12-13  Jakub Jelinek  <jakub@redhat.com>

        PR gcov-profile/55650
        * coverage.c (coverage_obj_init): Return false if no functions
        are being emitted.

        * g++.dg/other/pr55650.C: New test.
        * g++.dg/other/pr55650.cc: New file

Added:
    branches/gcc-4_7-branch/gcc/testsuite/g++.dg/other/pr55650.C
    branches/gcc-4_7-branch/gcc/testsuite/g++.dg/other/pr55650.cc
Modified:
    branches/gcc-4_7-branch/gcc/ChangeLog
    branches/gcc-4_7-branch/gcc/coverage.c
    branches/gcc-4_7-branch/gcc/testsuite/ChangeLog


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug gcov-profile/55650] Firefox profiledbuild:  libxul.so: cannot map zero-fill pages: Cannot allocate memory
  2012-12-11 17:17 [Bug gcov-profile/55650] New: [4.8 Regression] Firefox profiledbuild: libxul.so: cannot map zero-fill pages: Cannot allocate memory markus at trippelsdorf dot de
                   ` (6 preceding siblings ...)
  2014-01-29 18:37 ` [Bug gcov-profile/55650] " trippels at gcc dot gnu.org
@ 2014-01-29 18:40 ` trippels at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: trippels at gcc dot gnu.org @ 2014-01-29 18:40 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55650

Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #7 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
Fixed by backport.


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2014-01-29 18:40 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-11 17:17 [Bug gcov-profile/55650] New: [4.8 Regression] Firefox profiledbuild: libxul.so: cannot map zero-fill pages: Cannot allocate memory markus at trippelsdorf dot de
2012-12-12  8:07 ` [Bug gcov-profile/55650] " jakub at gcc dot gnu.org
2012-12-12  8:09 ` jakub at gcc dot gnu.org
2012-12-13 10:12 ` jakub at gcc dot gnu.org
2012-12-13 10:13 ` jakub at gcc dot gnu.org
2014-01-28 23:48 ` mh+gcc at glandium dot org
2014-01-29  9:21 ` trippels at gcc dot gnu.org
2014-01-29 18:37 ` [Bug gcov-profile/55650] " trippels at gcc dot gnu.org
2014-01-29 18:40 ` trippels at gcc dot gnu.org

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).