Difference between revisions of "QA/Debugging"

From Wiki [en] OpenMandriva
< QA
Jump to: navigation, search
Line 4: Line 4:
  
 
{{Obsolete|must be updated}}
 
{{Obsolete|must be updated}}
 +
 +
Need developers to help edit this page. (Ben79 2019-08-19)
  
 
= Debugging Information =
 
= Debugging Information =

Revision as of 02:07, 20 August 2019

Warn02.png
This wiki article may have one or more issues, and require cleanup or review in order to comply with the OpenMandriva Wiki Quality Standards.
Please help improve it or discuss these issues on the talk page. The following reason was given: Under Construction

G4217.png


Warn02.png
This article is now obsolete
must be updated

Need developers to help edit this page. (Ben79 2019-08-19)

Debugging Information

There are numerous ways to detect and debug quality assurance issues. A list of these ways are found below.


Valgrind

Warn02.png
This article is now obsolete
must be updated

When an application crashes, it is most often helpful to retrieve a backtrace, which shows the application state up to its crash.

The valgrind package must be installed, as well as any relevant *-debuginfo packages.

You should use the following script to debug:

#!/bin/sh
# Thanks to Jeffrey Johnson for this script.

valgrind -v --tool=memcheck --leak-check=full --show-reachable=yes --track-origins=yes $*

It may be handy to save this script to the PATH (don't forget to chmod +x it).

Then, run:

[path to script] [application, parameters, etc] &> /tmp/valgrind

You will be able to examine /tmp/valgrind for the backtrace, as well as other memory elements.

Examining Package File Ownership

Sometimes, the problem can be traced back to a file, bundled by the package.

A simple query can help you figure out the package that provided that file:

rpm -qf [path to file]

Note: If there are user modifications to the file, reinstall the package to make sure you're inspecting the package-provided version.


Inspecting Dependency Problems or File Conflicts

Warn02.png
This article is now obsolete
must be updated

We can use FBA (Frontend Brother of ABF) to inspect the repositories and collect information about the current state and issues.


For dependency problems, we can inspect RepoClosure for:

Version Arch Link
Lx 3.0 i586 Link
Lx 3.0 x86_64 Link
Cooker i586 Link
Cooker x86_64 Link


And for File Conflicts:

Version Arch Link
Cooker i586 Link
Cooker x86_64 Link

Note: There may be problems for one architecture, but not another. Be sure to check both!