On Tue, February 28, 2006 17:35, Ronny Haryanto wrote:
> On Tue, Feb 28, 2006 at 04:45:04PM +0700, Adrian wrote:
>> # vi coba.c
>> # gcc coba.c
>> # ./a.out
>> Segmentation fault
>
> Coba dibacktrace. Enable coredump dengan 'ulimit -c unlimited', lalu
> compile ulang dengan 'gcc -g coba.c', lalu './a.out' lagi. Nanti
> setelah segfault dan core dump jalanin 'gdb a.out core', lalu kalo
> udah masuk promptnya gdb ketik 'bt' (untuk backtrace). Paste outputnya
> ke sini.

# gdb a.out core
GNU gdb Red Hat Linux (6.3.0.0-1.84rh)
Copyright 2004 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-gnu"...Using host
libthread_db library "/lib/libthread_db.so.1".

/home/adrian/test/core: No such file or directory.
(gdb) bt
No stack.

no stack!

>> seingat saya, waktu update dulu itu yang di-update diantaranya adalah
>> gcc,
>> glibc, kernel. saya gak inget banyak, soalnya udah lama sekali, kalo gak
>> salah akhir tahun lalu.
>
> Anda pake paket2 official dari distronya nggak? Atau dari third-party?
> Distro apa dan versi berapa? Apakah gcc dan glibc yg anda pake skrg
> itu versi yg disupport?

saya update dengan yum dari mirror fedora di cbn. tidak ada third party.

OS: Fedora Core release 4 (Stentz)
Kernel: 2.6.15-1.1831_FC4
GCC: 4.0.2 20051125 (Red Hat 4.0.2-8)
Glibc: 2.3.5-10.3


salam,
Adrian
------------------------
http://adrian.bahana.net

---------------
You may say I'm a dreamer
But I'm not the only one
I hope someday you'll join us
And the world will live as one
("Imagine", John Lennon)


-- 
FAQ milis di http://wiki.linux.or.id/FAQ_milis_tanya-jawab
Unsubscribe: kirim email ke [EMAIL PROTECTED]
Arsip dan info milis selengkapnya di http://linux.or.id/milis

Kirim email ke