Jump to content

Alexander Pustotin

Members
  • Content Count

    4
  • Joined

  • Last visited

Posts posted by Alexander Pustotin


  1. 7 minutes ago, Stefan Glienke said:

    Looks to me very much like a timing problem on shutdown. As soon as I debug or cause some slight delay before the end the AV disappears.

     

    @Stefan: at first sight it looks that TThreadPool doesn't wait for all tasks complete but only already started. Maybe I'm wrong but getting details is too time consuming process :).


  2. 4 hours ago, Günther Schoch said:

    @Alexander: I would suggest to use the attached threading.pas (see RSP-23466) to quickly crosscheck if 10.3.x has introduced that problem (as the other ones mentioned in RSP-23466)

    @Günther: I tried to use the unit attached to https://quality.embarcadero.com/browse/RSP-23466 and still get the AV. I noticed only that the AV can be reproduced rarely rather with original one.

     


  3. Hi all

     

    when switching to Delphi 10.3 Rio I encountered AV in the Parallel Library code. The following somple case can reproduce the issue. I assume that the reason of the problem is a race condition. So it happens in the most of cases but not 100%.

     

    program ParallelForAV;
    
    {$APPTYPE CONSOLE}
    
    uses
      System.SysUtils, System.Threading;
    
    begin
      try
        TParallel.&For(1, 200, procedure (AIndex: Integer)
        begin
          Abort;
        end);
      except
        { ignore exceptions }
      end;
    end.

    I cannot find this issue at https://quality.embarcadero.com.

     

    Could someone confirm the problem?

     

    Best regards

    Alexander

×