I have some compiled libraries i.e. shared library (*.so) on x86 Linux and I want to quickly determine whether they were compiled with debugging symbols (i.e with -g/debug option) or not. How to check it? Answer You can use the file command to see if a file is stripped. Basically, this means that the debugging symbols are there or not.
Tag: debugging
Tracking php process on framework
I have a php framework is running on linux machine basicly every requests redirect to index.php by .htaccess One of my php started to run %100 CPU i want to track which progress is that but when i check process with ps aux | grep 23791 As normal, request redirect to index.php.But i have to find which request is this.
Find which program caused a core dump file
I’ve been going through intense program/package installation recently, so I can’t tell for sure which of the newly installed programs (or old programs) caused the appearance of a core file in my home folder. It’s a server, so I better find out any possible sources of instability on the machine. Answer You can simply use the file program to identify
How can I use the Perl debugger’s *supported* editor?
The Perl debugger always says: “Editor support available”. I believe every one can see this, but how can I use it? By the way, I got the above prompt on a Linux/UbuntuĀ 11.04 (Natty Narwhal) machine. Answer The message is a little confusing. It’s telling you it can support running inside an editor, not that there is a special Perl debugger
How to debug the init_module() call of a Linux kernel module?
I am doing first steps into Linux kernel development. I have some code producing a .ko kernel module that I install with insmod. I would like a way to debug what happens when I install the module but I am facing some difficulties. I need to debug the call to init_module. Is this function called when I run insmode ?
Prohibit unaligned memory accesses on x86/x86_64
I want to emulate the system with prohibited unaligned memory accesses on the x86/x86_64. Is there some debugging tool or special mode to do this? I want to run many (CPU-intensive) tests on the several x86/x86_64 PCs when working with software (C/C++) designed for SPARC or some other similar CPU. But my access to Sparc is limited. As I know,
I need to debug PHP. What is my best choice?
I’m working on a web site under a Linux environment (Debian). I’m not an expert at Linux but I can handle it, and the website is made using PHP, MySQL, HTML, etc. The thing is, I’m using PHP for the server side. Right now, for testing, I installed Apache on my PC so I can test everything. But, it would
how do I find out what program’s on the other end of a local socket?
A process on my Linux system, strace tells me, is talking on a socket which has file descriptor 10. lsof tells me that this is a unix socket with inode 11085, and netstat further tells me that inode 11085 a stream socket, and that it’s connected. Given that this process doesn’t have any other threads, there must therefore be another