[ROOT-6703] Crash after clicking right while moving a TObject Created: 16/Sep/14  Updated: 27/May/15  Resolved: 27/May/15

Status: Closed
Project: ROOT
Component/s: Graphics
Affects Version/s: 5.34/00
Fix Version/s: 6.04.00, 5.34/30, 6.02/10

Type: Bug Priority: Medium
Reporter: Olivier Delaune Assignee: Olivier Couet
Resolution: Fixed Votes: 0
Labels: None
Environment:

Fedora Core 15


Attachments: File test.C    
Development:

 Description   

Hello
1/run test.C (root -l test.C)
2/Some TGraphs and TPaveTexts appear.
3/Click on, for example, a TPaveText and move it
4/While you are moving it, click with the right button of your mouse to display the menu.
5/Click with the left button outside the menu to remove it.
6/Observe the crash

It crashes also if you move a TGraphI have the problem with ROOT 5.34/20 but not with ROOT 5.28b on another computer.

I got the following backtrace

      • Break *** segmentation violation

===========================================================
There was a crash (kSigSegmentationViolation).
This is the entire stack trace of all threads:
===========================================================
#0 0x0000003ae12ac2ce in waitpid () from /lib64/libc.so.6
#1 0x0000003ae124107e in do_system () from /lib64/libc.so.6
#2 0x00007f9152ec756c in TUnixSystem::Exec (this=0x1841a70, shellcmd=0x2181f90 "/etc/root/gdb-backtrace.sh 12742 1>&2") at /home/plaisir/root/core/unix/src/TUnixSystem.cxx:2172
#3 0x00007f9152ec7da9 in TUnixSystem::StackTrace (this=0x1841a70) at /home/plaisir/root/core/unix/src/TUnixSystem.cxx:2419
#4 0x00007f9152ec5815 in TUnixSystem::DispatchSignals (this=0x1841a70, sig=kSigSegmentationViolation) at /home/plaisir/root/core/unix/src/TUnixSystem.cxx:1294
#5 0x00007f9152ec3af5 in SigHandler (sig=kSigSegmentationViolation) at /home/plaisir/root/core/unix/src/TUnixSystem.cxx:440
#6 0x00007f9152ecb508 in sighandler (sig=11) at /home/plaisir/root/core/unix/src/TUnixSystem.cxx:3738
#7 0x00007f9152efcdea in textinput::TerminalConfigUnix::HandleSignal (this=0x7f91536c22e0, signum=11) at /home/plaisir/root/core/textinput/src/textinput/TerminalConfigUnix.cpp:96
#8 0x00007f9152efcb19 in (anonymous namespace)::TerminalConfigUnix__handleSignal (signum=11) at /home/plaisir/root/core/textinput/src/textinput/TerminalConfigUnix.cpp:36
#9 <signal handler called>
#10 0x0000003aea6b8786 in __dynamic_cast () from /usr/lib64/libstdc++.so.6
#11 0x00007f914fa6d29f in TPad::ShowGuidelines (this=0x2181f90, object=0x2181f90, event=21, mode=105 'i', cling=true) at /home/plaisir/root/graf2d/gpad/src/TPad.cxx:5718
#12 0x00007f914fa5b000 in TPad::ExecuteEvent (this=0x2181f90, event=21, px=342, py=507) at /home/plaisir/root/graf2d/gpad/src/TPad.cxx:2058
#13 0x00007f914fa9699e in TCanvas::HandleInput (this=0x201f8c0, event=kButton1Motion, px=346, py=503) at /home/plaisir/root/graf2d/gpad/src/TCanvas.cxx:1227
#14 0x00007f914ebed6e6 in TRootCanvas::HandleContainerMotion (this=0x201fcb0, event=0x7fff7129eaa0) at /home/plaisir/root/gui/gui/src/TRootCanvas.cxx:1906
#15 0x00007f914ebee8ba in TRootContainer::HandleMotion (this=0x20bbac0, ev=0x7fff7129eaa0) at /home/plaisir/root/gui/gui/src/TRootCanvas.cxx:244
#16 0x00007f914ebc62a5 in TGFrame::HandleEvent (this=0x20bbac0, event=0x7fff7129eaa0) at /home/plaisir/root/gui/gui/src/TGFrame.cxx:512
#17 0x00007f914ec06285 in TGClient::HandleEvent (this=0x1f69db0, event=0x7fff7129eaa0) at /home/plaisir/root/gui/gui/src/TGClient.cxx:811
#18 0x00007f914ec05b85 in TGClient::ProcessOneEvent (this=0x1f69db0) at /home/plaisir/root/gui/gui/src/TGClient.cxx:621
#19 0x00007f914ec05d1e in TGClient::HandleInput (this=0x1f69db0) at /home/plaisir/root/gui/gui/src/TGClient.cxx:668
#20 0x00007f914ec04298 in TGInputHandler::Notify (this=0x1f8f780) at /home/plaisir/root/gui/gui/src/TGClient.cxx:87
#21 0x00007f9152ec4d1b in TUnixSystem::DispatchOneEvent (this=0x1841a70, pendingOnly=false) at /home/plaisir/root/core/unix/src/TUnixSystem.cxx:1093
#22 0x00007f9152e3ab1d in TSystem::InnerLoop (this=0x1841a70) at /home/plaisir/root/core/base/src/TSystem.cxx:410
#23 0x00007f9152e3a8bc in TSystem::Run (this=0x1841a70) at /home/plaisir/root/core/base/src/TSystem.cxx:360
#24 0x00007f9152e4c87c in TApplication::Run (this=0x19930a0, retrn=false) at /home/plaisir/root/core/base/src/TApplication.cxx:1118
#25 0x00007f915296fca9 in TRint::Run (this=0x19930a0, retrn=false) at /home/plaisir/root/core/rint/src/TRint.cxx:455
#26 0x00000000004011c5 in main (argc=1, argv=0x7fff712a0ee8) at /home/plaisir/root/main/src/rmain.cxx:29
===========================================================

