I'm debugging my application under Debian 4.0 using DDD/GDB and many times the data produced by GDB backtrace is barely useful, 'cause i see something like
Code:
#3 0xae550ac8 in ?? ()
As far as I understand the problem is that standard libraries, supplied with Debian are stripped. I found on the Web some post that suggest running the program against non-stripped libraries version by doing:
Code:
LD_LIBRARY_PATH=/usr/lib/debug
export LD_LIBRARY_PATH
prior to running the program.
Unfortunately when I do that, my program fails at the following line (that works perfectly fine with normal libraries):
Code:
m_Semaphore = sem_open("/ipmgr",O_RDWR | O_CREAT,0666,1);
I get SEM_FAILED and errno is set to EINVAL, which means that value (1) is too big (pretty absurd).
Is there anything that I'm doing wrong?
Thank you in advance,
Alex