Message: QT Multithreading crash Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Warning QT Multithreading crash 

Forum: Multithreading
Date: 03 Mar, 2017
From: Steven Walton <Steven Walton>

So I was trying to compile my program as MT and it kept crashing. To verify that I was doing it right I went to example B2a and ran this. I found that in the default mode that sometimes I could run `/run/beamOn 1` and it would crash or not. Regardless the second run would crash and any `/run/beamOn n` for n > 1 crashes.

In the main file:

> 65 #ifdef G4MULTITHREADED  
> 66   G4MTRunManager* runManager = new G4MTRunManager;
> 67 #else
> 68   G4RunManager* runManager = new G4RunManager;
> 69 #endif

If I remove these lines and leave only line 68 > G4RunManager* runManager = new G4RunManager;

I can run the example as many times as a want and for any n. I have tried to explicitly set the number of processors and still find that it crashes, including 1 processor. Here is an example dump from B2a crashing (unmodified program and running `/run/beamOn 1`)

> me@computer:~/Programming/Geant/B2a-build$ ./exampleB2a 
> Available UI session types: [ Qt, Xm, GAG, tcsh, csh ]
> G4WT0 > 
> G4WT0 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> G4WT0 >  Local thread RunManagerKernel version Name: geant4-10-02-patch-02 [MT]
> G4WT0 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> G4WT0 > 
> G4WT1 > 
> G4WT1 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> G4WT1 >  Local thread RunManagerKernel version Name: geant4-10-02-patch-02 [MT]
> G4WT1 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> G4WT1 > 
> G4WT0 > ### Adding tracking cuts for neutron  TimeCut(ns)= 10000  > KinEnergyCut(MeV)= 0
> G4WT1 > ### Adding tracking cuts for neutron  TimeCut(ns)= 10000  > KinEnergyCut(MeV)= 0
> exampleB2a: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.
> G4WT1 > ### Run 0 starts on worker thread 1.
> G4WT0 > ### Run 0 starts on worker thread 0.
> Segmentation fault (core dumped)

It seems any MT GEANT4 application I run I get this Fatal IO error 11 and a seg fault. This does not happen for other applications written with openMP and OpenMPI.

Googling and searching the forums I find references back to Jan 2014. Given that it has been 3 years I was wondering if there was a fix or a solution.

About my system:

> lsb_release -a
> Distributor ID:	Ubuntu
> Description:	Ubuntu 16.04.2 LTS
> Release:	16.04
> Codename:	xenial

> uname
> Linux 4.4.0-59-generic x86_64

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 More: Re: QT Multithreading crash   (Steven Walton - 03 Mar, 2017)
(_ Feedback: Re: QT Multithreading crash   (Andrea Dotti - 03 Mar, 2017)
 Add Message Add Message
to: "QT Multithreading crash"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews