Re: [HACKERS] Stack trace

2008-11-17 Thread Hannes Eder
On Mon, Nov 17, 2008 at 7:08 AM, Bramandia Ramadhana <[EMAIL PROTECTED]> wrote: > Hm the backtrace() method does not give the line numbers of the methods in > the stack trace, it only gives the hexadecimal offset. Is there anyway to > retrieve the line numbers? the binutil addr2line should do the

Re: [HACKERS] Stack trace

2008-11-17 Thread Bramandia Ramadhana
Yes, I use --enable-debug as an option in configure Regards, Bramandia R. On Mon, Nov 17, 2008 at 2:11 PM, Tom Lane <[EMAIL PROTECTED]> wrote: > "Bramandia Ramadhana" <[EMAIL PROTECTED]> writes: > > Hm the backtrace() method does not give the line numbers of the methods > in > > the stack trace

Re: [HACKERS] Stack trace

2008-11-16 Thread Tom Lane
"Bramandia Ramadhana" <[EMAIL PROTECTED]> writes: > Hm the backtrace() method does not give the line numbers of the methods in > the stack trace, it only gives the hexadecimal offset. Is there anyway to > retrieve the line numbers? Did you build with --enable-debug? regard

Re: [HACKERS] Stack trace

2008-11-16 Thread Bramandia Ramadhana
Hm the backtrace() method does not give the line numbers of the methods in the stack trace, it only gives the hexadecimal offset. Is there anyway to retrieve the line numbers? I have tried to Google it but to no avail. Regards, Bramandia R. On Tue, Nov 4, 2008 at 12:26 PM, Emmanuel Cecchet <[EM

Re: [HACKERS] Stack trace

2008-11-03 Thread Emmanuel Cecchet
Bramandia Ramadhana wrote: Is there any way to print out the stack trace of the current location? Not sure if Postgres has something in the utils for that. You can use backtrace() in glibc. Solaris 9 libc has printstack(). Not sure what's available for Windows. I am looking for something like p

[HACKERS] Stack trace

2008-11-03 Thread Bramandia Ramadhana
Hi all, Is there any way to print out the stack trace of the current location? I am looking for something like print_stack_trace(); that I can insert in arbitrary location in the code. Thank you, Regards, Bramandia R.