public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libfortran/64732] New: [5 Regression] julia build failure: double free or corruption in libgfortran.so.3
@ 2015-01-22 15:23 trippels at gcc dot gnu.org
  2015-01-22 16:09 ` [Bug libfortran/64732] " rguenth at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: trippels at gcc dot gnu.org @ 2015-01-22 15:23 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 64732
           Summary: [5 Regression] julia build failure: double free or
                    corruption in libgfortran.so.3
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libfortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: trippels at gcc dot gnu.org

Trying to build Julia with gcc-5:
...
/var/tmp/julia/usr/bin/julia -C native --build
/var/tmp/julia/usr/lib/julia/sys0 sysimg.jl

*** Error in `/var/tmp/julia/usr/bin/julia': double free or corruption (out):
0x000000000c131370 ***
======= Backtrace: =========
/lib/libc.so.6(+0x73fbe)[0x7f92eeb62fbe]
/lib/libc.so.6(+0x7973d)[0x7f92eeb6873d]
/lib/libc.so.6(+0x79f4b)[0x7f92eeb68f4b]
/usr/lib/gcc/x86_64-pc-linux-gnu/5.0.0/libgfortran.so.3(+0x244913)[0x7f92dbb10913]
/usr/lib/gcc/x86_64-pc-linux-gnu/5.0.0/libgfortran.so.3(+0x1a7e9)[0x7f92db8e67e9]
/lib64/ld-linux-x86-64.so.2(+0xf927)[0x7f92efb68927]
/lib/libc.so.6(+0x3686a)[0x7f92eeb2586a]
/lib/libc.so.6(+0x368b5)[0x7f92eeb258b5]
/lib/libc.so.6(__libc_start_main+0xf7)[0x7f92eeb0efd7]
/var/tmp/julia/usr/bin/julia[0x4014d5]

Switching to /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.2/libgfortran.so.3.0.0 
fixes the issue.


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

* [Bug libfortran/64732] [5 Regression] julia build failure: double free or corruption in libgfortran.so.3
  2015-01-22 15:23 [Bug libfortran/64732] New: [5 Regression] julia build failure: double free or corruption in libgfortran.so.3 trippels at gcc dot gnu.org
@ 2015-01-22 16:09 ` rguenth at gcc dot gnu.org
  2015-01-22 16:14 ` ktkachov at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-01-22 16:09 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2015-01-22
   Target Milestone|---                         |5.0
     Ever confirmed|0                           |1

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Waiting for some kind of a testcase (or at least a pointer to what Julia is).


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

* [Bug libfortran/64732] [5 Regression] julia build failure: double free or corruption in libgfortran.so.3
  2015-01-22 15:23 [Bug libfortran/64732] New: [5 Regression] julia build failure: double free or corruption in libgfortran.so.3 trippels at gcc dot gnu.org
  2015-01-22 16:09 ` [Bug libfortran/64732] " rguenth at gcc dot gnu.org
@ 2015-01-22 16:14 ` ktkachov at gcc dot gnu.org
  2015-01-22 16:23 ` trippels at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: ktkachov at gcc dot gnu.org @ 2015-01-22 16:14 UTC (permalink / raw)
  To: gcc-bugs

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

ktkachov at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ktkachov at gcc dot gnu.org

--- Comment #2 from ktkachov at gcc dot gnu.org ---
(In reply to Richard Biener from comment #1)
> Waiting for some kind of a testcase (or at least a pointer to what Julia is).

Judging by the .jl suffix, I'd think it's this:
http://julialang.org/


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

* [Bug libfortran/64732] [5 Regression] julia build failure: double free or corruption in libgfortran.so.3
  2015-01-22 15:23 [Bug libfortran/64732] New: [5 Regression] julia build failure: double free or corruption in libgfortran.so.3 trippels at gcc dot gnu.org
  2015-01-22 16:09 ` [Bug libfortran/64732] " rguenth at gcc dot gnu.org
  2015-01-22 16:14 ` ktkachov at gcc dot gnu.org
@ 2015-01-22 16:23 ` trippels at gcc dot gnu.org
  2015-01-22 16:40 ` kargl at gcc dot gnu.org
  2015-01-22 16:53 ` trippels at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: trippels at gcc dot gnu.org @ 2015-01-22 16:23 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
