You are not logged in.

#1 2006-10-11 21:08:56

lz3060
Member
Registered: 2006-09-15
Posts: 35

eclipse won't die

I have been having this problem ever since jdk 1_5_0_03, I now use 1_5_0_08, Eclipse is 3.2.1-1. I have a few plugins installed, but the problem is reproducible with a fresh Eclipse install, so I don't think this is the issue.

The problem itself is that when I try to close Eclipse it doesn't die -- 2 processes are left sleeping on the system, the workspace remains locked, but the worst part is that somehow they hook to the keyboard, and do not let any key events to reach X -- I have no keyboard untill the processes are manually killed (luckily, Ctrl+Alt+F1 works).

Running eclipse with strace -f, I get the following before the processes hang:

Process 7703 detached
[pid  7693] <futex> )       = 1
[pid  7693] gettimeofday({1160597907, 593421}, NULL) = 0
[pid  7693] futex(0x809975c, 0x5 /* FUTEX_??? */, 1 <unfinished>
[pid  7695] <futex> )       = 0
[pid  7693] <futex> )       = 1
[pid  7695] futex(0x805beb0, FUTEX_WAIT, 2, NULL <unfinished>
[pid  7693] futex(0x805beb0, FUTEX_WAKE, 1 <unfinished>
[pid  7695] <futex> )       = -1 EAGAIN (Resource temporarily unavailable)
[pid  7693] <futex> )       = 0
[pid  7695] futex(0x805beb0, FUTEX_WAKE, 1 <unfinished>
[pid  7693] futex(0x8324f9c, FUTEX_WAIT, 101, NULL <unfinished>
[pid  7695] <futex> )       = 0
[pid  7695] gettimeofday({1160597907, 593738}, NULL) = 0
[pid  7695] gettimeofday({1160597907, 593787}, NULL) = 0
[pid  7695] mprotect(0xb7f2d000, 4096, PROT_READ) = 0
[pid  7695] mprotect(0xb7f2d000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
[pid  7695] mprotect(0xb7f2e000, 4096, PROT_NONE) = 0
[pid  7695] gettimeofday({1160597907, 594018}, NULL) = 0
[pid  7695] gettimeofday({1160597907, 594100}, NULL) = 0
[pid  7695] gettimeofday({1160597907, 596337}, NULL) = 0
[pid  7695] unlink("/tmp/hsperfdata_kenny/7693") = 0
[pid  7695] pipe([10, 12])              = 0
[pid  7695] pipe([26, 27])              = 0
[pid  7695] clone(Process 7978 attached
child_stack=0xb1e844d4, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tidptr=0xb1e84be8, {entry_number:6, base_addr:0xb1e84ba0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}, child_tidptr=0xb1e84be8) = 7978
[pid  7695] writev(23, [{"GIOP1212341", 12}, {"22036F262334e26030H"..., 412}], 2) = 424
[pid  7695] futex(0x8b3b9cc, FUTEX_WAIT, 1, NULL <unfinished>
[pid  7700] <futex> )       = 0
[pid  7700] futex(0x805be30, FUTEX_WAIT, 2, NULL <unfinished>
[pid  7978] poll([{fd=10, events=POLLIN}, {fd=25, events=POLLIN|POLLPRI, revents=POLLIN}, {fd=23, events=POLLIN|POLLPRI}, {fd=22, events=POLLIN|POLLPRI}, {fd=21, events=POLLIN|POLLPRI}, {fd=20, events=POLLIN|POLLPRI}, {fd=26, events=POLLIN|POLLPRI}], 7, -1) = 1
[pid  7978] read(25, "GIOP121T", 12) = 12
[pid  7978] read(25, "|317277334216f26420"..., 84) = 84
[pid  7978] write(19, "A", 1)           = 1
[pid  7978] poll(

These are the processes themselves (partial output from `ps axjf`):

kenny     7689  0.7  0.1   1696   720 pts/2    S+   23:10   0:13 strace -f ./eclipse
kenny     7690  0.0  0.2  12580  1816 pts/2    T+   23:10   0:00 ./eclipse
kenny     7693  1.6 11.6 499124 82916 pts/2    Sl+  23:10   0:30 /opt/java/bin/java -Xms40m -Xmx256m -jar /opt/eclipse/./startup.jar -os linux -ws gtk -arch x86 -launcher /opt/eclipse/./eclipse -name Eclipse -showsplash 600 -exitdata 3f0018 -vm /opt/java/bin/java -vmargs -Xms40m -Xmx256m -jar /opt/eclipse/./startup.jar

I would really appreciate any help or suggestions.

Offline

#2 2006-10-12 02:36:40

mmccaskill
Member
From: NC
Registered: 2005-02-21
Posts: 165

Re: eclipse won't die

If you're using the packaged eclipse, try downloading it directly from eclipse and using it. Just extract it in your ~/.

Offline

#3 2006-10-12 06:36:47

lz3060
Member
Registered: 2006-09-15
Posts: 35

Re: eclipse won't die

Already did that -- tried fresh extracts of 3.2.1, 3.2.0, 3.1.1 -- I get the same behavior all over again.

With some versions, I do not experience the keyboard focus problem, but the processes are still left in a 'S' or 'Sl' state.

Offline

#4 2006-10-15 11:00:36

aquila_deus
Member
From: Taipei
Registered: 2005-07-02
Posts: 348
Website

Re: eclipse won't die

Try this?

java -Xms256m -Xmx320m -XX:PermSize=64m -XX:MaxPermSize=128m -jar /usr/local/lib/eclipse/startup.jar -os linux -ws gtk -arch x86 -launcher /usr/local/lib/eclipse/eclipse -name Eclipse -showsplash 600 -exitdata 4aeb003f -vm /opt/java/jre/bin/java -vmargs -jar /usr/local/lib/eclipse/startup.jar

Offline

#5 2006-10-15 17:01:43

lz3060
Member
Registered: 2006-09-15
Posts: 35

Re: eclipse won't die

Nope, this did not help either -- the java process was in 'S' state after I closed down eclipse and I had to kill it before I could type this reply.

Offline

Board footer

Powered by FluxBB