Message: Example extended/hadronic/Hadr00 segmentation fault for geant4.9.5 Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Example extended/hadronic/Hadr00 segmentation fault for geant4.9.5 

Forum: Documentation and Examples
Date: 14 Mar, 2012
From: John Watts <John Watts>

--_000_20B9AE2FFBDA6D46A43A1C263DC368663D1539D415NDMSSCC07ndcn_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

When you run hadr00 to produce histograms for one of the HP physics list (i=
.e. QGSP_BIC_HP) it has a segmentation fault.
This is cause by a zero pointer for G4Material.
In HistoManager there are lines of the form:
    xs =3D store->GetElasticCrossSectionPerAtom(particle,e,elm);
The store signature was changed between geant4.9.4 and geant4.9.5 to add an=
 argument of type G4Material.
The default value is 0.


--_000_20B9AE2FFBDA6D46A43A1C263DC368663D1539D415NDMSSCC07ndcn_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40"><head><meta http-equiv=3DContent-Type content=
=3D"text/html; charset=3Dus-ascii"><meta name=3DGenerator content=3D"Micros=
oft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
 {font-family:Calibri;
 panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
 {margin:0in;
 margin-bottom:.0001pt;
 font-size:11.0pt;
 font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
 {mso-style-priority:99;
 color:blue;
 text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
 {mso-style-priority:99;
 color:purple;
 text-decoration:underline;}
span.EmailStyle17
 {mso-style-type:personal-compose;
 font-family:"Calibri","sans-serif";
 color:windowtext;}
.MsoChpDefault
 {mso-style-type:export-only;
 font-family:"Calibri","sans-serif";}
@page WordSection1
 {size:8.5in 11.0in;
 margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
 {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]--></head><body lang=3DEN-US link=3Dblue vli=
nk=3Dpurple><div class=3DWordSection1><p class=3DMsoNormal>When you run had=
r00 to produce histograms for one of the HP physics list (i.e. QGSP_BIC_HP)=
 it has a segmentation fault.<o:p></o:p></p><p class=3DMsoNormal>This is ca=
use by a zero pointer for G4Material.<o:p></o:p></p><p class=3DMsoNormal>In=
 HistoManager there are lines of the form:<o:p></o:p></p><p class=3DMsoNorm=
al>&nbsp;&nbsp;&nbsp; xs =3D store-&gt;GetElasticCrossSectionPerAtom(partic=
le,e,elm);<o:p></o:p></p><p class=3DMsoNormal>The store signature was chang=
ed between geant4.9.4 and geant4.9.5 to add an argument of type G4Material.=
<o:p></o:p></p><p class=3DMsoNormal>The default value is 0.<o:p></o:p></p><=
p class=3DMsoNormal><o:p>&nbsp;</o:p></p></div></body></html>=

--_000_20B9AE2FFBDA6D46A43A1C263DC368663D1539D415NDMSSCC07ndcn_--

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

1 None: RE: Example extended/hadronic/Hadr00 segmentation fault for geant4.9.5   (Vladimir Ivantchenko - 17 Mar, 2012)
 Add Message Add Message
to: "Example extended/hadronic/Hadr00 segmentation fault for geant4.9.5"

 Subscribe Subscribe

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


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]