LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-15-2023, 01:07 PM   #16
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,339

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550

Quote:
Originally Posted by Jason.nix View Post
I have two questions:

1- I meant the final program. Suppose you run a program that you don't have access to its source code, but it doesn't run and you want to find out why. What should be done in this case?

2- What tools and techniques does someone whose job is a debugger use?
1. Send a bug report to the developer.

2. When debugging most people use memory dumps, file record dumps, error messages, log messages, the source code, and written documentation that explains the function of the program, the type of input expected by the program, and the type of output produced. Usually the written documentation is found as comments in the source code. Other sources of useful information is a description by the user or system administrator as to what they were trying to do with the program and what the results were.

Then there are debuggers (software, not people). They can be very useful but you have to set up a special test run to use the debugger. In most cases a programmer can find the bug using the above information faster than they can set up a debugger run.
 
Old 02-15-2023, 01:19 PM   #17
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,235

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
Quote:
2- What tools and techniques does someone whose job is a debugger use?
https://youtu.be/iUu1d1G4Vrw
 
Old 02-15-2023, 06:18 PM   #18
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,235

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
Seriously, though:

In the case of RStudio, you're not trying to fix the program. You're trying to fix the platform and environment that you're running RStudio on. And one way to do that is to just put it in a Docker.
 
Old 03-07-2023, 05:42 AM   #19
Jason.nix
Member
 
Registered: Feb 2023
Posts: 562

Original Poster
Rep: Reputation: 10
Quote:
Originally Posted by dugan View Post
A binary-only program crashes with no error messages when I try to start it?

I’d use “ldd” to check if the program is missing libraries, and also check if the crash shows up in “dmesg”.

You wouldn’t use a binary debugger for this. But since you’re curious about that world, well, here’s a book review:

https://dmfrsecurity.com/2021/12/29/...e-engineering/
Hello,
Thank you so much for your reply.
Yes.
I cleared the dmesg and run the program again, but no result:
Code:
$ sudo dmesg -C
$ sudo rstudio
$ sudo dmesg
$
And about the ldd cpommand:
Code:
$ sudo ldd -v rstudio 
	not a dynamic executable
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Effective debugging or improving ones debugging skills Ajit Gunge Programming 3 05-22-2009 09:29 AM
Difference between kernel - debugging and application debugging topworld Linux - Software 2 03-30-2006 12:50 AM
Visual Debugging and Linux Kernel Debugging Igor007 Programming 0 09-30-2005 10:33 AM
Debugging & performance analysis tools shilpig Linux - Software 2 05-23-2004 08:48 AM
Debugging and run time error checking tools for C/C++ on Linux Laury Yang Programming 1 07-24-2001 05:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration