August 15, 2012
On Tuesday, 7 August 2012 at 00:12:55 UTC, Alex Rønne Petersen wrote:
> Hi,
>
> Has anyone managed to get the 2.060 .deb working on Ubuntu 12.04? On all 12.04 systems I have access to, all D programs consistently segmentation fault in gc_init().

I'm having the same issue.

August 16, 2012
On 7 August 2012 16:53, Alex Rønne Petersen <alex@lycus.org> wrote:
> On 07-08-2012 13:41, Jordi Sayol wrote:
>>
>> Al 07/08/12 02:12, En/na Alex Rønne Petersen ha escrit:
>>>
>>> Hi,
>>>
>>>
>>> Has anyone managed to get the 2.060 .deb working on Ubuntu 12.04? On all 12.04 systems I have access to, all D programs consistently segmentation fault in gc_init().
>>>
>>
>> I've installed dmd_2.060-0_amd64.deb package on Ubuntu 12.04 64-bit, and compiled without problems to both, 32-bit and 64-bit.
>>
>> Can you give more information please?
>>
>> Regards,
>>
>
> See my replies to the thread. Any other information?
>
>
> --
> Alex Rønne Petersen
> alex@lycus.org
> http://lycus.org

I would say rebuild druntime with debugging symbols so you can get the line where it crashes... but I guess building the library yourself will resolve the issue (as things have a habit of usually doing).

-- 
Iain Buclaw

*(p < e ? p++ : p) = (c & 0x0f) + '0';
August 16, 2012
Al 16/08/12 09:35, En/na Iain Buclaw ha escrit:
> I would say rebuild druntime with debugging symbols so you can get the line where it crashes...

I've built an special 64-bit dmd v2.060 deb package. It includes dmd, druntime and phobos compiled with "-g -g3" flags for gcc and cc, and "-gc" flag for dmd.
Other binaries and 32-bit phobos library was removed.

http://d-packages.googlecode.com/files/dmd_2.060-0debug_amd64.deb

Best regards,
-- 
Jordi Sayol
August 16, 2012
On Thu, 2012-08-16 at 12:09 +0200, Jordi Sayol wrote:
[…]
> I've built an special 64-bit dmd v2.060 deb package. It includes dmd, druntime and phobos compiled with "-g -g3" flags for gcc and cc, and "-gc" flag for dmd.
> Other binaries and 32-bit phobos library was removed.
> 
> http://d-packages.googlecode.com/files/dmd_2.060-0debug_amd64.deb

I guess I should try this on Debian Unstable to catch extra data to see what is wrong with thread handling in 2.060 compared to 2.059 on Debian?

-- 
Russel. ============================================================================= Dr Russel Winder      t: +44 20 7585 2200   voip: sip:russel.winder@ekiga.net 41 Buckmaster Road    m: +44 7770 465 077   xmpp: russel@winder.org.uk London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder


August 19, 2012
On 16-08-2012 09:35, Iain Buclaw wrote:
> On 7 August 2012 16:53, Alex Rønne Petersen <alex@lycus.org> wrote:
>> On 07-08-2012 13:41, Jordi Sayol wrote:
>>>
>>> Al 07/08/12 02:12, En/na Alex Rønne Petersen ha escrit:
>>>>
>>>> Hi,
>>>>
>>>>
>>>> Has anyone managed to get the 2.060 .deb working on Ubuntu 12.04? On all
>>>> 12.04 systems I have access to, all D programs consistently segmentation
>>>> fault in gc_init().
>>>>
>>>
>>> I've installed dmd_2.060-0_amd64.deb package on Ubuntu 12.04 64-bit, and
>>> compiled without problems to both, 32-bit and 64-bit.
>>>
>>> Can you give more information please?
>>>
>>> Regards,
>>>
>>
>> See my replies to the thread. Any other information?
>>
>>
>> --
>> Alex Rønne Petersen
>> alex@lycus.org
>> http://lycus.org
>
> I would say rebuild druntime with debugging symbols so you can get the
> line where it crashes... but I guess building the library yourself
> will resolve the issue (as things have a habit of usually doing).
>

I already narrowed down the line (see my other replies): https://github.com/D-Programming-Language/druntime/blob/master/src/gc/gc.d#L103

The ClassInfo object resulting from GC.classinfo contains bogus data (or something). It seems to fetch the right object, but ci.init.length is 0 and ci.init.ptr is null.

-- 
Alex Rønne Petersen
alex@lycus.org
http://lycus.org
1 2
Next ›   Last »