Jump to page: 1 2 3
Thread overview
[Issue 8596] New: Indeterministic assertion failure in rehash
Aug 28, 2012
timon.gehr@gmx.ch
Sep 02, 2012
deadalnix
Sep 02, 2012
timon.gehr@gmx.ch
Nov 12, 2012
Walter Bright
Nov 12, 2012
Walter Bright
Nov 12, 2012
deadalnix
Nov 12, 2012
Walter Bright
Nov 12, 2012
deadalnix
Nov 12, 2012
Walter Bright
Nov 12, 2012
deadalnix
Nov 12, 2012
deadalnix
Nov 12, 2012
deadalnix
Nov 13, 2012
Walter Bright
Nov 13, 2012
Walter Bright
Nov 13, 2012
deadalnix
Nov 13, 2012
Walter Bright
Nov 13, 2012
deadalnix
Nov 13, 2012
deadalnix
Nov 13, 2012
Walter Bright
Nov 14, 2012
deadalnix
Nov 15, 2012
Walter Bright
Nov 26, 2012
deadalnix
Dec 10, 2012
Walter Bright
Apr 02, 2013
Rene Zwanenburg
Apr 02, 2013
Maxim Fomin
Apr 02, 2013
Rene Zwanenburg
August 28, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8596

           Summary: Indeterministic assertion failure in rehash
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: timon.gehr@gmx.ch


--- Comment #0 from timon.gehr@gmx.ch 2012-08-28 12:28:46 PDT ---
DMD 2.060

The following assertion failure occurs indeterministically:

dmd: ../ztc/aa.c:423: void AArray::rehash_x(aaA*, aaA**, size_t): Assertion `0'
failed.

The frequency seems to increase as project size grows.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
September 02, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8596


deadalnix <deadalnix@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |deadalnix@gmail.com


--- Comment #1 from deadalnix <deadalnix@gmail.com> 2012-09-02 08:03:16 PDT ---
It tend to become a serious problem to me.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
September 02, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8596



--- Comment #2 from timon.gehr@gmx.ch 2012-09-02 08:03:54 PDT ---
(In reply to comment #1)
> It tend to become a serious problem to me.

+1.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
November 12, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8596


Walter Bright <bugzilla@digitalmars.com> changed:

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


--- Comment #3 from Walter Bright <bugzilla@digitalmars.com> 2012-11-12 11:50:58 PST ---
The assert happens when more than one item in the hash table has the same key. A hash table may only have one item per key.

It would be helpful if you could run it under linux or osx, compile dmd with -g, and get a stack trace.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
November 12, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8596


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |major


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
November 12, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8596


deadalnix <deadalnix@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|major                       |normal


--- Comment #4 from deadalnix <deadalnix@gmail.com> 2012-11-12 12:20:48 PST ---
(In reply to comment #3)
> The assert happens when more than one item in the hash table has the same key. A hash table may only have one item per key.
> 
> It would be helpful if you could run it under linux or osx, compile dmd with -g, and get a stack trace.

I fail to trigger the error when using gdb. Seems like gdb is influencing on what does trigger the error.

The error trigger as well when dmd is compiled with -g .

Looks like a race condition.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
November 12, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8596



--- Comment #5 from Walter Bright <bugzilla@digitalmars.com> 2012-11-12 12:39:20 PST ---
dmd isn't multithreaded, so it could not be a race condition.

It does, however, sound like memory corruption.

Can you run it under valgrind?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
November 12, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8596



--- Comment #6 from deadalnix <deadalnix@gmail.com> 2012-11-12 12:45:50 PST ---
(In reply to comment #5)
> dmd isn't multithreaded, so it could not be a race condition.
> 
> It does, however, sound like memory corruption.
> 
> Can you run it under valgrind?

Already tryed, but I don't have enough RAM on my machine to do so. Consider that compiling the project require more than 2.2Gb of RAM without valgrind.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
November 12, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8596



--- Comment #7 from Walter Bright <bugzilla@digitalmars.com> 2012-11-12 12:51:20 PST ---
If you're running the 64 bit dmd, shouldn't it be able to use far more virtual
memory (very slowly)?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
November 12, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8596


Alex Rønne Petersen <alex@lycus.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |alex@lycus.org


--- Comment #8 from Alex Rønne Petersen <alex@lycus.org> 2012-11-12 21:54:31 CET ---
Well, only if paging is enabled (i.e. there is a swap partition in use). I know I set my systems up without paging because I practically never need it.

@deadalnix How much RAM does your system have?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
« First   ‹ Prev
1 2 3