I experienced the same problem with jdb and I found that it was a problem of jdb
on linux. I tried oldjdb and it works fine for me. I believe that oldjdb does
not work with awt classes.
Joaquin
On Mon, May 14, 2001 at 05:11:53PM +0530, Amol Kulkarni wrote:
> Hi,
> After doing a lot of research, i think i just found a way to start
> debugging java code on redhatlinux7.0. But still i cant run it properly.
>
> I do this,
> java -Xdebug -Djava.compiler=NONE
> -Xbootclasspath/a:/vol03/jdk1.2.2/lib/tools.jar:/vol03/jdk1.2.2/jre/lib/rt.jar
> -Xrunjdwp:transport=dt_socket,server=y,suspend=y
> O/P is
> Agent password=igh85
> Listening for transport dt_socket at address: 3538
> After that i start jdb in another terminal.
> jdb -attach 3490
> O/P is
> Initializing jdb...
>
> VM Started: No frames on the current call stack
>
> main[1]
>
> If i run the command next assuming that the debuging has started , the
> jdb comes out and so does the program
> Now can anybody explain why does this happen.
>
> Also i had run gdb on a hung jdb. It showed a following stack trace
> after issuing command where. I think the thread goes in sigsuspend.
> I dont know wether this is the proper way. But sill somebody from
> blackdon can have a look at it.
>
> #0 0x400c4c82 in __sigsuspend (set=0xbffff138)
> at ../sysdeps/unix/sysv/linux/sigsuspend.c:45
> #1 0x401fba55 in __pthread_wait_for_restart_signal (self=0x40205180)
> at pthread.c:898
> #2 0x401f7d89 in pthread_cond_wait (cond=0x804e818, mutex=0x804e800)
> at restart.h:34
> #3 0x40087223 in condvarWait (condvar=0x804e818, mutex=0x804e800,
> wtype=CONDVAR_WAIT)
> at
> ../../../../../src/solaris/hpi/native_threads/src/condvar_md.c:121
> #4 0x4008666f in sysMonitorWait (self=0x804caa8, mid=0x804e800,
> millis=-1)
> at
> ../../../../../src/solaris/hpi/native_threads/src/monitor_md.c:325
> #5 0x400643e0 in monitorWait2 (ee=0x804ca28, key=1089168048, millis=-1)
>
> at ../../../../src/share/javavm/runtime/monitor_cache.c:873
> #6 0x40058660 in JVM_MonitorWait (env=0x804ca28, obj=0x804cee0,
> millis=0)
> at ../../../../src/share/javavm/runtime/jvm.c:1476
> #7 0x4006d485 in args_done ()
> from /vol03/jdk1.2.2/jre/lib/i386/classic/libjvm.so
> #8 0x4003d3c2 in invokeJNINativeMethod (o=0x40eb62b0, mb=0x8097c40,
> args_size=3, ee=0x804ca28)
> at ../../../../src/share/javavm/runtime/classruntime.c:493
> #9 0x40073ecb in ivqw_not_ijn6 ()
> from /vol03/jdk1.2.2/jre/lib/i386/classic/libjvm.so
> #10 0x40eb5d50 in ?? ()
> #11 0x81b0ec0 in ?? ()
> #12 0x40eb69c8 in ?? ()
> #13 0x817aa20 in ?? ()
> #14 0x40eae040 in ?? ()
> #15 0x817ece0 in ?? ()
>
>
> Thanks and Regards
> Amol
>
>
>
> ----------------------------------------------------------------------
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
>
--
Joaquin Rapela
PhD Student, Signal and Image Processing Institute
University of Southern California
3740 McClintock Ave, EEB 424
Los Angeles, CA 90089-2564
email: [EMAIL PROTECTED]
tel: (213) 740-6430
fax: (213) 740-4651
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]