* random results with the gdb testsuite
@ 2008-10-09 9:20 Denis PILAT
2008-10-09 11:25 ` teawater
2008-10-09 18:37 ` Thiago Jung Bauermann
0 siblings, 2 replies; 14+ messages in thread
From: Denis PILAT @ 2008-10-09 9:20 UTC (permalink / raw)
To: gdb-patches
Hi all
I am having random results using the gdb testsuite (with dejagnu 1.4.4),
especially for some test like gdb.base/display.exp ,
gdb.base/long_long.exp and gdb.cp/ctti.exp.
Sometime they are successful, sometime 50% fails.
Has anybody already experimented such random behavior ?
Thanks for your answer.
Denis
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: random results with the gdb testsuite
2008-10-09 9:20 random results with the gdb testsuite Denis PILAT
@ 2008-10-09 11:25 ` teawater
2008-10-09 17:38 ` Michael Snyder
2008-10-10 8:23 ` Denis PILAT
2008-10-09 18:37 ` Thiago Jung Bauermann
1 sibling, 2 replies; 14+ messages in thread
From: teawater @ 2008-10-09 11:25 UTC (permalink / raw)
To: Denis PILAT; +Cc: gdb-patches
I test them in GDB-cvs version a lot of times but not got any fail.
Which testsuite and wich GDB did use?
And maybe you can post your "gdb.log" if you don't mind.
BTW Maybe you need post this mail to gdb@sourceware.org.
On Thu, Oct 9, 2008 at 17:19, Denis PILAT <denis.pilat@st.com> wrote:
> Hi all
>
> I am having random results using the gdb testsuite (with dejagnu 1.4.4),
> especially for some test like gdb.base/display.exp ,
> gdb.base/long_long.exp and gdb.cp/ctti.exp.
> Sometime they are successful, sometime 50% fails.
>
> Has anybody already experimented such random behavior ?
> Thanks for your answer.
> Denis
>
>
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: random results with the gdb testsuite
2008-10-09 11:25 ` teawater
@ 2008-10-09 17:38 ` Michael Snyder
2008-10-10 8:23 ` Denis PILAT
1 sibling, 0 replies; 14+ messages in thread
From: Michael Snyder @ 2008-10-09 17:38 UTC (permalink / raw)
To: Denis PILAT; +Cc: gdb-patches
I haven't seen those failures.
teawater wrote:
> I test them in GDB-cvs version a lot of times but not got any fail.
> Which testsuite and wich GDB did use?
> And maybe you can post your "gdb.log" if you don't mind.
>
> BTW Maybe you need post this mail to gdb@sourceware.org.
>
> On Thu, Oct 9, 2008 at 17:19, Denis PILAT <denis.pilat@st.com> wrote:
>> Hi all
>>
>> I am having random results using the gdb testsuite (with dejagnu 1.4.4),
>> especially for some test like gdb.base/display.exp ,
>> gdb.base/long_long.exp and gdb.cp/ctti.exp.
>> Sometime they are successful, sometime 50% fails.
>>
>> Has anybody already experimented such random behavior ?
>> Thanks for your answer.
>> Denis
>>
>>
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: random results with the gdb testsuite
2008-10-09 9:20 random results with the gdb testsuite Denis PILAT
2008-10-09 11:25 ` teawater
@ 2008-10-09 18:37 ` Thiago Jung Bauermann
1 sibling, 0 replies; 14+ messages in thread
From: Thiago Jung Bauermann @ 2008-10-09 18:37 UTC (permalink / raw)
To: Denis PILAT; +Cc: gdb-patches
El jue, 09-10-2008 a las 11:19 +0200, Denis PILAT escribió:
> I am having random results using the gdb testsuite (with dejagnu 1.4.4),
> especially for some test like gdb.base/display.exp ,
> gdb.base/long_long.exp and gdb.cp/ctti.exp.
> Sometime they are successful, sometime 50% fails.
Yes for display.exp, no for the other two.
> Has anybody already experimented such random behavior ?
I definitely see random results in testsuite runs on ppc-linux and
ppc64-linux. This is an outdated and incomplete list of testcases which
randomly fail for me:
gdb.base/display.exp
gdb.base/checkpoint.exp
gdb.base/multi-forks.exp
gdb.threads/schedlock.exp
gdb.threads/watchthreads2.exp
There was some work recently to fix some random failures in the
testsuite, so maybe a few of the above are fixed by now, haven't
checked.
--
[]'s
Thiago Jung Bauermann
IBM Linux Technology Center
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: random results with the gdb testsuite
2008-10-09 11:25 ` teawater
2008-10-09 17:38 ` Michael Snyder
@ 2008-10-10 8:23 ` Denis PILAT
2008-10-10 11:38 ` Mark Kettenis
2008-10-10 12:36 ` Daniel Jacobowitz
1 sibling, 2 replies; 14+ messages in thread
From: Denis PILAT @ 2008-10-10 8:23 UTC (permalink / raw)
To: teawater, gdb-patches
Here is part of the log file. At a specific time (p/f *(long long *))
it seems like the debugger hangs up, then all further test are UNRESOLVED.
If I run this test and don't touch my keyboard, don't switch the current
window, then it's 100% successful.
If I'm using the console window intensively after having run this test,
switching window, using keyboard, then I get the following log where
apparently my debugger crash, or just close.
I can't find a way to debug that problem.
Of course all test passed well if executed by hand !
I'm using gdb 6.8 testsuite, hosted on linux with an internal ST
debugger based as well on gdb6.8.
$63 = 100100011010001010110011110001001101010111100110111101111
(gdb) PASS: gdb.base/long_long.exp: p/t *(long long *)ll
p/a *(long long *)ll
$64 = 0x89abcdef
(gdb) PASS: gdb.base/long_long.exp: p/a *(long long *)ll
p/f *(long long *)ll
$65 = 3.5127005640885037e-303
(gdb) PASS: gdb.base/long_long.exp: p/f *(long long *)ll
p/c *(long long *)ll
$66 = -17 'ERROR: Process no longer exists
UNRESOLVED: gdb.base/long_long.exp: p/c *(long long *)ll
ERROR: Couldn't send x/w w to GDB.
UNRESOLVED: gdb.base/long_long.exp: set examine size to w
ERROR: Couldn't send x/x w to GDB.
...
--
Denis
teawater wrote:
> I test them in GDB-cvs version a lot of times but not got any fail.
> Which testsuite and wich GDB did use?
> And maybe you can post your "gdb.log" if you don't mind.
>
> BTW Maybe you need post this mail to gdb@sourceware.org.
>
> On Thu, Oct 9, 2008 at 17:19, Denis PILAT <denis.pilat@st.com> wrote:
>
>> Hi all
>>
>> I am having random results using the gdb testsuite (with dejagnu 1.4.4),
>> especially for some test like gdb.base/display.exp ,
>> gdb.base/long_long.exp and gdb.cp/ctti.exp.
>> Sometime they are successful, sometime 50% fails.
>>
>> Has anybody already experimented such random behavior ?
>> Thanks for your answer.
>> Denis
>>
>>
>>
>
>
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: random results with the gdb testsuite
2008-10-10 8:23 ` Denis PILAT
@ 2008-10-10 11:38 ` Mark Kettenis
2008-10-10 12:56 ` Denis PILAT
2008-10-10 12:36 ` Daniel Jacobowitz
1 sibling, 1 reply; 14+ messages in thread
From: Mark Kettenis @ 2008-10-10 11:38 UTC (permalink / raw)
To: denis.pilat; +Cc: teawater, gdb-patches
> Date: Fri, 10 Oct 2008 10:22:50 +0200
> From: Denis PILAT <denis.pilat@st.com>
>
> Here is part of the log file. At a specific time (p/f *(long long *))
> it seems like the debugger hangs up, then all further test are UNRESOLVED.
That almost certainly means GDB crashed, which means there is a bug in
our code.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: random results with the gdb testsuite
2008-10-10 8:23 ` Denis PILAT
2008-10-10 11:38 ` Mark Kettenis
@ 2008-10-10 12:36 ` Daniel Jacobowitz
2008-10-10 12:54 ` Denis PILAT
1 sibling, 1 reply; 14+ messages in thread
From: Daniel Jacobowitz @ 2008-10-10 12:36 UTC (permalink / raw)
To: Denis PILAT; +Cc: teawater, gdb-patches
On Fri, Oct 10, 2008 at 10:22:50AM +0200, Denis PILAT wrote:
> Here is part of the log file. At a specific time (p/f *(long long *)) it
> seems like the debugger hangs up, then all further test are UNRESOLVED.
>
> If I run this test and don't touch my keyboard, don't switch the current
> window, then it's 100% successful.
>
> If I'm using the console window intensively after having run this test,
> switching window, using keyboard, then I get the following log where
> apparently my debugger crash, or just close.
> I can't find a way to debug that problem.
Normally Windows (you did say this was Windows, right?) can be
configured to pop up a dialog when a program crashes. You can't
necessarily get into GDB from there, but you may be able to get some
kind of dump. I think the Cygwin folks have instructions on getting
stack dumps or even core dumps from that point.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: random results with the gdb testsuite
2008-10-10 12:36 ` Daniel Jacobowitz
@ 2008-10-10 12:54 ` Denis PILAT
2008-10-10 13:03 ` Daniel Jacobowitz
2008-10-10 17:40 ` Michael Snyder
0 siblings, 2 replies; 14+ messages in thread
From: Denis PILAT @ 2008-10-10 12:54 UTC (permalink / raw)
To: Daniel Jacobowitz; +Cc: teawater, gdb-patches
Daniel Jacobowitz wrote:
> On Fri, Oct 10, 2008 at 10:22:50AM +0200, Denis PILAT wrote:
>
>> Here is part of the log file. At a specific time (p/f *(long long *)) it
>> seems like the debugger hangs up, then all further test are UNRESOLVED.
>>
>> If I run this test and don't touch my keyboard, don't switch the current
>> window, then it's 100% successful.
>>
>> If I'm using the console window intensively after having run this test,
>> switching window, using keyboard, then I get the following log where
>> apparently my debugger crash, or just close.
>> I can't find a way to debug that problem.
>>
>
> Normally Windows (you did say this was Windows, right?) can be
> configured to pop up a dialog when a program crashes. You can't
> necessarily get into GDB from there, but you may be able to get some
> kind of dump. I think the Cygwin folks have instructions on getting
> stack dumps or even core dumps from that point.
>
Sorry, I said window but not in the Microsoft sense. I'm using kde in a
linux RHEL3.
My debugger terminates, but I can't determine how, valgrind detects
nothing, it's like if the process is "killed -9".
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: random results with the gdb testsuite
2008-10-10 11:38 ` Mark Kettenis
@ 2008-10-10 12:56 ` Denis PILAT
0 siblings, 0 replies; 14+ messages in thread
From: Denis PILAT @ 2008-10-10 12:56 UTC (permalink / raw)
To: Mark Kettenis; +Cc: teawater, gdb-patches
Mark Kettenis wrote:
>> Date: Fri, 10 Oct 2008 10:22:50 +0200
>> From: Denis PILAT <denis.pilat@st.com>
>>
>> Here is part of the log file. At a specific time (p/f *(long long *))
>> it seems like the debugger hangs up, then all further test are UNRESOLVED.
>>
>
> That almost certainly means GDB crashed, which means there is a bug in
> our code.
>
>
>
I would say, in *my* code since I'm the only one who got this problem ...
My problem is how to debug that.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: random results with the gdb testsuite
2008-10-10 12:54 ` Denis PILAT
@ 2008-10-10 13:03 ` Daniel Jacobowitz
2008-10-10 13:06 ` Denis PILAT
2008-10-10 17:40 ` Michael Snyder
1 sibling, 1 reply; 14+ messages in thread
From: Daniel Jacobowitz @ 2008-10-10 13:03 UTC (permalink / raw)
To: Denis PILAT; +Cc: teawater, gdb-patches
On Fri, Oct 10, 2008 at 02:53:23PM +0200, Denis PILAT wrote:
> Sorry, I said window but not in the Microsoft sense. I'm using kde in a
> linux RHEL3.
> My debugger terminates, but I can't determine how, valgrind detects
> nothing, it's like if the process is "killed -9".
Unless your ulimit is messed up, you should get a core dump after this
happens.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: random results with the gdb testsuite
2008-10-10 13:03 ` Daniel Jacobowitz
@ 2008-10-10 13:06 ` Denis PILAT
0 siblings, 0 replies; 14+ messages in thread
From: Denis PILAT @ 2008-10-10 13:06 UTC (permalink / raw)
To: Denis PILAT, teawater, gdb-patches
Daniel Jacobowitz wrote:
> On Fri, Oct 10, 2008 at 02:53:23PM +0200, Denis PILAT wrote:
>
>> Sorry, I said window but not in the Microsoft sense. I'm using kde in a
>> linux RHEL3.
>> My debugger terminates, but I can't determine how, valgrind detects
>> nothing, it's like if the process is "killed -9".
>>
>
> Unless your ulimit is messed up, you should get a core dump after this
> happens.
>
No, I already checked, it's "coredumpsize unlimited".
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: random results with the gdb testsuite
2008-10-10 12:54 ` Denis PILAT
2008-10-10 13:03 ` Daniel Jacobowitz
@ 2008-10-10 17:40 ` Michael Snyder
2008-10-13 8:20 ` Denis PILAT
1 sibling, 1 reply; 14+ messages in thread
From: Michael Snyder @ 2008-10-10 17:40 UTC (permalink / raw)
To: Denis PILAT; +Cc: Daniel Jacobowitz, teawater, gdb-patches
Denis PILAT wrote:
>
> Daniel Jacobowitz wrote:
>> On Fri, Oct 10, 2008 at 10:22:50AM +0200, Denis PILAT wrote:
>>
>>> Here is part of the log file. At a specific time (p/f *(long long *)) it
>>> seems like the debugger hangs up, then all further test are UNRESOLVED.
>>>
>>> If I run this test and don't touch my keyboard, don't switch the current
>>> window, then it's 100% successful.
>>>
>>> If I'm using the console window intensively after having run this test,
>>> switching window, using keyboard, then I get the following log where
>>> apparently my debugger crash, or just close.
>>> I can't find a way to debug that problem.
>>>
>> Normally Windows (you did say this was Windows, right?) can be
>> configured to pop up a dialog when a program crashes. You can't
>> necessarily get into GDB from there, but you may be able to get some
>> kind of dump. I think the Cygwin folks have instructions on getting
>> stack dumps or even core dumps from that point.
>>
> Sorry, I said window but not in the Microsoft sense. I'm using kde in a
> linux RHEL3.
> My debugger terminates, but I can't determine how, valgrind detects
> nothing, it's like if the process is "killed -9".
What happens if you run gdb by hand, and repeat each command
from the log?
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: random results with the gdb testsuite
2008-10-10 17:40 ` Michael Snyder
@ 2008-10-13 8:20 ` Denis PILAT
2008-10-13 19:26 ` Michael Snyder
0 siblings, 1 reply; 14+ messages in thread
From: Denis PILAT @ 2008-10-13 8:20 UTC (permalink / raw)
To: Michael Snyder; +Cc: Daniel Jacobowitz, teawater, gdb-patches
Michael Snyder wrote:
> Denis PILAT wrote:
>>
>> Daniel Jacobowitz wrote:
>>> On Fri, Oct 10, 2008 at 10:22:50AM +0200, Denis PILAT wrote:
>>>
>>>> Here is part of the log file. At a specific time (p/f *(long long
>>>> *)) it
>>>> seems like the debugger hangs up, then all further test are
>>>> UNRESOLVED.
>>>>
>>>> If I run this test and don't touch my keyboard, don't switch the
>>>> current
>>>> window, then it's 100% successful.
>>>>
>>>> If I'm using the console window intensively after having run this
>>>> test,
>>>> switching window, using keyboard, then I get the following log where
>>>> apparently my debugger crash, or just close.
>>>> I can't find a way to debug that problem.
>>>>
>>> Normally Windows (you did say this was Windows, right?) can be
>>> configured to pop up a dialog when a program crashes. You can't
>>> necessarily get into GDB from there, but you may be able to get some
>>> kind of dump. I think the Cygwin folks have instructions on getting
>>> stack dumps or even core dumps from that point.
>>>
>> Sorry, I said window but not in the Microsoft sense. I'm using kde in a
>> linux RHEL3.
>> My debugger terminates, but I can't determine how, valgrind detects
>> nothing, it's like if the process is "killed -9".
>
> What happens if you run gdb by hand, and repeat each command
> from the log?
Everything's fine if done by hand. I get the testsuite expected results.
Like if I run the test without doind anything else on my linux.
>
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: random results with the gdb testsuite
2008-10-13 8:20 ` Denis PILAT
@ 2008-10-13 19:26 ` Michael Snyder
0 siblings, 0 replies; 14+ messages in thread
From: Michael Snyder @ 2008-10-13 19:26 UTC (permalink / raw)
To: Denis PILAT; +Cc: Daniel Jacobowitz, teawater, gdb-patches
Denis PILAT wrote:
>
> Michael Snyder wrote:
>> Denis PILAT wrote:
>>> Daniel Jacobowitz wrote:
>>>> On Fri, Oct 10, 2008 at 10:22:50AM +0200, Denis PILAT wrote:
>>>>
>>>>> Here is part of the log file. At a specific time (p/f *(long long
>>>>> *)) it
>>>>> seems like the debugger hangs up, then all further test are
>>>>> UNRESOLVED.
>>>>>
>>>>> If I run this test and don't touch my keyboard, don't switch the
>>>>> current
>>>>> window, then it's 100% successful.
>>>>>
>>>>> If I'm using the console window intensively after having run this
>>>>> test,
>>>>> switching window, using keyboard, then I get the following log where
>>>>> apparently my debugger crash, or just close.
>>>>> I can't find a way to debug that problem.
>>>>>
>>>> Normally Windows (you did say this was Windows, right?) can be
>>>> configured to pop up a dialog when a program crashes. You can't
>>>> necessarily get into GDB from there, but you may be able to get some
>>>> kind of dump. I think the Cygwin folks have instructions on getting
>>>> stack dumps or even core dumps from that point.
>>>>
>>> Sorry, I said window but not in the Microsoft sense. I'm using kde in a
>>> linux RHEL3.
>>> My debugger terminates, but I can't determine how, valgrind detects
>>> nothing, it's like if the process is "killed -9".
>> What happens if you run gdb by hand, and repeat each command
>> from the log?
> Everything's fine if done by hand. I get the testsuite expected results.
> Like if I run the test without doind anything else on my linux.
Ah, how frustrating. I have occasionally run into that type
of behavior. It can be very challenging to debug. It implies
that the testing framework itself is perturbing the system.
Could be timing issues, could be memory locations being shifted around.
There's a load address randomization feature in modern linuxen,
have you tried disabling that?
Other than that, sticking "printfs" into the expect scripts...
;-(
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2008-10-13 19:26 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-09 9:20 random results with the gdb testsuite Denis PILAT
2008-10-09 11:25 ` teawater
2008-10-09 17:38 ` Michael Snyder
2008-10-10 8:23 ` Denis PILAT
2008-10-10 11:38 ` Mark Kettenis
2008-10-10 12:56 ` Denis PILAT
2008-10-10 12:36 ` Daniel Jacobowitz
2008-10-10 12:54 ` Denis PILAT
2008-10-10 13:03 ` Daniel Jacobowitz
2008-10-10 13:06 ` Denis PILAT
2008-10-10 17:40 ` Michael Snyder
2008-10-13 8:20 ` Denis PILAT
2008-10-13 19:26 ` Michael Snyder
2008-10-09 18:37 ` Thiago Jung Bauermann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox