Difference between revisions of "QA/Debugging"

From Wiki [en] OpenMandriva
< QA
Jump to: navigation, search
m
(Inspecting Dependency Problems or File Conflicts)
Line 38: Line 38:
  
  
=== Inspecting Dependency Problems or File Conflicts ===
+
=== Inspecting Dependency Problems or File Conflicts (obsolete) ===
  
 
We can use [http://fba.rosalinux.ru/ FBA (Frontend Brother of ABF)] to inspect the repositories and collect information about the current state and issues.
 
We can use [http://fba.rosalinux.ru/ FBA (Frontend Brother of ABF)] to inspect the repositories and collect information about the current state and issues.

Revision as of 09:01, 14 June 2016

G4217.png


Debugging Information

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


Valgrind

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 (obsolete)

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 RepoClosures for:

Version Arch 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!