Thread overview
Re: dmd git head completely broken on ubuntu (but not osx)
Dec 05, 2013
H. S. Teoh
Dec 05, 2013
Brad Roberts
Dec 06, 2013
H. S. Teoh
Dec 09, 2013
Timothee Cour
Dec 09, 2013
H. S. Teoh
Dec 09, 2013
Timothee Cour
December 05, 2013
On Thu, Dec 05, 2013 at 11:17:31AM -0800, Timothee Cour wrote:
> https://d.puremagic.com/issues/show_bug.cgi?id=11684 is a pretty serious
> regression:
> when building dmd/druntime/phobos from source, any call to writeln will
> result in segfault on ubuntu (but on osx I don't have this problem)
> 
> with git checkout 2.064 instead of git checkout master, things work.

Are you running 64-bit or 32-bit? I'm testing git HEAD (just updated as of a few minutes ago) on 64-bit Debian/unstable, and everything still works.


T

-- 
"Uhh, I'm still not here." -- KD, while "away" on ICQ.
December 05, 2013
On 12/5/13 11:17 AM, Timothee Cour wrote:
> https://d.puremagic.com/issues/show_bug.cgi?id=11684 is a pretty serious regression:
> when building dmd/druntime/phobos from source, any call to writeln will result in segfault on ubuntu
> (but on osx I don't have this problem)
>
> with git checkout 2.064 instead of git checkout master, things work.
>
>

One of the linux auto-tester nodes is ubuntu and it's not showing the problems.  That pretty strongly indicates it's not a generic everything is broken sort of problem.
December 06, 2013
On Thu, Dec 05, 2013 at 11:17:31AM -0800, Timothee Cour wrote:
> https://d.puremagic.com/issues/show_bug.cgi?id=11684 is a pretty serious
> regression:
> when building dmd/druntime/phobos from source, any call to writeln
> will result in segfault on ubuntu (but on osx I don't have this
> problem)
> 
> with git checkout 2.064 instead of git checkout master, things work.

Just on a random whim: have you tried make clean in dmd/druntime/phobos and then rebuild everything from scratch? I wonder if maybe it's caused by some stale object files from an incompatible earlier version?

Also, have you tried dmd -v to make sure that it's linking in the correct versions of the runtime libraries?

These are some of the things that have bitten me in the past; maybe they might help you?


T

-- 
It only takes one twig to burn down a forest.
December 09, 2013
On Thu, Dec 5, 2013 at 9:05 PM, H. S. Teoh <hsteoh@quickfur.ath.cx> wrote:

> On Thu, Dec 05, 2013 at 11:17:31AM -0800, Timothee Cour wrote:
> > https://d.puremagic.com/issues/show_bug.cgi?id=11684 is a pretty serious
> > regression:
> > when building dmd/druntime/phobos from source, any call to writeln
> > will result in segfault on ubuntu (but on osx I don't have this
> > problem)
> >
> > with git checkout 2.064 instead of git checkout master, things work.
>
> Just on a random whim: have you tried make clean in dmd/druntime/phobos and then rebuild everything from scratch? I wonder if maybe it's caused by some stale object files from an incompatible earlier version?
>

yes, I have


>
> Also, have you tried dmd -v to make sure that it's linking in the correct versions of the runtime libraries?
>
yes, it does


>
> These are some of the things that have bitten me in the past; maybe they might help you?
>
>
> T
>
> --
> It only takes one twig to burn down a forest.
>


it fails on Ubuntu 12.04.1 LTS (64bit) and Ubuntu 12.04.3 LTS (64bit), and
works on OSX.

what is your configuration where it works?


December 09, 2013
On Mon, Dec 09, 2013 at 10:54:19AM -0800, Timothee Cour wrote:
> On Thu, Dec 5, 2013 at 9:05 PM, H. S. Teoh <hsteoh@quickfur.ath.cx> wrote:
[...]
> it fails on Ubuntu 12.04.1 LTS (64bit) and Ubuntu 12.04.3 LTS (64bit),
> and works on OSX.
> 
> what is your configuration where it works?

I'm running Debian/unstable, 64-bit, and using dmd/druntime/phobos git HEAD. I don't know how different it is from Ubuntu, but I think most of the system libraries should be the same(?).

Can you attach a faulty executable (and its corresponding object file before linking) to bugzilla?  It would at least give us something to work with, otherwise we're just playing the guessing game.

Also, assuming that it runs in my environment (I'm pretty sure it will, since Debian & Ubuntu have essentially the same base system), I'd be able to see the segfault in the debugger and hopefully figure out what might have gone wrong.


T

-- 
In order to understand recursion you must first understand recursion.
December 09, 2013
see bugzilla/11684


On Mon, Dec 9, 2013 at 11:32 AM, H. S. Teoh <hsteoh@quickfur.ath.cx> wrote:

> On Mon, Dec 09, 2013 at 10:54:19AM -0800, Timothee Cour wrote:
> > On Thu, Dec 5, 2013 at 9:05 PM, H. S. Teoh <hsteoh@quickfur.ath.cx>
> wrote:
> [...]
> > it fails on Ubuntu 12.04.1 LTS (64bit) and Ubuntu 12.04.3 LTS (64bit),
> > and works on OSX.
> >
> > what is your configuration where it works?
>
> I'm running Debian/unstable, 64-bit, and using dmd/druntime/phobos git HEAD. I don't know how different it is from Ubuntu, but I think most of the system libraries should be the same(?).
>
> Can you attach a faulty executable (and its corresponding object file before linking) to bugzilla?  It would at least give us something to work with, otherwise we're just playing the guessing game.
>
> Also, assuming that it runs in my environment (I'm pretty sure it will, since Debian & Ubuntu have essentially the same base system), I'd be able to see the segfault in the debugger and hopefully figure out what might have gone wrong.
>
>
> T
>
> --
> In order to understand recursion you must first understand recursion.
>