public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/37419]  New: [4.4 Regression] mpfr related memory corruption
@ 2008-09-08  8:51 tbm at cyrius dot com
  2008-09-08  8:55 ` [Bug other/37419] " tbm at cyrius dot com
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: tbm at cyrius dot com @ 2008-09-08  8:51 UTC (permalink / raw)
  To: gcc-bugs

With current trunk (revision 140100):


(sid)2294:tbm@em64t: ~] /usr/lib/gcc-snapshot/bin/gcc -c -finline-limit=1048576
-O3 gutenprint-mxml-file.i
*** glibc detected ***
/usr/lib/gcc-snapshot/libexec/gcc/x86_64-linux-gnu/4.4.0/cc1: malloc(): memory
corruption (fast): 0x0000000001da1890 ***
======= Backtrace: =========
/lib/libc.so.6[0x7f136138a968]
/lib/libc.so.6[0x7f136138d69f]
/lib/libc.so.6[0x7f136138e354]
/lib/libc.so.6(realloc+0x12f)[0x7f136138efdf]
/usr/lib/gcc-snapshot/libexec/gcc/x86_64-linux-gnu/4.4.0/cc1[0xb4098d]
/usr/lib/gcc-snapshot/libexec/gcc/x86_64-linux-gnu/4.4.0/cc1[0x86c584]
/usr/lib/gcc-snapshot/libexec/gcc/x86_64-linux-gnu/4.4.0/cc1[0x8af750]
/usr/lib/gcc-snapshot/libexec/gcc/x86_64-linux-gnu/4.4.0/cc1[0x8af6d6]
/usr/lib/gcc-snapshot/libexec/gcc/x86_64-linux-gnu/4.4.0/cc1[0x8ac6ad]
/usr/lib/gcc-snapshot/libexec/gcc/x86_64-linux-gnu/4.4.0/cc1[0x63b073]
/usr/lib/gcc-snapshot/libexec/gcc/x86_64-linux-gnu/4.4.0/cc1[0x63b3a8]
/usr/lib/gcc-snapshot/libexec/gcc/x86_64-linux-gnu/4.4.0/cc1[0x8a5717]
/usr/lib/gcc-snapshot/libexec/gcc/x86_64-linux-gnu/4.4.0/cc1[0x416493]
/usr/lib/gcc-snapshot/libexec/gcc/x86_64-linux-gnu/4.4.0/cc1[0x6e0faf]
/lib/libc.so.6(__libc_start_main+0xe6)[0x7f13613351a6]
/usr/lib/gcc-snapshot/libexec/gcc/x86_64-linux-gnu/4.4.0/cc1(mpfr_cosh+0xb9)[0x404029]
======= Memory map: ========
00400000-00d87000 r-xp 00000000 08:07 6129876                           
/usr/lib/gcc-snapshot/libexec/gcc/x86_64-linux-gnu/4.4.0/cc1
00f87000-01011000 rw-p 00987000 08:07 6129876                           
/usr/lib/gcc-snapshot/libexec/gcc/x86_64-linux-gnu/4.4.0/cc1
01011000-010a5000 rw-p 01011000 00:00 0
01d3c000-01ddb000 rw-p 01d3c000 00:00 0                                  [heap]
7f135c000000-7f135c021000 rw-p 7f135c000000 00:00 0
7f135c021000-7f1360000000 ---p 7f135c021000 00:00 0
7f1360c8e000-7f1360ca4000 r-xp 00000000 08:07 5524480                   
/lib/libgcc_s.so.1
7f1360ca4000-7f1360ea4000 ---p 00016000 08:07 5524480                   
/lib/libgcc_s.so.1
7f1360ea4000-7f1360ea5000 rw-p 00016000 08:07 5524480                   
/lib/libgcc_s.so.1
7f1360edc000-7f1361317000 rw-p 7f1360edc000 00:00 0
7f1361317000-7f1361461000 r-xp 00000000 08:07 5048300                   
/lib/libc-2.7.so
7f1361461000-7f1361660000 ---p 0014a000 08:07 5048300                   
/lib/libc-2.7.so
7f1361660000-7f1361663000 r--p 00149000 08:07 5048300                   
/lib/libc-2.7.so
7f1361663000-7f1361665000 rw-p 0014c000 08:07 5048300                   
/lib/libc-2.7.so
7f1361665000-7f136166a000 rw-p 7f1361665000 00:00 0
7f136166a000-7f13616a8000 r-xp 00000000 08:07 5523167                   
/usr/lib/libgmp.so.3.4.2
7f13616a8000-7f13618a8000 ---p 0003e000 08:07 5523167                   
/usr/lib/libgmp.so.3.4.2
7f13618a8000-7f13618a9000 rw-p 0003e000 08:07 5523167                   
/usr/lib/libgmp.so.3.4.2
7f13618a9000-7f13618ea000 r-xp 00000000 08:07 5526259                   
/usr/lib/libmpfr.so.1.1.1
7f13618ea000-7f1361ae9000 ---p 00041000 08:07 5526259                   
/usr/lib/libmpfr.so.1.1.1
7f1361ae9000-7f1361aeb000 rw-p 00040000 08:07 5526259                   
/usr/lib/libmpfr.so.1.1.1
7f1361aeb000-7f1361b07000 r-xp 00000000 08:07 5048312                   
/lib/ld-2.7.so
7f1361bca000-7f1361ccc000 rw-p 7f1361bca000 00:00 0
7f1361cd1000-7f1361d06000 rw-p 7f1361cd1000 00:00 0
7f1361d06000-7f1361d08000 rw-p 0001b000 08:07 5048312                   
/lib/ld-2.7.so
7fff69cf3000-7fff69d08000 rw-p 7ffffffea000 00:00 0                     
[stack]
7fff69dff000-7fff69e00000 r-xp 7fff69dff000 00:00 0                      [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                 
[vsyscall]
../../../../src/main/mxml-file.c:1431: internal compiler error: Aborted
Please submit a full bug report,


-- 
           Summary: [4.4 Regression] mpfr related memory corruption
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tbm at cyrius dot com


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


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

* [Bug other/37419] [4.4 Regression] mpfr related memory corruption
  2008-09-08  8:51 [Bug other/37419] New: [4.4 Regression] mpfr related memory corruption tbm at cyrius dot com
@ 2008-09-08  8:55 ` tbm at cyrius dot com
  2008-09-08 21:49 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: tbm at cyrius dot com @ 2008-09-08  8:55 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from tbm at cyrius dot com  2008-09-08 08:54 -------
