HomeDigital EditionSys-Con RadioSearch Java Cd
Advanced Java AWT Book Reviews/Excerpts Client Server Corba Editorials Embedded Java Enterprise Java IDE's Industry Watch Integration Interviews Java Applet Java & Databases Java & Web Services Java Fundamentals Java Native Interface Java Servlets Java Beans J2ME Libraries .NET Object Orientation Observations/IMHO Product Reviews Scalability & Performance Security Server Side Source Code Straight Talking Swing Threads Using Java with others Wireless XML
 

"The Linux Platform: A Guide To Getting Started"
Vol. 5, Issue 12, p. 16

	


Listing 1

[[email protected] bin]# gdb /usr/java/jdk1.3/bin/i386/native_threads/java 11712
GNU gdb 4.18
Copyright 1998 Free Software Foundation, Inc.
	GDB is free software, covered by the GNU General Public License, and you're welcome to change and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There's absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-redhat-linux"...

/usr/X11R6/bin/11712: No such file or directory.
Attaching to program: /usr/java/jdk1.3/bin/i386/native_threads/java, Pid 11712
Reading symbols from /lib/libpthread.so.0...done.
Reading symbols from /usr/java/jdk1.3/jre/lib/i386/native_threads/libhpi.so...
done.
Reading symbols from /usr/java/jdk1.3/jre/lib/i386/client/libjvm.so...done.
Reading symbols from /lib/libdl.so.2...done.
Reading symbols from /lib/libc.so.6...done.
Reading symbols from /usr/X11R6/lib/libX11.so.6...done.
Reading symbols from /lib/libnsl.so.1...done.
Reading symbols from /lib/libm.so.6...done.
Reading symbols from /usr/lib/libstdc++-libc6.1-1.so.2...done.
Reading symbols from /lib/ld-linux.so.2...done.
Reading symbols from /usr/java/jdk1.3/jre/lib/i386/libverify.so...done.
Reading symbols from /usr/java/jdk1.3/jre/lib/i386/libjava.so...done.
Reading symbols from /usr/java/jdk1.3/jre/lib/i386/libzip.so...done.
Reading symbols from /lib/libnss_files.so.2...done.
Reading symbols from /usr/java/jdk1.3/jre/lib/i386/libawt.so...done.
Reading symbols from /usr/java/jdk1.3/jre/lib/i386/libmlib_image.so...done.
Reading symbols from /usr/X11R6/lib/libXp.so.6...done.
Reading symbols from /usr/X11R6/lib/libXt.so.6...done.
Reading symbols from /usr/X11R6/lib/libXext.so.6...done.
Reading symbols from /usr/X11R6/lib/libXtst.so.6...done.
Reading symbols from /usr/X11R6/lib/libSM.so.6...done.
Reading symbols from /usr/X11R6/lib/libICE.so.6...done.
Reading symbols from /usr/java/jdk1.3/jre/lib/i386/libfontmanager.so...done.
Reading symbols from /usr/lib/gconv/ISO8859-1.so...done.
0x404fa320 in __poll (fds=0x805ac50, nfds=1, timeout=2000)
    at ../sysdeps/unix/sysv/linux/poll.c:45
45      ../sysdeps/unix/sysv/linux/poll.c: No such file or directory

Listing 2

(gdb) info threads
  12 Thread 11726  0x4046e58b in __sigsuspend (set=0xbe3ff808)
    at ../sysdeps/unix/sysv/linux/sigsuspend.c:48
  11 Thread 11724  0x404fa320 in __poll (fds=0x48cf8d60, nfds=2, timeout=250)
    at ../sysdeps/unix/sysv/linux/poll.c:45
  10 Thread 11723  0x4046e58b in __sigsuspend (set=0xbe9ff82c)
    at ../sysdeps/unix/sysv/linux/sigsuspend.c:48
  9 Thread 11722  0x4046e58b in __sigsuspend (set=0xbebff7bc)
    at ../sysdeps/unix/sysv/linux/sigsuspend.c:48
  8 Thread 11718  0x4046e58b in __sigsuspend (set=0xbedffae0)
    at ../sysdeps/unix/sysv/linux/sigsuspend.c:48
  7 Thread 11717  0x4046e58b in __sigsuspend (set=0xbefffaf8)
    at ../sysdeps/unix/sysv/linux/sigsuspend.c:48
  6 Thread 11716  0x404e07f1 in __libc_nanosleep () from /lib/libc.so.6
  5 Thread 11715  0x4046e58b in __sigsuspend (set=0xbf3ff7f8)
    at ../sysdeps/unix/sysv/linux/sigsuspend.c:48
  4 Thread 11714  0x4046e58b in __sigsuspend (set=0xbf5ff830)
    at ../sysdeps/unix/sysv/linux/sigsuspend.c:48
  3 Thread 11713  0x404e07f1 in __libc_nanosleep () from /lib/libc.so.6
  2 Thread 11667 (initial thread)  0x4046e58b in __sigsuspend (set=0xbfffd9e0)
    at ../sysdeps/unix/sysv/linux/sigsuspend.c:48
