www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 7247] New: All programs segfault before main

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=7247

           Summary: All programs segfault before main
           Product: D
           Version: D2
          Platform: x86_64
        OS/Version: Linux
            Status: NEW
          Severity: blocker
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: jlquinn optonline.net



---
dmd 2.057, Ubuntu 11.10 x86_64

jlquinn wyvern:~/bluemax/src/trlblues$ cat junk2.d
import std.stdio;

int main(string[] args) {
  writefln("hi");
  // string s;
  // stdin.readln("%s", s);
  return 0;
}jlquinn wyvern:~/bluemax/src/trlblues$ cat junk2.d
import std.stdio;
int main(string[] args) {
  writefln("hi");
  return 0;
}
jlquinn wyvern:~/bluemax/src/trlblues$ ~/dmd2/linux/bin64/dmd junk2.d
jlquinn wyvern:~/bluemax/src/trlblues$ ./junk2 
Segmentation fault

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 07 2012
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=7247


Jerry Quinn <jlquinn optonline.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P2                          |P1


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 07 2012
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=7247




---
Not sure how useful it is, but here's the gdb backtrace.

jlquinn wyvern:~/bluemax/src/trlblues$ ~/dmd2/linux/bin64/dmd -g junk2.d
jlquinn wyvern:~/bluemax/src/trlblues$ gdb junk2 
GNU gdb (Ubuntu/Linaro 7.3-0ubuntu2) 7.3-2011.08
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.launchpad.net/gdb-linaro/>...
Reading symbols from /home/jlquinn/bluemax/src/trlblues/junk2...done.
(gdb) run
Starting program: /home/jlquinn/bluemax/src/trlblues/junk2 
[Thread debugging using libthread_db enabled]

Program received signal SIGSEGV, Segmentation fault.
0x0000000000451306 in gc_init ()
(gdb) bt

















-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 07 2012
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=7247




---
2.056 worked fine for me.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 13 2012
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=7247




---
Rebuilding dmd from src didn't help.  I get the same segfault.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 13 2012
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=7247




---
32 bit dmd works, 64 bit dmd is busted.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 13 2012
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=7247


timon.gehr gmx.ch changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |timon.gehr gmx.ch



I don't think the bug tracker is the right place to get help for solving your
problem, because it must be some issue with your specific setup rather than a
compiler bug. (dmd 2.057 works fine for me on Ubuntu 11.10 x86_64). Maybe you
want to discuss the crashes on the newsgroup?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 14 2012
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=7247


Walter Bright <bugzilla digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla digitalmars.com



02:30:46 PST ---
I suspect something is wrong with your installation, as this is not failing
like this on any of our test machines nor any other users.

Lots of times this kind of mysterious failure can come about from having
another, older, libphobos2.a somewhere on your system that is getting linked in
instead.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 19 2012
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=7247




---
jlquinn wyvern:~$ locate libphobos2.a
/home/jlquinn/dmd2/freebsd/lib32/libphobos2.a
/home/jlquinn/dmd2/linux/lib32/libphobos2.a
/home/jlquinn/dmd2/linux/lib64/libphobos2.a
/home/jlquinn/dmd2/osx/lib/libphobos2.a

Anything else I can check?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 19 2012
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=7247




13:23:53 PST ---
Delete them all and reinstall. Also, make sure you don't have other phobos
directories around.

Just a note: I've seen a pattern over and over - the person will insist they
did a clean installation, and then a while later will discover an old version
floating around somewhere they hadn't looked.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 19 2012
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=7247


SomeDude <lovelydear mailmetrash.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |lovelydear mailmetrash.com



PDT ---
Given that this wasn't reproduced, should be closed ?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Apr 19 2012
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=7247


SomeDude <lovelydear mailmetrash.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|blocker                     |trivial


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Apr 20 2012
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=7247


yebblies <yebblies gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |yebblies gmail.com
         Resolution|                            |WORKSFORME
           Severity|trivial                     |critical



Closing as it appears to be an environment problem rather than a bug.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jul 10 2012