The lines below might hint at the cause of the crash.
If they do not help you then please submit a bug report at
http://root.cern.ch/bugs. Please post the ENTIRE stack trace
from above as an attachment in addition to anything else
that might help us fixing this issue.
===========================================================
#10 0x0000003aea6b8786 in __dynamic_cast () from /usr/lib64/libstdc++.so.6
#11 0x00007f914fa6d29f in TPad::ShowGuidelines (this=0x2181f90, object=0x2181f90, event=21, mode=105 'i', cling=true) at /home/plaisir/root/graf2d/gpad/src/TPad.cxx:5718
#12 0x00007f914fa5b000 in TPad::ExecuteEvent (this=0x2181f90, event=21, px=342, py=507) at /home/plaisir/root/graf2d/gpad/src/TPad.cxx:2058
#13 0x00007f914fa9699e in TCanvas::HandleInput (this=0x201f8c0, event=kButton1Motion, px=346, py=503) at /home/plaisir/root/graf2d/gpad/src/TCanvas.cxx:1227
#14 0x00007f914ebed6e6 in TRootCanvas::HandleContainerMotion (this=0x201fcb0, event=0x7fff7129eaa0) at /home/plaisir/root/gui/gui/src/TRootCanvas.cxx:1906
#15 0x00007f914ebee8ba in TRootContainer::HandleMotion (this=0x20bbac0, ev=0x7fff7129eaa0) at /home/plaisir/root/gui/gui/src/TRootCanvas.cxx:244
#16 0x00007f914ebc62a5 in TGFrame::HandleEvent (this=0x20bbac0, event=0x7fff7129eaa0) at /home/plaisir/root/gui/gui/src/TGFrame.cxx:512
#17 0x00007f914ec06285 in TGClient::HandleEvent (this=0x1f69db0, event=0x7fff7129eaa0) at /home/plaisir/root/gui/gui/src/TGClient.cxx:811
#18 0x00007f914ec05b85 in TGClient::ProcessOneEvent (this=0x1f69db0) at /home/plaisir/root/gui/gui/src/TGClient.cxx:621
#19 0x00007f914ec05d1e in TGClient::HandleInput (this=0x1f69db0) at /home/plaisir/root/gui/gui/src/TGClient.cxx:668
#20 0x00007f914ec04298 in TGInputHandler::Notify (this=0x1f8f780) at /home/plaisir/root/gui/gui/src/TGClient.cxx:87
#21 0x00007f9152ec4d1b in TUnixSystem::DispatchOneEvent (this=0x1841a70, pendingOnly=false) at /home/plaisir/root/core/unix/src/TUnixSystem.cxx:1093
#22 0x00007f9152e3ab1d in TSystem::InnerLoop (this=0x1841a70) at /home/plaisir/root/core/base/src/TSystem.cxx:410
#23 0x00007f9152e3a8bc in TSystem::Run (this=0x1841a70) at /home/plaisir/root/core/base/src/TSystem.cxx:360
#24 0x00007f9152e4c87c in TApplication::Run (this=0x19930a0, retrn=false) at /home/plaisir/root/core/base/src/TApplication.cxx:1118
#25 0x00007f915296fca9 in TRint::Run (this=0x19930a0, retrn=false) at /home/plaisir/root/core/rint/src/TRint.cxx:455
#26 0x00000000004011c5 in main (argc=1, argv=0x7fff712a0ee8) at /home/plaisir/root/main/src/rmain.cxx:29
===========================================================



 Comments   
Comment by Olivier Couet [ 16/Sep/14 ]

3/Click on, for example, a TPaveText and move it
4/While you are moving it, click with the right button of your mouse to display the menu.
5/Click with the left button outside the menu to remove it.

That's weird to click on two buttons at the same time. I am not able to do it on my mac.

If you do not need the guidelines you can turn them off in the system.rootrc file.

Comment by Olivier Delaune [ 17/Sep/14 ]

Yes, of course, this is a bit strange.
The first time that the crash occured, I did not do this intentionally. It is after having observed the crash that I tried to reproduce it. And I saw that the crash occurs only on the recent ROOT version (not the 5.28 for example)
Anyway, I disabled the guidelines as you said and I am not able anymore to induce the crash as I described.

Comment by Olivier Couet [ 17/Sep/14 ]

Fine. I will need to find a machine where I can click on both button at the same time in order to debug it. Yes disabling the guidelines should fix it (it is clear from the stack you sent).

Comment by Olivier Couet [ 27/May/15 ]

Now fixed (in 5.34, 6.02, 6.04). Thanks for reporting.

Generated at Sun Sep 22 01:34:58 CEST 2019 using Jira 7.13.1#713001-sha1:5e06076c2d215a6f699b7e5c90ab2fae7ba5a1ce.