<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hi David,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Thank you for the info and I'm happy to help in any way I can. Here are the details:</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<ul>
<li>I am using Geant4 10.05.p01 - the "patch01" release from April 2019.</li><li>When I run with/without the viewer, I appear to get the same segfault.<br>
</li><li>My operating system is Ubuntu 18.04.2 LTS, and my compiler is gcc-7.4.0</li><ul>
<li>I see that the required dependencies for gate suggest gcc 4.8 to 7.3</li></ul>
<li>The build type set in cmake was "Release". I have attached the output log files with the appended backtrace in both "Release" and "Debug" mode.<br>
</li><li>I have attached the GateMaterials.db file which contains my edits for additional materials. I cannot recall exactly where I copied this file from.</li><li>I am using Gate version 8.2 which I obtained from the tar file on the opengatecollaboration website. Would you suggest that I change over to the git version?</li></ul>
<div>Cheers,</div>
<div>Matthew<br>
</div>
</div>
<div>
<div id="appendonsend"></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> Gate-users <gate-users-bounces@lists.opengatecollaboration.org> on behalf of David Boersma <david.boersma@acmit.at><br>
<b>Sent:</b> June 28, 2019 10:55 AM<br>
<b>To:</b> gate-users@lists.opengatecollaboration.org<br>
<b>Subject:</b> Re: [Gate-users] Segmentation violation for water geometry</font>
<div> </div>
</div>
<div dir="ltr">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Helvetica,sans-serif">
<p style="margin-top: 0px; margin-bottom: 0px;margin-top: 0px; margin-bottom: 0px;">
Hi Matthew and Dimitris,</p>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top: 0px; margin-bottom: 0px;">
<br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top: 0px; margin-bottom: 0px;">
First: if you manage to get a segfault with Gate (or any other program), then you found a bug, period. No matter how wrong the input, a well-written program should never segfault, it should terminate with a helpful error message that explains which part of
your input was problematic. (Unfortunately, it's actually quite easy to get segfaults with Gate, I suspect that users often just don't bother to report of them. It's great that you *do* report it!)<br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top: 0px; margin-bottom: 0px;">
<br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top: 0px; margin-bottom: 0px;">
Second: I tried to reproduce this segfault and failed. I do get a crash, but a different one: Qt crashes due to some floating point exception, which seems unrelated to the segfault that you are reporting. When I completely disable the visualization, then Gate
runs and terminates normally, no crash.</p>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top: 0px; margin-bottom: 0px;">
<br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top: 0px; margin-bottom: 0px;">
So... I am going to ask some more details:<br>
</p>
<ul style="margin-bottom:0px; margin-top:0px">
<li>It looks like you are using geant4 10.05, is that the original release (7 December 2018) or the "patch01" release (17 April 2019)?</li><li>If you run without the viewer (comment out all /vis lines, add a /vis/disable line, run without --qt), do you then still get the same segfault, or some other crash?</li><li>What operating system and compiler are you using?</li><li>What build type did you set in cmake? "Release" or something else? If you have some time to burn: could you rerun cmake and set it to "Debug", then reproduce the crash? The backtrace should then also quote filenames and line numbers for the items in Gate.<br>
</li><li>There are several different GateMaterials.db files around (it's fine to edit your own, but we should harmonize the db files that we distribute in Gate and GateContrib). Could you send us the one that you are using?</li><li>Which release of Gate are you using? If you got your code directly from github, could you quote to us the output from "git log -n 1", "git branch -l" and "git remote -v"?</li></ul>
<div><br>
</div>
<div>Thanks,</div>
<div>David B.<br>
</div>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top: 0px; margin-bottom: 0px;">
<br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top: 0px; margin-bottom: 0px;">
<br>
</p>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>Von:</b> Gate-users <gate-users-bounces@lists.opengatecollaboration.org> im Auftrag von Matthew Strugari <matthew.strugari@dal.ca><br>
<b>Gesendet:</b> Freitag, 28. Juni 2019 15:36:13<br>
<b>An:</b> Dimitrios Thanasas<br>
<b>Cc:</b> gate-users@lists.opengatecollaboration.org<br>
<b>Betreff:</b> Re: [Gate-users] Segmentation violation for water geometry</font>
<div> </div>
</div>
<div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Hi Dimitris,</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Thanks for the suggestion. Unfortunately, I still encounter the same problem with spaces instead of tabs. I know Qt doesn't work when using tabs in the session command bar but I haven't had any problems using tabs in the macros.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Cheers,</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Matthew<br>
</div>
<div>
<div id="x_appendonsend"></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> Dimitrios Thanasas <dthanas@uoa.gr><br>
<b>Sent:</b> June 28, 2019 2:51 AM<br>
<b>To:</b> Matthew Strugari<br>
<b>Cc:</b> gate-users@lists.opengatecollaboration.org<br>
<b>Subject:</b> Re: [Gate-users] Segmentation violation for water geometry</font>
<div> </div>
</div>
<div class="x_BodyFragment"><font size="2"><span style="font-size:11pt">
<div class="x_PlainText">Hi Matthew,<br>
<br>
Try not having tabs, only spaces when you write a command.<br>
I think it will work.<br>
See the attached file, I think it is working.<br>
<br>
Cheers,<br>
Dimitris<br>
<br>
<br>
> Hi everyone,<br>
><br>
> I am not sure if this is a bug, but I am having difficulty defining a<br>
> water phantom. In short, I am able to visualize basic geometries such as a<br>
> sphere, box, or cylinder using the Qt viewer. However, when the material<br>
> is set to Water, the viewer exits with the segmentation violation as shown<br>
> below.<br>
><br>
> To diagnose, I've found that:<br>
><br>
> 1. The fault doesn't appear to happen with G4_WATER or any other<br>
> materials.<br>
> 2. Water appears to be properly defined in the GateMaterials.db file.<br>
> 3. If all three geometries are enabled, sometimes the viewer exits<br>
> without the fault and other times with the fault.<br>
><br>
> Please let me know if you have any ideas on the issue.<br>
><br>
> Cheers,<br>
> Matthew<br>
><br>
><br>
> --<br>
><br>
> Matthew Strugari<br>
><br>
> Biomedical Translational Imaging Centre - BIOTIC,<br>
> 5890 University Ave,<br>
> Halifax, NS, B3K 6R8<br>
><br>
><br>
><br>
> *** Break *** segmentation violation<br>
><br>
><br>
><br>
> ===========================================================<br>
> There was a crash.<br>
> This is the entire stack trace of all threads:<br>
> ===========================================================<br>
> #0 0x00007f09e9b26687 in __GI___waitpid (pid=14368, stat_loc=stat_loc<br>
> entry=0x7ffd32063968, options=options<br>
> entry=0) at ../sysdeps/unix/sysv/linux/waitpid.c:30<br>
> #1 0x00007f09e9a91067 in do_system (line=<optimized out>) at<br>
> ../sysdeps/posix/system.c:149<br>
> #2 0x00007f09f41200d3 in TUnixSystem::Exec (shellcmd=<optimized out>,<br>
> this=0x55f88c467c50) at<br>
> /home/matthew/Programs/root/root-6.14.04/core/unix/src/TUnixSystem.cxx:2119<br>
> #3 TUnixSystem::StackTrace (this=0x55f88c467c50) at<br>
> /home/matthew/Programs/root/root-6.14.04/core/unix/src/TUnixSystem.cxx:2413<br>
> #4 0x00007f09f4122ac4 in TUnixSystem::DispatchSignals<br>
> (this=0x55f88c467c50, sig=kSigSegmentationViolation) at<br>
> /home/matthew/Programs/root/root-6.14.04/core/unix/src/TUnixSystem.cxx:3644<br>
> #5 <signal handler called><br>
> #6 0x000055f88a6b5805 in GateMaterialDatabase::~GateMaterialDatabase() ()<br>
> #7 0x000055f88a64b88e in<br>
> GateDetectorConstruction::~GateDetectorConstruction() ()<br>
> #8 0x000055f88a64b8a9 in<br>
> GateDetectorConstruction::~GateDetectorConstruction() ()<br>
> #9 0x00007f09f0d04496 in G4RunManager::DeleteUserInitializations() ()<br>
> from /home/matthew/Programs/geant4/geant4.10.05-install/lib/libG4run.so<br>
> #10 0x00007f09f0d056b0 in G4RunManager::~G4RunManager() () from<br>
> /home/matthew/Programs/geant4/geant4.10.05-install/lib/libG4run.so<br>
> #11 0x000055f88a602179 in GateRunManager::~GateRunManager() ()<br>
> #12 0x000055f88a241ae6 in main ()<br>
> ===========================================================<br>
><br>
><br>
> The lines below might hint at the cause of the crash.<br>
> You may get help by asking at the ROOT forum <a href="http://root.cern.ch/forum">
http://root.cern.ch/forum</a><br>
> Only if you are really convinced it is a bug in ROOT then please submit a<br>
> report at <a href="http://root.cern.ch/bugs">http://root.cern.ch/bugs</a> Please post the ENTIRE stack trace<br>
> from above as an attachment in addition to anything else<br>
> that might help us fixing this issue.<br>
> ===========================================================<br>
> #6 0x000055f88a6b5805 in GateMaterialDatabase::~GateMaterialDatabase() ()<br>
> #7 0x000055f88a64b88e in<br>
> GateDetectorConstruction::~GateDetectorConstruction() ()<br>
> #8 0x000055f88a64b8a9 in<br>
> GateDetectorConstruction::~GateDetectorConstruction() ()<br>
> #9 0x00007f09f0d04496 in G4RunManager::DeleteUserInitializations() ()<br>
> from /home/matthew/Programs/geant4/geant4.10.05-install/lib/libG4run.so<br>
> #10 0x00007f09f0d056b0 in G4RunManager::~G4RunManager() () from<br>
> /home/matthew/Programs/geant4/geant4.10.05-install/lib/libG4run.so<br>
> #11 0x000055f88a602179 in GateRunManager::~GateRunManager() ()<br>
> #12 0x000055f88a241ae6 in main ()<br>
> ===========================================================<br>
><br>
> _______________________________________________<br>
> Gate-users mailing list<br>
> Gate-users@lists.opengatecollaboration.org<br>
> <a href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users">http://lists.opengatecollaboration.org/mailman/listinfo/gate-users</a><br>
</div>
</span></font></div>
</div>
</div>
</div>
</div>
</body>
</html>