Ticket #660 (closed: worksforme)

Opened 11 years ago

Last modified 5 years ago

SaveNexusProcessed segmentation fault

Reported by: Russell Taylor Owned by: Russell Taylor
Priority: critical Milestone: Iteration 19
Component: Keywords:
Cc: Blocked By:
Blocking: Tester:

Description

From Laurent:

def wish_createvan(van,empty,panel):

data_dir="/home/lcc/Desktop/" van_filename=data_dir+"WISH00000"+str(van)+".raw" empty_filename=data_dir+"WISH00000"+str(empty)+".raw" if (panel==1):

min=6 max=19461

elif (panel==2):

min=19462 max=38917

elif( panel==3):

min=38918 max=58373

elif (panel==4):

min=58374 max=77829

elif (panel==5):

min=77830 max=97285

out_van="van"+str(van) out_empty="empty"+str(empty) LoadRaw(Filename=van_filename,OutputWorkspace=out_van,spectrummin=str(min),spectrummax=str(max)) LoadRaw(Filename=empty_filename,OutputWorkspace=out_empty,spectrummin=str(min),spectrummax=str(max)) NormaliseByCurrent(out_van,out_van) NormaliseByCurrent(out_empty,out_empty) Minus(out_van,out_empty,out_van) ConvertUnits(out_van,out_van,"Wavelength") CylinderAbsorption(InputWorkspace=out_van,OutputWorkspace="T", CylinderSampleHeight="4.0",CylinderSampleRadius="0.4",AttenuationXSection="5.1", ScatteringXSection="5.08",SampleNumberDensity="0.072", NumberOfSlices="1",NumberOfAnnuli="1",NumberOfWavelengthPoints="10",ExpMethod="Normal") Divide(out_van,"T",out_van) ConvertUnits(out_van,out_van,"TOF") AlignDetectors(out_van,out_van,data_dir+"wish_full.cal") focus_van="Vanfoc"+str(van)+"-"+str(panel) DiffractionFocussing(out_van,focus_van,data_dir+"wish_full.cal") StripPeaks(focus_van,focus_van) SmoothData(focus_van,focus_van,"50") SaveNexusProcessed(InputWorkspace=focus_van,FileName=data_dir+"Vanacorrected"+str(van)+"-"+str(panel)+".nxs")

wish_createvan(202,203,4)

Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x41744950 (LWP 31198)] 0x00007fc678bbad2c in Mantid::Geometry::ParameterMap::asString ()

from /home/lcc/workspace/MantidGeometry/Release/libMantidGeometry.so

Current language: auto; currently asm (gdb) backtrace #0 0x00007fc678bbad2c in Mantid::Geometry::ParameterMap::asString ()

from /home/lcc/workspace/MantidGeometry/Release/libMantidGeometry.so

#1 0x00007fc67866183e in Mantid::NeXus::NexusFileIO::writeNexusParameterMap ()

from /home/lcc/workspace/MantidNexus/Release/libMantidNexus.so

#2 0x00007fc678670a5c in Mantid::NeXus::SaveNexusProcessed::exec ()

from /home/lcc/workspace/MantidNexus/Release/libMantidNexus.so

#3 0x00007fc677f8c635 in Mantid::API::Algorithm::execute ()

from /home/lcc/workspace/MantidAPI/Release/libMantidAPI.so

#4 0x00007fc677f88991 in Mantid::API::Algorithm::executeAsyncImpl ()

from /home/lcc/workspace/MantidAPI/Release/libMantidAPI.so

#5 0x00007fc679523396 in Poco::ActiveRunnable<bool, int, Mantid::API::Algorithm>::run () from libMantidPythonAPI.so #6 0x00007fc67732f0d0 in Poco::PooledThread::run ()

from /usr/lib/libPocoFoundation.so.5

#7 0x00007fc67732a93e in Poco::ThreadImpl::entry ()

from /usr/lib/libPocoFoundation.so.5

#8 0x00007fc67505f3ea in start_thread () from /lib/libpthread.so.0 #9 0x00007fc672304cbd in clone () from /lib/libc.so.6 #10 0x0000000000000000 in ?? ()

Change History

comment:1 Changed 11 years ago by Russell Taylor

(In [2580]) Try extra protection against null pointer. Re #660.

comment:2 Changed 11 years ago by Nick Draper

  • Milestone changed from Iteration 18 to Iteration 19

Moved as part of iteration 18 end

comment:3 Changed 11 years ago by Nick Draper

  • Priority changed from major to critical

comment:4 Changed 11 years ago by Russell Taylor

  • Status changed from new to closed
  • Resolution set to worksforme

Laurent reports that this one has gone away now.

comment:5 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 1508

Note: See TracTickets for help on using tickets.