This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch, fortran] PR48298 - [F03] User-Defined Derived-Type IO (DTIO)


On 08/22/2016 08:33 AM, Paul Richard Thomas wrote:
Hi Dominique,

Thanks for trying this out so quickly and finding this rather
fundamental problem.

In pr30617, DTIO is obliquely described as recursive IO. It isn't really, is it?

I'll contact Jerry on #gfortran to see what we can do about this.


On 22 August 2016 at 17:09, Dominique d'Humières <dominiq@lps.ens.fr> wrote:
The executable hangs with

Call graph:
    2699 Thread_25555235   DispatchQueue_1: com.apple.main-thread  (serial)
      2699 get_external_unit  (in libgfortran.3.dylib) + 254  [0x10de297be]  gthr-default.h:748
        2699 _pthread_mutex_lock_wait  (in libsystem_pthread.dylib) + 89  [0x7fff96686e4a]
          2699 __psynch_mutexwait  (in libsystem_kernel.dylib) + 10  [0x7fff875bfde6]


I am thinking that the parent is holding the mutex lock on the unit. When the child tries to access, it is blocked.

I will see if I can reproduce it here and then try to find a solution. Thanks for the report.

Regards,

Jerry


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]