Bug #1482

Updated by Forest Florent about 9 years ago

Simulating the elliptical disk model xml file with the ctobssim tool results in a segmentation fault.

Ouput put when running ctobssim in gdb:

$ gdb ctobssim
GNU gdb (GDB) Red Hat Enterprise Linux (7.0.1-23.el5_5.2)
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/forest/install/gamma/bin/ctobssim...done.
(gdb) run
Starting program: /home/forest/install/gamma/bin/ctobssim
[Thread debugging using libthread_db enabled]
RA of pointing (degrees) (0-360) [83.63]
Dec of pointing (degrees) (-90-90) [22.01]
Radius of FOV (degrees) (0-180) [5.0]
Start time (MET in s) [0.0]
End time (MET in s) [1800.0]
Lower energy limit (TeV) [0.1]
Upper energy limit (TeV) [100.0]
Calibration database [prod2]
Instrument response function [South_50h]
Model [$CTOOLS/share/models/crab.xml] /home/forest/git/gammalib/test/data/model_elliptical_disk.xml
Output event data file or observation definition file [events.fits]
[New Thread 0x40800940 (LWP 23473)]
[New Thread 0x41001940 (LWP 23474)]
[New Thread 0x41802940 (LWP 23475)]
[New Thread 0x42003940 (LWP 23476)]
[New Thread 0x42804940 (LWP 23477)]
[New Thread 0x43005940 (LWP 23478)]
[New Thread 0x43806940 (LWP 23479)]
[New Thread 0x44007940 (LWP 23480)]
[New Thread 0x44808940 (LWP 23481)]
[New Thread 0x45009940 (LWP 23482)]
[New Thread 0x4580a940 (LWP 23483)]
[New Thread 0x4600b940 (LWP 23484)]
[New Thread 0x4680c940 (LWP 23485)]
[New Thread 0x4700d940 (LWP 23486)]
[New Thread 0x4780e940 (LWP 23487)]
[New Thread 0x4800f940 (LWP 23488)]
[New Thread 0x48810940 (LWP 23489)]
[New Thread 0x49011940 (LWP 23490)]
[New Thread 0x49812940 (LWP 23491)]
[New Thread 0x4a013940 (LWP 23492)]
[New Thread 0x4a814940 (LWP 23493)]
[New Thread 0x4b015940 (LWP 23494)]
[New Thread 0x4b816940 (LWP 23495)]
[New Thread 0x4c017940 (LWP 23496)]
[New Thread 0x4c818940 (LWP 23497)]
[New Thread 0x4d019940 (LWP 23498)]
[New Thread 0x4d81a940 (LWP 23499)]
[New Thread 0x4e01b940 (LWP 23500)]
[New Thread 0x4e81c940 (LWP 23501)]
[New Thread 0x4f01d940 (LWP 23502)]
[New Thread 0x4f81e940 (LWP 23503)]
[New Thread 0x5001f940 (LWP 23504)]
[New Thread 0x50820940 (LWP 23505)]
[New Thread 0x51021940 (LWP 23506)]
[New Thread 0x51822940 (LWP 23507)]
[New Thread 0x52023940 (LWP 23508)]
[New Thread 0x52824940 (LWP 23509)]
[New Thread 0x53025940 (LWP 23510)]
[New Thread 0x53826940 (LWP 23511)]
[New Thread 0x54027940 (LWP 23512)]
[New Thread 0x54828940 (LWP 23513)]
[New Thread 0x55029940 (LWP 23514)]
[New Thread 0x5582a940 (LWP 23515)]
[New Thread 0x5602b940 (LWP 23516)]
[New Thread 0x5682c940 (LWP 23517)]
[New Thread 0x5702d940 (LWP 23518)]
[New Thread 0x5782e940 (LWP 23519)]

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7b7f5e0 in GModelSpatialEllipticalDisk::eval (this=0x884de0, theta=@0x7fffffffc940,
posangle=@0x3fefffff, energy=<value optimized out>, time=<value optimized out>)
at GModelSpatialEllipticalDisk.cpp:299
299 double diff_angle = posangle - m_posangle.value() * gammalib::deg2rad;

Back