Created an attachment (id=16253)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16253&action=view)
Preprocessed code


-- 


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


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

* [Bug other/37419] [4.4 Regression] mpfr related memory corruption
  2008-09-08  8:51 [Bug other/37419] New: [4.4 Regression] mpfr related memory corruption tbm at cyrius dot com
  2008-09-08  8:55 ` [Bug other/37419] " tbm at cyrius dot com
@ 2008-09-08 21:49 ` pinskia at gcc dot gnu dot org
  2008-09-08 23:29 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-09-08 21:49 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pinskia at gcc dot gnu dot org  2008-09-08 21:47 -------
I get a different ICE with revision 139912 on i386-apple-darwin8.11.1.
GNU C (GCC) version 4.4.0 20080902 (experimental) [trunk revision 139912]
(i386-apple-darwin8.11.1)
        compiled by GNU C version 4.4.0 20080902 (experimental) [trunk revision
139912], GMP version 4.2.2, MPFR version 2.3.0.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org
           Keywords|                            |ice-on-valid-code
   Target Milestone|---                         |4.4.0


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


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

* [Bug other/37419] [4.4 Regression] mpfr related memory corruption
  2008-09-08  8:51 [Bug other/37419] New: [4.4 Regression] mpfr related memory corruption tbm at cyrius dot com
  2008-09-08  8:55 ` [Bug other/37419] " tbm at cyrius dot com
  2008-09-08 21:49 ` pinskia at gcc dot gnu dot org