* 1 Thread 11712 (manager thread)  0x404fa320 in __poll (fds=0x805ac50,
    nfds=1, timeout=2000) at ../sysdeps/unix/sysv/linux/poll.c:45

(gdb) t 12
[Switching to thread 12 (Thread 11726)]
#0  0x4046e58b in __sigsuspend (set=0xbe3ff808)
    at ../sysdeps/unix/sysv/linux/sigsuspend.c:48
48      ../sysdeps/unix/sysv/linux/sigsuspend.c: No such file or directory.

(gdb) where
#0  0x4046e58b in __sigsuspend (set=0xbe3ff808)
    at ../sysdeps/unix/sysv/linux/sigsuspend.c:48
#1  0x4001d1db in pthread_cond_wait (cond=0x81b8efc, mutex=0x81b8ee4)
    at restart.h:49
#2  0x401cc7bd in ObjectMonitor::wait ()
   from /usr/java/jdk1.3/jre/lib/i386/client/libjvm.so
#3  0x401ea68f in ObjectSynchronizer::wait ()
   from /usr/java/jdk1.3/jre/lib/i386/client/libjvm.so
#4  0x4017c462 in JVM_MonitorWait ()
   from /usr/java/jdk1.3/jre/lib/i386/client/libjvm.so
#5  0x8069c95 in ?? ()
#6  0x8067579 in ?? ()
#7  0x8067579 in ?? ()
#8  0x8067525 in ?? ()
#9  0x404439b0 in StubRoutines::_code1 ()
   from /usr/java/jdk1.3/jre/lib/i386/client/libjvm.so
#10 0x40154342 in JavaCalls::call_helper ()
   from /usr/java/jdk1.3/jre/lib/i386/client/libjvm.so
#11 0x401d1801 in os::os_exception_wrapper ()
   from /usr/java/jdk1.3/jre/lib/i386/client/libjvm.so
#12 0x40154690 in JavaCalls::call ()
   from /usr/java/jdk1.3/jre/lib/i386/client/libjvm.so
#13 0x40153e8b in JavaCalls::call_virtual ()
   from /usr/java/jdk1.3/jre/lib/i386/client/libjvm.so
#14 0x40154b1b in JavaCalls::call_virtual ()
   from /usr/java/jdk1.3/jre/lib/i386/client/libjvm.so
#15 0x4018880f in thread_entry ()
   from /usr/java/jdk1.3/jre/lib/i386/client/libjvm.so
#16 0x401fef1f in JavaThread::thread_main_inner ()
   from /usr/java/jdk1.3/jre/lib/i386/client/libjvm.so
#17 0x40202a87 in JavaThread::run ()
   from /usr/java/jdk1.3/jre/lib/i386/client/libjvm.so
#18 0x401d05c3 in _start () from /usr/java/jdk1.3/jre/lib/i386/client/libjvm.so
#19 0x4001dea5 in pthread_start_thread (arg=0xbe3ffe60) at manager.c:213

(gdb) quit
The program is running.  Quit anyway (and detach it)? (y or n) y
Detaching from program: /usr/java/jdk1.3/bin/i386/native_threads/java, Thread 11712

  
 
 

All Rights Reserved
Copyright ©  2004 SYS-CON Media, Inc.
  E-mail: [email protected]

Java and Java-based marks are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other countries. SYS-CON Publications, Inc. is independent of Sun Microsystems, Inc.