Segmentation problem, but not knowing where

Hello, the simulation compile but there is a problem when running.
Unfortunately, the gdb only says:

Program received signal SIGSEGV, Segmentation fault.
G4LogicalVolume::AddDaughter(G4VPhysicalVolume*) ()
    at /cvmfs/
277       if( fDaughters.empty() )
Missing separate debuginfos, use: debuginfo-install cyrus-sasl-lib-2.1.26-24.el7_9.x86_64 glib2-2.56.1-9.el7_9.x86_64 glibc-2.17-326.el7_9.x86_64 keyutils-libs-1.5.8-3.el7.x86_64 krb5-libs-1.15.1-54.el7_9.x86_64 libICE-1.0.9-9.el7.x86_64 libSM-1.2.2-2.el7.x86_64 libX11-1.6.7-4.el7_9.x86_64 libXau-1.0.8-2.1.el7.x86_64 libXext-1.3.3-3.el7.x86_64 libXft-2.3.2-2.el7.x86_64 libXmu-1.1.2-2.el7.x86_64 libXp-1.0.2-2.1.el7.x86_64 libXrender-0.9.10-1.el7.x86_64 libXt-1.1.5-3.el7.x86_64 libcom_err-1.42.9-19.el7.x86_64 libcurl-7.29.0-59.el7_9.1.x86_64 libglvnd-1.0.1-0.8.git5baa1e5.el7.x86_64 libglvnd-glx-1.0.1-0.8.git5baa1e5.el7.x86_64 libidn-1.28-4.el7.x86_64 libjpeg-turbo-1.2.90-8.el7.x86_64 libpng-1.5.13-8.el7.x86_64 libselinux-2.5-15.el7.x86_64 libssh2-1.8.0-4.el7.x86_64 libuuid-2.23.2-65.el7_9.1.x86_64 libxcb-1.13-1.el7.x86_64 motif-2.3.4-14.el7_5.x86_64 nspr-4.32.0-1.el7_9.x86_64 nss-3.67.0-4.el7_9.x86_64 nss-softokn-freebl-3.67.0-3.el7_9.x86_64 nss-util-3.67.0-1.el7_9.x86_64 openldap-2.4.44-25.el7_9.x86_64 openssl-libs-1.0.2k-25.el7_9.x86_64 pcre-8.32-17.el7.x86_64

Then I don’t know in my code where is the problem. Is there other way to know the code producing this problem?

If you’re using GDB, as you say, then type “bt” and you’ll get the traceback of all the calls. It should be fairly self-explanatory if you’re familiar with C++ and your own code.

Hi @mkelsey mkelsey, the problem is that the error that I quoted in my previous message is the result of the “bt” command! That’s because I don’t understand the error…i.e. instead to give an error in my code, it gives error in the G4LocicalVolume!

Solved myself.
Topic can be closed

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.