Ticket #2099 (closed: fixed)

Opened 10 years ago

Last modified 5 years ago

Crashing SNSPowderDiffraction

Reported by: Peter Peterson Owned by: Peter Peterson
Priority: blocker Milestone: Iteration 26
Component: Mantid Keywords:
Cc: Blocked By:
Blocking: Tester: Vickie Lynch

Description

Run the script

LoadSNSEventNexus(Filename="/SNS/PG3/IPTS-1937/1/1400/NeXus/PG3_1400_event.nxs", OutputWorkspace="PG3_1400")
FilterByLogValue(InputWorkspace="PG3_1400", OutputWorkspace="PG3_1400", LogName="proton_charge", MinimumValue=12907190.4334, MaximumValue=27173032.4914)
AlignDetectors(InputWorkspace="PG3_1400", OutputWorkspace="PG3_1400", CalibrationFile="/SNS/PG3/2010_2_11A_CAL/PG3_1370_2010_09_12.cal")
DiffractionFocussing(InputWorkspace="PG3_1400", OutputWorkspace="PG3_1400", GroupingFileName="/SNS/PG3/2010_2_11A_CAL/PG3_1370_2010_09_12.cal")
Sort(InputWorkspace="PG3_1400")
Rebin(InputWorkspace="PG3_1400", OutputWorkspace="PG3_1400", Params=[0.5,-0.0004,4.45])
ConvertUnits(InputWorkspace="PG3_1400", OutputWorkspace="PG3_1400", Target="TOF")
SaveGSS(InputWorkspace="PG3_1400", Filename="/tmp/PG3_1400.gsa", Append=False, Bank=25, Format="SLOG")

and mantidplot will consistently segfault. The back traces says:

#0  0x00007ffff1fdea1a in std::_Rb_tree_decrement(std::_Rb_tree_node_base*) () from /usr/lib/libstdc++.so.6
#1  0x00007fffd575ed76 in operator-- (os=<value optimized out>, runinfo=<value optimized out>, name=...) at /usr/include/c++/4.4/bits/stl_tree.h:199
#2  operator* (os=<value optimized out>, runinfo=<value optimized out>, name=...) at /usr/include/c++/4.4/bits/stl_iterator.h:152
#3  operator-> (os=<value optimized out>, runinfo=<value optimized out>, name=...) at /usr/include/c++/4.4/bits/stl_iterator.h:162
#4  getStatistics (os=<value optimized out>, runinfo=<value optimized out>, name=...) at Kernel/inc/MantidKernel/TimeSeriesProperty.h:995
#5  Mantid::DataHandling::writeValue (os=<value optimized out>, runinfo=<value optimized out>, name=...) at DataHandling/src/SaveGSS.cpp:223
#6  0x00007fffd575f336 in Mantid::DataHandling::SaveGSS::writeHeaders (this=0x7fffac2311f0, format=<value optimized out>, os=..., workspace=...)
    at DataHandling/src/SaveGSS.cpp:251
#7  0x00007fffd5761386 in Mantid::DataHandling::SaveGSS::exec (this=<value optimized out>) at DataHandling/src/SaveGSS.cpp:138
#8  0x00007ffff67be3c2 in Mantid::API::Algorithm::execute (this=0x7fffac2311f0) at API/src/Algorithm.cpp:253
#9  0x00007ffff67bc344 in Mantid::API::Algorithm::executeAsyncImpl (this=0x7fffd8f17dc8) at API/src/Algorithm.cpp:1004
#10 0x00007ffff676d205 in Mantid::API::AlgorithmProxy::executeAsyncImpl (this=0x7fffe3308d80, dummy=...) at API/src/AlgorithmProxy.cpp:195
#11 0x00007ffff676ea65 in Poco::ActiveRunnable<bool, Poco::Void, Mantid::API::AlgorithmProxy>::run() ()
   from /home/pf9/code/mantid/trunk/Code/Mantid/release/libMantidAPI.so
#12 0x00007ffff53fbf95 in Poco::PooledThread::run() () from /usr/lib/libPocoFoundation.so.9
#13 0x00007ffff53f9987 in Poco::ThreadImpl::runnableEntry(void*) () from /usr/lib/libPocoFoundation.so.9
#14 0x00007ffff492f971 in start_thread () from /lib/libpthread.so.0
#15 0x00007ffff183c92d in clone () from /lib/libc.so.6
#16 0x0000000000000000 in ?? ()

which boils down to something in getStatistics is not working as expected on the field SampleTemp.

Change History

comment:1 Changed 10 years ago by Peter Peterson

  • Owner set to Peter Peterson
  • Status changed from new to accepted

comment:2 Changed 10 years ago by Janik Zikovsky

  • Owner changed from Peter Peterson to Janik Zikovsky

comment:3 Changed 10 years ago by Peter Peterson

(In [8199]) Changed calls for time range to be safe. Refs #2099.

comment:4 Changed 10 years ago by Peter Peterson

  • Owner changed from Janik Zikovsky to Peter Peterson

comment:5 Changed 10 years ago by Peter Peterson

(In [8200]) Better handing for empty logs. Refs #2099.

comment:6 Changed 10 years ago by Janik Zikovsky

(In [8201]) Refs #2099: Test for NAN's when given an empty log for GetStatistics.

comment:7 Changed 10 years ago by Janik Zikovsky

  • Status changed from accepted to verify
  • Resolution set to fixed

comment:8 Changed 10 years ago by Vickie Lynch

  • Status changed from verify to verifying
  • Tester set to Vickie Lynch

comment:9 Changed 10 years ago by Vickie Lynch

  • Status changed from verifying to closed

Runs without error now

comment:10 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 2946

Note: See TracTickets for help on using tickets.