Thread overview
[phobos] bigint unittest failure on OSX
Oct 24, 2010
Walter Bright
Oct 24, 2010
Don Clugston
Oct 24, 2010
Walter Bright
Oct 25, 2010
Don Clugston
October 23, 2010
Works on Windows and Ubuntu.
--------------------------------------------

Testing generated/osx/debug/unittest/std/bigint core.exception.AssertError at std.bigint(476): unittest failure
----------------
5   bigint                              0x0000a918 onAssertErrorMsg + 68
6   bigint                              0x0000a95a onUnittestErrorMsg + 26
7   bigint                              0x00011f9d _d_unittestm + 45
8   bigint                              0x00001f3f void
std.bigint.__unittest_fa
il(int) + 35
9   bigint                              0x00002716 void
std.bigint.__unittest1()
 + 686
10  bigint                              0x00001ec7 void
std.bigint.__modtest() +
 11
11  bigint                              0x0000ad25 extern (C) bool
core.runtime.
runModuleUnitTests() + 45
12  bigint                              0x00005b47
D6object10ModuleInfo7opApplyF
MDFKPS6object10ModuleInfoZiZi + 71
13  bigint                              0x0000ac16 runModuleUnitTests + 134
14  bigint                              0x00012306 extern (C) int
rt.dmain2.main
(int, char**) + 38
15  bigint                              0x0001220a extern (C) int
rt.dmain2.main
(int, char**) + 42
16  bigint                              0x00012197 main + 179
17  bigint                              0x00001ea9 start + 53
make[2]: *** [generated/osx/debug/unittest/std/bigint] Error 1
make[1]: *** [unittest] Error 2
make: *** [unittest] Error 2
October 24, 2010
On 24 October 2010 07:35, Walter Bright <walter at digitalmars.com> wrote:
> Works on Windows and Ubuntu.
> --------------------------------------------
>
> Testing generated/osx/debug/unittest/std/bigint core.exception.AssertError at std.bigint(476): unittest failure

Did this work before, on OSX? (Is it a regression?)
October 24, 2010

Don Clugston wrote:
> On 24 October 2010 07:35, Walter Bright <walter at digitalmars.com> wrote:
> 
>> Works on Windows and Ubuntu.
>> --------------------------------------------
>>
>> Testing generated/osx/debug/unittest/std/bigint
>> core.exception.AssertError at std.bigint(476): unittest failure
>> 
>
> Did this work before, on OSX? (Is it a regression?)
>
> 

Yes. The previous dmd version worked, I just updated phobos tonight.
October 25, 2010
On 24 October 2010 09:27, Walter Bright <walter at digitalmars.com> wrote:
>
>
> Don Clugston wrote:
>>
>> On 24 October 2010 07:35, Walter Bright <walter at digitalmars.com> wrote:
>>
>>>
>>> Works on Windows and Ubuntu.
>>> --------------------------------------------
>>>
>>> Testing generated/osx/debug/unittest/std/bigint core.exception.AssertError at std.bigint(476): unittest failure
>>>
>>
>> Did this work before, on OSX? (Is it a regression?)
>>
>>
>
> Yes. The previous dmd version worked, I just updated phobos tonight.

Turns out that it those unit tests had been disabled before, so it's
probably not a regression. It's very strange though, it's very simple
code that is failing (there is no asm involved, for example).
I found one bug in the code, but it should only affect 64 bit systems.
I've added another assert, which should help to track down where it's
failing. Please retest with the latest Phobos svn.