BACKRUSH  À¯´Ð½º¸í·É  ´ÙÀ½  ÀÚ·á½Ç  Ascii Table   ¿ø°ÝÁ¢¼Ó  ´Þ·Â,½Ã°£   ÇÁ·Î¼¼½º   ½©
ÁöÇÏö³ë¼±   RFC¹®¼­   SUN FAQ   SUN FAQ1   C¸Þ´º¾ó   PHP¸Þ´º¾ó   ³Ê±¸¸®   ¾Æ½ºÅ°¿ùµå ¾ÆÀÌÇǼ­Ä¡

±Û¾´ÀÌ: gdb gdb µð¹ö±ë Á¶È¸¼ö: 8876


¸ÕÀú gdb <½ÇÇàÈ­ÀÏ> -c <core È­ÀÏ> ÇÏ¿© µð¹ö°Å¸¦ ½ÇÇà½ÃŲÈÄ
¾Æ·¡¿Í °°ÀÌ bt(backtrace)¸í·É¾î·Î ¾î¶² ÇÔ¼ö¸¦ ºÎ¸£´Ù Á×¾ú´ÂÁö
È®ÀÎÇÕ´Ï´Ù.


(gdb) bt
#0 0xef663628 in fprintf () from /usr/lib/libc.so.1
#1 0x15b0c in fxRslt (gubun=0x56bf0 "1", from=0x57070 "010305",
to=0x574f0 "010305", loginid=0x57970 "TEST001")
at /fxMain/SRC/fxWeb/cgi/rslt.c:50
#2 0x1597c in main (argc=1, argv=0xeffff964)
at /fxMain/SRC/fxWeb/cgi/fxrslt.c:85
(gdb)


º¸´Ï±î main->fxRslt->fprintf ÇÏ´Ù°¡ Á×¾ú±º¿ä. Àå¼Ò´Â rslt.c ¿¡ 50¹ø° ÁÙ.
ÀÌÁ¦ frame ¸í·É¾î·Î ÇØ´ç ½ºÅÃÀ¸·Î À̵¿ÇÕ´Ï´Ù. ÀÌÈÄ list ¸í·É¾î·Î
¼Ò½ºÆÄÀÏÀ» È®ÀÎÇغ¾´Ï´Ù.


(gdb) frame 1
#1 0x15b0c in fxRslt (gubun=0x56bf0 "1", from=0x57070 "010305",
to=0x574f0 "010305", loginid=0x57970 "TEST001")
at /fxMain/SRC/fxWeb/cgi/rslt.c:50
50 fprintf(logfile,"GUBUN:[%c] FROM:[%s] TO:[%s] LOGIN:[%s]\n",
(gdb) list
45 loginid[i] = '\0';
46 strcpy(audit_id, loginid);
47
48
sprintf(logfname,"%s/%s.log",FXRSLT_LOGDIR,RSLT_LOGINIT,loginid);
49 logfile = fopen(logfname, "w");
50 fprintf(logfile,"GUBUN:[%c] FROM:[%s] TO:[%s] LOGIN:[%s]\n",
51 gubun[0],from,to,loginid);
52
53 if (ChkDate(from,to)==0) {
54 fprintf(logfile,"Error in ChkDate\n");
(gdb)


±×´ã¿£ print¸í·É¾îµîÀ¸·Î °¢ º¯¼ö°ªÀ» Á¶»çÇÏ¿© NULLÀÌ ÀÖ´ÂÁö üũÇغ¸¸é
µË´Ï´Ù.


(gdb) print logfname
$1 = "/fxLog/fxRslt_TEST001.log\000?\001~~~~~~~~~~
(gdb)


µµ¿òÀÌ µÇ¾ú±â¸¦ ¹Ù¶ó¸ç....


[lms:/weblogic]#gdb /opt/java1.4/bin/IA64N/java core.s
HP gdb 5.2 for HP Itanium (32 or 64 bit) and target HP-UX 11.2x.
Copyright 1986 - 2001 Free Software Foundation, Inc.
Hewlett-Packard Wildebeest 5.2 (based on GDB) is covered by the
GNU General Public License. Type "show copying" to see the conditions to
change it and/or distribute copies. Type "show warranty" for warranty/support.
..
Core was generated by `java'.
Program terminated with signal 6, Aborted.
SI_UNKNOWN - signal of unknown origin
#0 0x60000000c0337090:0 in __ksleep+0x30 () from /usr/lib/hpux32/libc.so.1
(gdb)


Core was generated by `java'.
Program terminated with signal 6, Aborted.
SI_UNKNOWN - signal of unknown origin
#0 0x60000000c0337090:0 in __ksleep+0x30 () from /usr/lib/hpux32/libc.so.1
(gdb) bt
#0 0x60000000c0337090:0 in __ksleep+0x30 () from /usr/lib/hpux32/libc.so.1
#1 0x60000000c00fcf40:0 in __mxn_sleep+0xb20 ()
from /usr/lib/hpux32/libpthread.so.1
#2 0x60000000c009c140:0 in <unknown_procedure> + 0xc60 ()
from /usr/lib/hpux32/libpthread.so.1
#3 0x60000000c009cfb0:0 in pthread_cond_timedwait+0x1d0 ()
from /usr/lib/hpux32/libpthread.so.1
#4 0x60000000c73efcd0:0 in T_4f_6599_cl_os::Hpux::Event::down ()
at /CLO/Components/JAVA_HOTSPOT/Src/src/os/hp-ux/vm/os_hp-ux.hpp:332
#5 0x60000000c73e7c80:0 in ObjectMonitor::EnterI ()
at /CLO/Components/JAVA_HOTSPOT/Src/src/os/hp-ux/vm/objectMonitor_hp-ux.cpp:
369
#6 0x60000000c73e8600:0 in ObjectMonitor::enter2 ()
at /CLO/Components/JAVA_HOTSPOT/Src/src/os/hp-ux/vm/objectMonitor_hp-ux.cpp:
419
#7 0x60000000c73e9dc0:0 in ObjectMonitor::enter ()
at /CLO/Components/JAVA_HOTSPOT/Src/src/os/hp-ux/vm/objectMonitor_hp-ux.cpp:
581
#8 0x60000000c7599aa0:0 in ObjectSynchronizer::slow_enter ()
at /CLO/Components/JAVA_HOTSPOT/Src/src/share/vm/runtime/synchronizer.cpp:42
5
#9 0x60000000c70ef020:0 in InterpreterRuntime::monitorenter ()
at /CLO/Components/JAVA_HOTSPOT/Src/src/share/vm/runtime/handles_inline.hpp:
---Type <return> to continue, or q <return> to quit---
27
(gdb)
(gdb)

°ü·Ã±Û : ¾øÀ½ ±Û¾´½Ã°£ : 2007/09/10 16:45 from 218.38.35.251

  ignite os backup(make_tape_recovery) ¸ñ·Ïº¸±â »õ±Û ¾²±â Áö¿ì±â ÀÀ´ä±Û ¾²±â ±Û ¼öÁ¤ apache ssl ÀÚµ¿½ÇÇà  
BACKRUSH  À¯´Ð½º¸í·É  ´ÙÀ½  ÀÚ·á½Ç  Ascii Table   ¿ø°ÝÁ¢¼Ó  ´Þ·Â,½Ã°£   ÇÁ·Î¼¼½º   ½©
ÁöÇÏö³ë¼±   RFC¹®¼­   SUN FAQ   SUN FAQ1   C¸Þ´º¾ó   PHP¸Þ´º¾ó   ³Ê±¸¸®   ¾Æ½ºÅ°¿ùµå ¾ÆÀÌÇǼ­Ä¡