View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0002442 | Slicer4 | Core: Base Code | public | 2012-08-28 12:43 | 2014-03-06 06:09 |
Reporter | slisse | Assigned To | sankhesh | ||
Priority | normal | Severity | crash | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | Slicer 4.1.0 RC | ||||
Target Version | Slicer 4.2.0 | Fixed in Version | Slicer 4.2.0 | ||
Summary | 0002442: Corrupted memory (double free?) when attempting to load an .stl file | ||||
Description | Slicer developers, I wanted to notify you of a memory error that I'm getting when running Slicer4. Here's the background info: I'm working from the nightly build which I git-pulled and remade this AM (with the usual make -k workaround). I have slightly modified one of the vtkSTLReader.cxx to catch a SIGABRT which was probably related to the below, but otherwise am pretty close to stock code. Here's how I reproduce my crash: Please let me know if any additional information is needed and I can provide it. | ||||
Additional Information | DDD Trace: glibc detected /home/slisse/working/external_software/Slicer4_binary/Slicer-build/bin/SlicerApp-real: double free or corruption (!prev): 0x0000000001436bb0 *** | ||||
Tags | No tags attached. | ||||
2012-08-28 12:43
|
OPII044_Sacrum_Model_Ax.stl (2,259,458 bytes) |
2012-08-28 12:45
|
|
Just in case, I've uploaded the diffs from my vtkSTLReader.cxx file (it's some simple signal debugging stuff and not worth merging into the tree, IMO). |
|
Hi - Thanks for providing the data and info. I wasn't able to replicate this issue - I tested on a mac in xcode with extra memory debugging turned on but the model loaded okay. Can you try with a slicer nightly and/or release build to see if it also crashes on your machine with this data? -Steve |
|
I'll download a premade build and see whether it reproduces the problem. Thanks, |
|
Confirmed, it also crashes on premade "4.1.0-2012-08-28-linux-amd64", with the above steps. |
|
This is an odd one - I don't get any errors on windows or mac, but do see a consistent crash on linux (tested Ubuntu 11.04). The crash occurs in vtkSTLReader and I can replicate this in pure vtk by instantiating the reader and trying to read the attached file using the vtkpython interpreter in slicer superbuild. @Jcfr - can you try on your machine ? The file seems well formed. |
|
This issue is fixed in the development version of VTK. http://paraview.org/Bug/view.php?id=13101 Confirmed this by building with the current VTK development HEAD and reading in the attached file. |
|
As discussed this morning, would be great if you could cherry-pick and integrate commit(s) into Slicer fork. See also here for commit message guideline regarding the corresponding commit into Slicer itself. See http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/Style_Guide#Importing_changes_from_external_project.2Frepository Thanks |
|
Topic pushed to https://github.com/sankhesh/Slicer/tree/2442-vtkSTLReader-corrupted-memory |
|
Looks good to me. Thanks |
|
Its in. I don't think this would break anything. |
|
Thanks Sankhesh. Sean> Make sure to close issue if you confirm that the issue is fixed. |
|
Success! Thank you, developers! |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2012-08-28 12:43 | slisse | New Issue | |
2012-08-28 12:43 | slisse | Status | new => assigned |
2012-08-28 12:43 | slisse | Assigned To | => pieper |
2012-08-28 12:43 | slisse | File Added: OPII044_Sacrum_Model_Ax.stl | |
2012-08-28 12:45 | slisse | File Added: cxx_diffs.txt | |
2012-08-28 12:46 | slisse | Note Added: 0005840 | |
2012-08-29 07:32 | pieper | Note Added: 0005852 | |
2012-08-29 08:23 | slisse | Note Added: 0005854 | |
2012-08-29 08:39 | slisse | Note Added: 0005855 | |
2012-08-29 10:10 | pieper | Assigned To | pieper => jcfr |
2012-08-29 10:13 | pieper | Note Added: 0005857 | |
2012-08-29 13:36 | jcfr | Assigned To | jcfr => sankhesh |
2012-08-29 13:36 | jcfr | Target Version | => Slicer 4.3.0 |
2012-09-12 07:19 | sankhesh | Note Added: 0006042 | |
2012-09-13 11:20 | jcfr | Note Added: 0006062 | |
2012-09-14 04:27 | sankhesh | Note Added: 0006068 | |
2012-09-14 08:37 | jcfr | Note Added: 0006070 | |
2012-09-14 08:38 | jcfr | Note Edited: 0006070 | |
2012-09-14 09:46 | sankhesh | Note Added: 0006074 | |
2012-09-14 09:46 | sankhesh | Status | assigned => resolved |
2012-09-14 09:46 | sankhesh | Resolution | open => fixed |
2012-09-14 09:55 | jcfr | Target Version | Slicer 4.3.0 => Slicer 4.2.0 - coming release |
2012-09-14 09:57 | jcfr | Note Added: 0006075 | |
2012-09-17 09:25 | slisse | Note Added: 0006111 | |
2012-09-17 09:25 | slisse | Status | resolved => closed |
2014-03-06 06:09 | jcfr | Fixed in Version | => Slicer 4.2.0 |