Bug 2977 - creating a org.gnu.gnomevte.Terminal makes frysk lock up processes when attaching
Summary: creating a org.gnu.gnomevte.Terminal makes frysk lock up processes when attac...
Status: NEW
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Unassigned
URL:
Keywords:
Depends on: 2940
Blocks: 3398
  Show dependency treegraph
 
Reported: 2006-07-28 21:40 UTC by Ivan P
Modified: 2006-11-28 16:44 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan P 2006-07-28 21:40:32 UTC
If a org.gnu.gnomevte.Terminal connected to a pty is instantiated and afterwards
processes are attached, the processes get permentantly locked up.
Comment 1 Ivan P 2006-07-28 21:56:54 UTC
the backtrace for frysk at this point (when the process is attached and locked up):
Thread 5 (Thread -1210315872 (LWP 11423)):
#0  0x0081c402 in __kernel_vsyscall ()
#1  0x00cae216 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0x04b0eddb in _Jv_CondWait () from /usr/lib/libgcj.so.7
#3  0x04af6f6d in gnu::gcj::runtime::FinalizerThread::run ()
#4  0x04b06e0b in _Jv_ThreadRun () from /usr/lib/libgcj.so.7
#5  0x04b0e880 in _Jv_ThreadRegister () from /usr/lib/libgcj.so.7
#6  0x050fbf24 in GC_start_routine () from /usr/lib/libgcj.so.7
#7  0x00cab3b6 in start_thread () from /lib/libpthread.so.0
#8  0x0090233e in clone () from /lib/libc.so.6
Thread 4 (Thread -1265398880 (LWP 11424)):
#0  0x0081c402 in __kernel_vsyscall ()
#1  0x008f8cac in poll () from /lib/libc.so.6
#2  0x0815c4f0 in frysk::sys::Poll::poll ()
#3  0x0814fa7e in frysk::event::EventLoop::runEventLoop ()
#4  0x0814fb09 in frysk::event::EventLoop::run ()
#5  0x080df484 in frysk::gui::Gui$4::run ()
#6  0x04d0ea54 in java::lang::Thread::run () from /usr/lib/libgcj.so.7
#7  0x04b06e0b in _Jv_ThreadRun () from /usr/lib/libgcj.so.7
#8  0x04b0e880 in _Jv_ThreadRegister () from /usr/lib/libgcj.so.7
#9  0x050fbf24 in GC_start_routine () from /usr/lib/libgcj.so.7
#10 0x00cab3b6 in start_thread () from /lib/libpthread.so.0
#11 0x0090233e in clone () from /lib/libc.so.6
Thread 3 (Thread -1290896480 (LWP 11430)):
#0  0x0081c402 in __kernel_vsyscall ()
#1  0x00cb0b8b in __read_nocancel () from /lib/libpthread.so.0
#2  0x04afbf70 in gnu::java::nio::channels::FileChannelImpl::read ()
#3  0x04cfea72 in java::io::FileInputStream::read () from /usr/lib/libgcj.so.7
#4  0x083b1993 in jline::Terminal::readCharacter ()
#5  0x083b0a91 in jline::PtyTerminal::readVirtualKey ()
#6  0x083ad157 in jline::ConsoleReader::readVirtualKey ()
#7  0x083ab94a in jline::ConsoleReader::readBinding ()
#8  0x083ab6c2 in jline::ConsoleReader::readLine ()
#9  0x083ab632 in jline::ConsoleReader::readLine ()
#10 0x080fbdd8 in frysk::vtecli::ConsoleWindow$reader::run ()
#11 0x04d0ea54 in java::lang::Thread::run () from /usr/lib/libgcj.so.7
#12 0x04b06e0b in _Jv_ThreadRun () from /usr/lib/libgcj.so.7
#13 0x04b0e880 in _Jv_ThreadRegister () from /usr/lib/libgcj.so.7
#14 0x050fbf24 in GC_start_routine () from /usr/lib/libgcj.so.7
#15 0x00cab3b6 in start_thread () from /lib/libpthread.so.0
#16 0x0090233e in clone () from /lib/libc.so.6
Thread 2 (Thread -1280406624 (LWP 11433)):
#0  0x0081c402 in __kernel_vsyscall ()
#1  0x00cae216 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0x04b0eddb in _Jv_CondWait () from /usr/lib/libgcj.so.7
#3  0x04b02e8e in java::lang::Object::wait () from /usr/lib/libgcj.so.7
#4  0x04af2b33 in java::lang::Object::wait () from /usr/lib/libgcj.so.7
#5  0x081608cb in frysk::sys::Ptrace$PtraceThread::run ()
#6  0x04b06e0b in _Jv_ThreadRun () from /usr/lib/libgcj.so.7
#7  0x04b0e880 in _Jv_ThreadRegister () from /usr/lib/libgcj.so.7
#8  0x050fbf24 in GC_start_routine () from /usr/lib/libgcj.so.7
#9  0x00cab3b6 in start_thread () from /lib/libpthread.so.0
#10 0x0090233e in clone () from /lib/libc.so.6
Thread 1 (Thread -1208214976 (LWP 11422)):
#0  0x0081c402 in __kernel_vsyscall ()
#1  0x008f8cac in poll () from /lib/libc.so.6
#2  0x00430363 in g_main_context_check () from /usr/lib/libglib-2.0.so.0
#3  0x004306d9 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#4  0x0256c594 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#5  0x0063ef07 in Java_org_gnu_gtk_Gtk_gtk_1main ()
#6  0x05a5caaf in org::gnu::gtk::Gtk::gtk_main ()
#7  0x05a5d372 in org::gnu::gtk::Gtk::main () from /usr/lib/libgtkjava-2.8.so
#8  0x080dfeac in frysk::gui::Gui::gui ()
#9  0x080dd52f in frysk::gui::FryskGui::main ()
#10 0x04af7934 in gnu::java::lang::MainThread::call_main ()
#11 0x04b39b16 in gnu::java::lang::MainThread::run () from /usr/lib/libgcj.so.7
#12 0x04b06e0b in _Jv_ThreadRun () from /usr/lib/libgcj.so.7
#13 0x04ac9868 in _Jv_RunMain () from /usr/lib/libgcj.so.7
#14 0x04ac99a4 in _Jv_RunMain () from /usr/lib/libgcj.so.7
#15 0x04ac99eb in JvRunMain () from /usr/lib/libgcj.so.7
#16 0x080dd241 in main ()
Comment 2 Ivan P 2006-07-28 21:59:28 UTC
cat /proc/(pid of attached process)/status gives:
Name:   gcalctool
State:  T (tracing stop)
SleepAVG:       98%
Tgid:   11431
Pid:    11431
PPid:   2651
TracerPid:      11433
Uid:    500     500     500     500
Gid:    500     500     500     500
FDSize: 256
Groups: 500
VmPeak:    65780 kB
VmSize:    65780 kB
VmLck:         0 kB
VmHWM:     10332 kB
VmRSS:     10332 kB
VmData:     1800 kB
VmStk:       128 kB
VmExe:       180 kB
VmLib:     17480 kB
VmPTE:       120 kB
StaBrk: 08076000 kB
Brk:    09515000 kB
StaStk: bfe2fed0 kB
ExecLim:        08072000
Threads:        1
SigQ:   1/8183
SigPnd: 0000000000000000
ShdPnd: 0000000000000000
SigBlk: 0000000000000000
SigIgn: 0000000000001000
SigCgt: 00000001800004f0
CapInh: 0000000000000000
CapPrm: 0000000000000000
CapEff: 0000000000000000
Cpus_allowed:   ffffffff
Mems_allowed:   1