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


--- Comment #0 from Jerry Quinn <jlquinn optonline.net> 2012-01-07 23:51:51 PST
---
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



--- Comment #1 from Jerry Quinn <jlquinn optonline.net> 2012-01-07 23:53:26 PST
---
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
#0  0x0000000000451306 in gc_init ()
#1  0x00007fffffffe110 in ?? ()
#2  0x00007fffffffe010 in ?? ()
#3  0x000000000044b1c2 in rt.dmain2.main() ()
#4  0x00007fffffffe110 in ?? ()
#5  0x00007fffffffe060 in ?? ()
#6  0x000000000044ad4a in rt.dmain2.main() ()
#7  0x0000000000000001 in ?? ()
#8  0x0000000000000028 in ?? ()
#9  0x0000000000492020 in ?? ()
#10 0x0000000000000001 in ?? ()
#11 0x0000000000492020 in ?? ()
#12 0x00007fffffffe4c6 in ?? ()
#13 0x00007fffffffe110 in ?? ()
#14 0x00007fffffffe110 in ?? ()
#15 0x000000000044acdb in main ()

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



--- Comment #2 from Jerry Quinn <jlquinn optonline.net> 2012-01-13 20:51:34 PST
---
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



--- Comment #3 from Jerry Quinn <jlquinn optonline.net> 2012-01-13 21:06:10 PST
---
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



--- Comment #4 from Jerry Quinn <jlquinn optonline.net> 2012-01-13 21:16:11 PST
---
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


--- Comment #5 from timon.gehr gmx.ch 2012-01-14 11:21:22 PST ---
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


--- Comment #6 from Walter Bright <bugzilla digitalmars.com> 2012-01-19
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



--- Comment #7 from Jerry Quinn <jlquinn optonline.net> 2012-01-19 10:00:19 PST
---
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



--- Comment #8 from Walter Bright <bugzilla digitalmars.com> 2012-01-19
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


--- Comment #9 from SomeDude <lovelydear mailmetrash.com> 2012-04-19 12:15:22
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


--- Comment #10 from yebblies <yebblies gmail.com> 2012-07-11 00:43:24 EST ---
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