core dump

ibabarovic at yahoo.com ibabarovic at yahoo.com
Mon Mar 26 19:46:53 CEST 2001


Hi!

Mogoce bo tole malo 'off-topic' vendar neka povezava z
tematiko lugos-prog vendarle obstaja. Ce mi tu ne morete
odgovoriti na vprasanje me prosim napotite drugam
Imam naslednji problem.:
Zadnje case se mi v ~ direktoriju pojavlja core file.
Ugotovil sem, da se file ustvari ob shutdownu.
Ker nisem tocno vedel kaj povzroci core file, sem
se probal malo poigrati z gdb. Ker se z gdb-jem
sele spoznavam mi ni uspelo kaj dosti izvedeti, razen
da je za core dump kriv program nxterm.

core file:
-rw-------    1 ivo      ivo       1372160 Mar 26 19:08 core

izpis gdb-ja ko ga zazenem z ukazom 'gdb /sbin/shutdown core':
--------------------------------------------------------------------------
GNU gdb 19991004
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux"...
(no debugging symbols found)...

warning: core file may not match specified executable file.
Core was generated by `/usr/X11R6/bin/nxterm'.
Program terminated with signal 5, Trace/breakpoint trap.
#0  0x4000af21 in ?? ()
(gdb) 
--------------------------------------------------------------------------


Vem da je mogoce smesno ker sem gdb zagnal kar s shutdown,
vendar kot sem rekel sem se zacetnik. Rad pa bi zadevi prisel do dna.
Nato sem gdb zagnal se z ukazom 'gdb /usr/X11R6/bin/nxterm core':


--------------------------------------------------------------------------
GNU gdb 19991004
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux"...(no debugging symbols found)...
Core was generated by `/usr/X11R6/bin/nxterm'.
Program terminated with signal 5, Trace/breakpoint trap.
Reading symbols from /usr/X11R6/lib/libXaw.so.6...(no debugging symbols found)...done.
Reading symbols from /usr/X11R6/lib/libXmu.so.6...(no debugging symbols found)...done.
Reading symbols from /usr/X11R6/lib/libXt.so.6...(no debugging symbols found)...done.
Reading symbols from /usr/X11R6/lib/libSM.so.6...(no debugging symbols found)...done.
Reading symbols from /usr/X11R6/lib/libICE.so.6...(no debugging symbols found)...done.
Reading symbols from /usr/X11R6/lib/libXext.so.6...(no debugging symbols found)...done.
Reading symbols from /usr/X11R6/lib/libX11.so.6...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libncurses.so.4...(no debugging symbols found)...done.
Reading symbols from /lib/libutil.so.1...done.
Reading symbols from /usr/lib/libutempter.so.0...done.
Reading symbols from /lib/libc.so.6...done.
Reading symbols from /lib/ld-linux.so.2...done.
Reading symbols from /usr/lib/gconv/ISO8859-1.so...done.
Reading symbols from /lib/libnss_files.so.2...done.
#0  0x4000af21 in _dl_debug_state () at dl-debug.c:56
56      dl-debug.c: No such file or directory.
(gdb)
-------------------------------------------------------------------------------------

Mogoce bi podal se nekaj podatkov o hardveru in softweru.
uname -a:
Linux orion 2.2.14-5.0 #1 Thu Jan 18 17:45:08 CET 2001 i586 unknown

Uporabljam window manager icewm-1.0.1-1, verzija xterm je XFree86 3.3.3.1b(88b).

Aja, se to. Shutdown program zazenem kot navaden uporabnik z malo privilegiji.
-rwsr-xr-x    1 root     shutdown    14128 Mar  7  2000 /sbin/shutdown


Kako naprej?

lp, ivo





More information about the lugos-prog mailing list