I download the source for debian and ubuntu 6.8. They were not that different. And I copied ubuntu source to debian and compiled on debian and gdb gcore produced a core that generated a good backtrace. I did the same copying debian source to ubuntu and compiling and it did not produce a workable core.
I noticed that if on ubuntu I compile with --static I can get a backtrace gcc -Wall -lo singelthread2e.g singlethread.c --static -rwxr-x-r-x 1 root root 8331 2010-11-23 01:49 singlethread.g -rwxr-x-r-x 1 root root 6119312010-11-30 22:10 singlethread2e.g r...@install:~/ubuntu_kernel# gdb singlethread2e.g core.2e GNU gdb (GDB) 7.2-ubuntu Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i686-linux-gnu". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... Reading symbols from /root/ubuntu_kernel/singlethread2e.g...(no debugging symbols found)...done. [New Thread 15412] Core was generated by `/root/ubuntu_kernel/singlethread2e.g'. Program terminated with signal 3, Quit. #0 0xb7fff416 in __kernel_vsyscall () (gdb) bt #0 0xb7fff416 in __kernel_vsyscall () #1 0x080530d2 in __write_nocancel () #2 0x08069141 in _IO_new_file_write () #3 0x08068e2c in new_do_write () #4 0x080690ed in _IO_new_do_write () #5 0x08069ad5 in _IO_new_file_overflow () #6 0x08068f67 in _IO_new_file_xsputn () #7 0x0805bfe5 in vfprintf () #8 0x08048e01 in printf () #9 0x080482ed in main () (gdb) Any ideas of why dynamic linking is not producing good backtraces on ubuntu but does on debian? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/680588 Title: gcore produces core file without backtrace capability -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs