No stack trace with libthread_db

Hello,
When I get a segfault on my Ubuntu platform the stack trace does not get generated (example below). Is this a problem specific to the Ubuntu platform or is there a simple fix. I have tried to find information about this but failed.


*** Break *** segmentation violation
Using host libthread_db library “/lib/tls/i686/cmov/libthread_db.so.1”.
Attaching to program: /proc/20146/exe, process 20146
ptrace: Operation not permitted.
/home/artur/HLT-project/testData/20146: No such file or directory.
error detected on stdin


Thanks

Artur