{"action":"created","issue":{"url":"https://api.github.com/repos/padsley/k600analyser/issues/135","repository_url":"https://api.github.com/repos/padsley/k600analyser","labels_url":"https://api.github.com/repos/padsley/k600analyser/issues/135/labels{/name}","comments_url":"https://api.github.com/repos/padsley/k600analyser/issues/135/comments","events_url":"https://api.github.com/repos/padsley/k600analyser/issues/135/events","html_url":"https://github.com/padsley/k600analyser/issues/135","id":168284317,"number":135,"title":"PR264 Crash due to SetDetectorType()","user":{"login":"nichubbard","id":9157300,"avatar_url":"https://avatars.githubusercontent.com/u/9157300?v=3","gravatar_id":"","url":"https://api.github.com/users/nichubbard","html_url":"https://github.com/nichubbard","followers_url":"https://api.github.com/users/nichubbard/followers","following_url":"https://api.github.com/users/nichubbard/following{/other_user}","gists_url":"https://api.github.com/users/nichubbard/gists{/gist_id}","starred_url":"https://api.github.com/users/nichubbard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nichubbard/subscriptions","organizations_url":"https://api.github.com/users/nichubbard/orgs","repos_url":"https://api.github.com/users/nichubbard/repos","events_url":"https://api.github.com/users/nichubbard/events{/privacy}","received_events_url":"https://api.github.com/users/nichubbard/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/padsley/k600analyser/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-07-29T09:20:21Z","updated_at":"2016-07-29T15:00:49Z","closed_at":"2016-07-29T14:53:27Z","body":"On my laptop I get segfaults immediately when trying to sort data, which I have now identified as being caused when SetDetectorType() is called in the ScintillatorSort. Commenting out that line fixes the crashes for me and is not a problem for this experiment with one type of Gamma detector, but still. Can someone try to reproduce? If so I will push the change commenting it out (for now), if not I will remain baffled at my laptop.\r\n\r\n```\r\nThe lines below might hint at the cause of the crash.\r\nIf they do not help you then please submit a bug report at\r\nhttp://root.cern.ch/bugs. Please post the ENTIRE stack trace\r\nfrom above as an attachment in addition to anything else\r\nthat might help us fixing this issue.\r\n===========================================================\r\n#6  0x00007f0f5a0eb69a in strlen () from /lib64/libc.so.6\r\n#7  0x00007f0f5e40d2b5 in TString::TString (this=0x7ffe70181620, cs=0xc <error: Cannot access memory at address 0xc>) at /home/nic/Software/Build/root-6.06.02/core/base/src/TString.cxx:106\r\n#8  0x00007f0f5df99850 in TGenCollectionStreamer::WriteObjects (this=this\r\nentry=0x35a01a0, nElements=nElements\r\nentry=4, b=...) at /home/nic/Software/Build/root-6.06.02/io/io/src/TGenCollectionStreamer.cxx:1006\r\n#9  0x00007f0f5df9c018 in TGenCollectionStreamer::Streamer (this=0x35a01a0, b=...) at /home/nic/Software/Build/root-6.06.02/io/io/src/TGenCollectionStreamer.cxx:1480\r\n#10 0x00007f0f5decd82f in TCollectionStreamer::Streamer (this=0x3591a90, buff=..., pObj=<optimized out>, onFileClass=0x0) at /home/nic/Software/Build/root-6.06.02/io/io/src/TCollectionProxyFactory.cxx:166\r\n#11 0x00007f0f5def5e05 in TClass::Streamer (onfile_class=0x0, b=..., obj=0x534d130, this=0x3584280) at /home/nic/Software/Build/root-build/include/TClass.h:547\r\n#12 TBufferFile::WriteFastArray (this=0x5828d30, start=<optimized out>, cl=0x3584280, n=<optimized out>, streamer=<optimized out>) at /home/nic/Software/Build/root-6.06.02/io/io/src/TBufferFile.cxx:2283\r\n#13 0x00007f0f5dec577b in TStreamerInfo::WriteBufferAux<char**> (this=0x5202d30, b=..., arr=\r\n0x7ffe70181878: 0x7ffe70181870, compinfo=0x5300e88, first=first\r\nentry=0, last=last\r\nentry=1, narr=1, eoffset=0, arrayMode=0) at /home/nic/Software/Build/root-6.06.02/io/io/src/TStreamerInfoWriteBuffer.cxx:590\r\n#14 0x00007f0f5de2d3dd in TStreamerInfoActions::GenericWriteAction (buf=..., addr=<optimized out>, config=<optimized out>) at /home/nic/Software/Build/root-6.06.02/io/io/src/TStreamerInfoActions.cxx:174\r\n#15 0x00007f0f5def4aa5 in TStreamerInfoActions::TConfiguredAction::operator() (this=<optimized out>, this=<optimized out>, object=0x534d0f0, buffer=...) at /home/nic/Software/Build/root-build/include/TStreamerIn\r\nfoActions.h:116\r\n#16 TBufferFile::ApplySequence (this=0x5828d30, sequence=..., obj=0x534d0f0) at /home/nic/Software/Build/root-6.06.02/io/io/src/TBufferFile.cxx:3967\r\n#17 0x00007f0f5c9d27aa in TBranch::Fill (this=this\r\nentry=0x5300540) at /home/nic/Software/Build/root-6.06.02/tree/tree/src/TBranch.cxx:758\r\n#18 0x00007f0f5c9b9200 in TBranchElement::Fill (this=0x5300540) at /home/nic/Software/Build/root-6.06.02/tree/tree/src/TBranchElement.cxx:1231\r\n#19 0x00007f0f5c9b8f88 in TBranchElement::Fill (this=0x358bfa0) at /home/nic/Software/Build/root-6.06.02/tree/tree/src/TBranchElement.cxx:1256\r\n#20 0x00007f0f5c98bf01 in TTree::Fill (this=0x370f3d0) at /home/nic/Software/Build/root-6.06.02/tree/tree/src/TTree.cxx:4345\r\n#21 0x00000000004454b7 in main_event (pheader=0x7f0f41c33010, pevent=0x7f0f41c33020) at main.c:1911\r\n#22 0x000000000041db1e in process_event (par=par\r\nentry=0x6a7be0 <analyze_request>, pevent=pevent\r\nentry=0x7f0f41c33010) at src/mana.cxx:3155\r\n#23 0x0000000000420e78 in analyze_run (run_number=run_number\r\nentry=24, input_file_name=input_file_name\r\nentry=0x7ffe70182250 \"../data/run00024.mid.gz\", output_file_name=output_file_name\r\nentry=0x7ffe70182350 \"\") at src/mana.cxx:4176\r\n#24 0x00000000004213b1 in loop_runs_offline () at src/mana.cxx:4364\r\n#25 0x0000000000419de2 in main (argc=<optimized out>, argv=<optimized out>) at src/mana.cxx:5577\r\n===========================================================\r\n```"},"comment":{"url":"https://api.github.com/repos/padsley/k600analyser/issues/comments/236204289","html_url":"https://github.com/padsley/k600analyser/issues/135#issuecomment-236204289","issue_url":"https://api.github.com/repos/padsley/k600analyser/issues/135","id":236204289,"user":{"login":"pellegri","id":10500757,"avatar_url":"https://avatars.githubusercontent.com/u/10500757?v=3","gravatar_id":"","url":"https://api.github.com/users/pellegri","html_url":"https://github.com/pellegri","followers_url":"https://api.github.com/users/pellegri/followers","following_url":"https://api.github.com/users/pellegri/following{/other_user}","gists_url":"https://api.github.com/users/pellegri/gists{/gist_id}","starred_url":"https://api.github.com/users/pellegri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pellegri/subscriptions","organizations_url":"https://api.github.com/users/pellegri/orgs","repos_url":"https://api.github.com/users/pellegri/repos","events_url":"https://api.github.com/users/pellegri/events{/privacy}","received_events_url":"https://api.github.com/users/pellegri/received_events","type":"User","site_admin":false},"created_at":"2016-07-29T15:00:49Z","updated_at":"2016-07-29T15:00:49Z","body":"Great! Thanks good.\nI also did some calibrations. I’m coming down in a minute ;)\n\n> On 29 Jul 2016, at 16:53, Nic Hubbard <notifications@github.com> wrote:\n> \n> Recompiled ROOT and now it does not crash. I shall not question it.\n> \n> —\n> You are receiving this because you commented.\n> Reply to this email directly, view it on GitHub <https://github.com/padsley/k600analyser/issues/135#issuecomment-236202190>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AKA6lRPogQsnkhN3L8eUTaQZJCv9x8u0ks5qahPogaJpZM4JYBJZ>.\n> \n\n"}}
{"actor":{"display_login":"pellegri"}}