gdb.base/checkpoint.exp failures

Bug #615986 reported by Ulrich Weigand
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linaro GDB
Won't Fix
Low
Ulrich Weigand

Bug Description

FAIL: gdb.base/checkpoint.exp: break2 with many checkpoints (timeout)
FAIL: gdb.base/checkpoint.exp: info checkpoints with at least 600 checkpoints (timeout)
FAIL: gdb.base/checkpoint.exp: kill all one with many checkpoints (timeout)

Further analysis required.

Tags: testsuite
Revision history for this message
Yao Qi (yao-codesourcery) wrote :

No failures on pavo1.

Running /home/yao/maverick/home/yao/cvs/src/gdb/testsuite/gdb.base/checkpoint.exp ...

  === gdb Summary ===

# of expected passes 139
/home/yao/maverick/home/yao/cvs/build/gdb/testsuite/../../gdb/gdb version 7.2.50.20100819-cvs -nw -nx

Revision history for this message
Yao Qi (yao-codesourcery) wrote :

Still can't got any failure on Andrew's board, turn it into INVALID.

Running ../../../src/gdb/testsuite/gdb.base/checkpoint.exp ...

                === gdb Summary ===

# of expected passes 139
/home/yao/cvs/build/gdb/testsuite/../../gdb/gdb version 7.2.50.20100820-cvs -nw -nx

Changed in gdb-linaro:
status: New → Invalid
Revision history for this message
Ulrich Weigand (uweigand) wrote :

I can still reproduce problem reliably on GDB 7.2 on Loic's Beagleboard. Reopening ...

Changed in gdb-linaro:
status: Invalid → Confirmed
Revision history for this message
Ulrich Weigand (uweigand) wrote :

Hmm, it appears the system simply *is* slow. The test case creates > 600 checkpoints, by performing an inferior call to the "fork" function. Each such call apparently takes on the order of 1 second on the beagleboard, which means the test case actually requires more than 5 minutes to complete.

Raising the timeout values accordingly allows the tests to complete successfully.

It would be interesting to investigate whether the 1 sec per fork inferior call is just the way it is on that hardware, or if this is actually evidence of a performance problems somewhere else (kernel? gdb?) ...

Changed in gdb-linaro:
importance: Undecided → Low
Revision history for this message
Ulrich Weigand (uweigand) wrote :

One more data point: there is no timeout if running on a system with no (or inaccessible) debuginfo files for libc.

Maybe the slowness is not actually in the creation of the forks themselves, but in re-reading in the libc debuginfo for each newly created process?

Michael Hope (michaelh1)
tags: added: testsuite
Changed in gdb-linaro:
assignee: nobody → Ulrich Weigand (uweigand)
Revision history for this message
Ulrich Weigand (uweigand) wrote :

I'm setting this to Won't Fix since:
- the problem doesn't show up in the default installation (where libc-dbg is not installed)
- in any case, there is no real bug, GDB is just slow
- this slowness is not ARM specific, it is just exacerbated by running on a slow machine
- the GDB community is already working on various ways to speed up symbol loading

Changed in gdb-linaro:
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related blueprints

Remote bug watches

Bug watches keep track of this bug in other bug trackers.