(In reply to ktkachov from comment #2)
> (In reply to Richard Biener from comment #1)
> > Waiting for some kind of a testcase (or at least a pointer to what Julia is).
> 
> Judging by the .jl suffix, I'd think it's this:
> http://julialang.org/

Yes.

Here's another backtrace:

======= Backtrace: =========
/lib/libc.so.6(+0x73fbe)[0x7f3682997fbe]
/lib/libc.so.6(+0x7973d)[0x7f368299d73d]
/lib/libc.so.6(+0x79f4b)[0x7f368299df4b]
/usr/lib/gcc/x86_64-pc-linux-gnu/5.0.0/libgfortran.so.3(+0xe6aa6)[0x7f366f954aa6]
/usr/lib/gcc/x86_64-pc-linux-gnu/5.0.0/libgfortran.so.3(+0xe6bb2)[0x7f366f954bb2]
/usr/lib/gcc/x86_64-pc-linux-gnu/5.0.0/libgfortran.so.3(+0x1a7f9)[0x7f366f8887f9]
/lib64/ld-linux-x86-64.so.2(+0xf927)[0x7f368399a927]
/lib/libc.so.6(+0x3686a)[0x7f368295a86a]
/lib/libc.so.6(+0x368b5)[0x7f368295a8b5]
/lib/libc.so.6(__libc_start_main+0xf7)[0x7f3682943fd7]
/var/tmp/julia/usr/bin/julia[0x4014d5]

addr2line shows:

libgfortran/io/unit.c:718 : 718   free_format_hash_table (u);
libgfortran/io/unit.c:764
libgfortran/runtime/main.c:292

Don't know how to come up with a small testcase yet.


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

* [Bug libfortran/64732] [5 Regression] julia build failure: double free or corruption in libgfortran.so.3
  2015-01-22 15:23 [Bug libfortran/64732] New: [5 Regression] julia build failure: double free or corruption in libgfortran.so.3 trippels at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2015-01-22 16:23 ` trippels at gcc dot gnu.org
@ 2015-01-22 16:40 ` kargl at gcc dot gnu.org
  2015-01-22 16:53 ` trippels at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: kargl at gcc dot gnu.org @ 2015-01-22 16:40 UTC (permalink / raw)
  To: gcc-bugs

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

kargl at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kargl at gcc dot gnu.org

--- Comment #4 from kargl at gcc dot gnu.org ---
(In reply to Markus Trippelsdorf from comment #3)
> (In reply to ktkachov from comment #2)
> > (In reply to Richard Biener from comment #1)
> > > Waiting for some kind of a testcase (or at least a pointer to what Julia is).
> > 
> > Judging by the .jl suffix, I'd think it's this:
> > http://julialang.org/
> 
> Yes.
> 
> Here's another backtrace:
> 
> ======= Backtrace: =========
> /lib/libc.so.6(+0x73fbe)[0x7f3682997fbe]
> /lib/libc.so.6(+0x7973d)[0x7f368299d73d]
> /lib/libc.so.6(+0x79f4b)[0x7f368299df4b]
> /usr/lib/gcc/x86_64-pc-linux-gnu/5.0.0/libgfortran.so.
> 3(+0xe6aa6)[0x7f366f954aa6]
> /usr/lib/gcc/x86_64-pc-linux-gnu/5.0.0/libgfortran.so.
> 3(+0xe6bb2)[0x7f366f954bb2]
> /usr/lib/gcc/x86_64-pc-linux-gnu/5.0.0/libgfortran.so.
> 3(+0x1a7f9)[0x7f366f8887f9]
> /lib64/ld-linux-x86-64.so.2(+0xf927)[0x7f368399a927]
> /lib/libc.so.6(+0x3686a)[0x7f368295a86a]
> /lib/libc.so.6(+0x368b5)[0x7f368295a8b5]
> /lib/libc.so.6(__libc_start_main+0xf7)[0x7f3682943fd7]
> /var/tmp/julia/usr/bin/julia[0x4014d5]
> 
> addr2line shows:
> 
> libgfortran/io/unit.c:718 : 718   free_format_hash_table (u);
> libgfortran/io/unit.c:764
> libgfortran/runtime/main.c:292
> 
> Don't know how to come up with a small testcase yet.

Try building julia with -g and then using a debugger to
get an actual backtrace.  But, I suspect that julia isn't
properly initializing the gfortran runtime library and you
have conflicting IO subsystems (ie., julia's IO subsystem 
and gfortran's IO subsystem).


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

* [Bug libfortran/64732] [5 Regression] julia build failure: double free or corruption in libgfortran.so.3
  2015-01-22 15:23 [Bug libfortran/64732] New: [5 Regression] julia build failure: double free or corruption in libgfortran.so.3 trippels at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2015-01-22 16:40 ` kargl at gcc dot gnu.org
@ 2015-01-22 16:53 ` trippels at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: trippels at gcc dot gnu.org @ 2015-01-22 16:53 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|---                         |INVALID

--- Comment #5 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
I'm closing this issue for now. Because it turned out it depends
on malloc implementation that I use. glibc's malloc is fine.
With libllalloc.so.1.3 it fails.


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

end of thread, other threads:[~2015-01-22 16:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-22 15:23 [Bug libfortran/64732] New: [5 Regression] julia build failure: double free or corruption in libgfortran.so.3 trippels at gcc dot gnu.org
2015-01-22 16:09 ` [Bug libfortran/64732] " rguenth at gcc dot gnu.org
2015-01-22 16:14 ` ktkachov at gcc dot gnu.org
2015-01-22 16:23 ` trippels at gcc dot gnu.org
2015-01-22 16:40 ` kargl at gcc dot gnu.org
2015-01-22 16:53 ` 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).