@ 2008-09-08 23:29 ` pinskia at gcc dot gnu dot org
  2008-09-08 23:31 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-09-08 23:29 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from pinskia at gcc dot gnu dot org  2008-09-08 23:28 -------
Created an attachment (id=16259)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16259&action=view)
Reduced testcase

This is as far as I can get this testcase.


-- 


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


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

* [Bug other/37419] [4.4 Regression] mpfr related memory corruption
  2008-09-08  8:51 [Bug other/37419] New: [4.4 Regression] mpfr related memory corruption tbm at cyrius dot com
                   ` (2 preceding siblings ...)
  2008-09-08 23:29 ` pinskia at gcc dot gnu dot org
@ 2008-09-08 23:31 ` pinskia at gcc dot gnu dot org
  2008-09-09 10:47 ` jakub at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-09-08 23:31 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from pinskia at gcc dot gnu dot org  2008-09-08 23:29 -------
#0  add_new_edges_to_heap (heap=0x43909090, new_edges=0x4390d2d0) at
/Users/apinski/src/local/gcc/gcc/ipa-inline.c:817


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hubicka at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2008-09-08 23:29:52
               date|                            |


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


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

* [Bug other/37419] [4.4 Regression] mpfr related memory corruption
  2008-09-08  8:51 [Bug other/37419] New: [4.4 Regression] mpfr related memory corruption tbm at cyrius dot com
                   ` (3 preceding siblings ...)
  2008-09-08 23:31 ` pinskia at gcc dot gnu dot org
@ 2008-09-09 10:47 ` jakub at gcc dot gnu dot org
  2008-09-09 19:22 ` jakub at gcc dot gnu dot org
  2008-09-09 20:28 ` jakub at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-09-09 10:47 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from jakub at gcc dot gnu dot org  2008-09-09 10:45 -------
Fixed one bug, but apparently there are some more.  Debugging.


-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |jakub at gcc dot gnu dot org
                   |dot org                     |
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2008-09-08 23:29:52         |2008-09-09 10:45:57
               date|                            |


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


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

* [Bug other/37419] [4.4 Regression] mpfr related memory corruption
  2008-09-08  8:51 [Bug other/37419] New: [4.4 Regression] mpfr related memory corruption tbm at cyrius dot com
                   ` (4 preceding siblings ...)
  2008-09-09 10:47 ` jakub at gcc dot gnu dot org
@ 2008-09-09 19:22 ` jakub at gcc dot gnu dot org
  2008-09-09 20:28 ` jakub at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-09-09 19:22 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from jakub at gcc dot gnu dot org  2008-09-09 19:21 -------
Subject: Bug 37419

Author: jakub
Date: Tue Sep  9 19:19:41 2008
New Revision: 140168

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=140168
Log:
        PR other/37419
        * ipa-prop.h (ipa_propagate_indirect_call_infos): Change last argument
        to pointer to vector pointer.
        * ipa-prop.c (ipa_propagate_indirect_call_infos,
        propagate_info_to_inlined_callees): Likewise.
        (update_call_notes_after_inlining): Likewise.  Push new indirect edge
        to *new_edges instead of new_edges.  Reread IPA_EDGE_REF after
        ipa_check_create_edge_args.
        * ipa-inline.c (cgraph_decide_recursive_inlining): Change last argument
        to pointer to vector pointer.
        (cgraph_decide_inlining_of_small_function): Adjust
        cgraph_decide_recursive_inlining and ipa_propagate_indirect_call_infos
        calls.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/ipa-inline.c
    trunk/gcc/ipa-prop.c
    trunk/gcc/ipa-prop.h


-- 


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


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

* [Bug other/37419] [4.4 Regression] mpfr related memory corruption
  2008-09-08  8:51 [Bug other/37419] New: [4.4 Regression] mpfr related memory corruption tbm at cyrius dot com
                   ` (5 preceding siblings ...)
  2008-09-09 19:22 ` jakub at gcc dot gnu dot org
@ 2008-09-09 20:28 ` jakub at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-09-09 20:28 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from jakub at gcc dot gnu dot org  2008-09-09 20:26 -------
Fixed.


-- 

jakub at gcc dot gnu dot org changed:

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


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


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

end of thread, other threads:[~2008-09-09 20:28 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-08  8:51 [Bug other/37419] New: [4.4 Regression] mpfr related memory corruption tbm at cyrius dot com
2008-09-08  8:55 ` [Bug other/37419] " tbm at cyrius dot com
2008-09-08 21:49 ` pinskia at gcc dot gnu dot org
2008-09-08 23:29 ` pinskia at gcc dot gnu dot org
2008-09-08 23:31 ` pinskia at gcc dot gnu dot org
2008-09-09 10:47 ` jakub at gcc dot gnu dot org
2008-09-09 19:22 ` jakub at gcc dot gnu dot org
2008-09-09 20:28 ` jakub at gcc dot gnu dot 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).