Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 158166 Details for
Bug 233853
attach will start to hang on SIGSTOPped processes
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Fix the gdb-6.5-23.el5 testcase `gdb.threads/attach-into-signal'.
gdb-6.5-23-bz233853-testcase-fix.patch (text/plain), 1.91 KB, created by
Jan Kratochvil
on 2007-06-28 22:37:10 UTC
(
hide
)
Description:
Fix the gdb-6.5-23.el5 testcase `gdb.threads/attach-into-signal'.
Filename:
MIME Type:
Creator:
Jan Kratochvil
Created:
2007-06-28 22:37:10 UTC
Size:
1.91 KB
patch
obsolete
>--- gdb-6.5-orig/gdb/testsuite/gdb.threads/attach-into-signal.exp 2007-06-28 23:27:23.000000000 +0200 >+++ sources/gdb/testsuite/gdb.threads/attach-into-signal.exp 2007-06-29 00:34:49.000000000 +0200 >@@ -65,6 +65,27 @@ > > # Start with clean gdb > gdb_exit >+ >+ set stoppedtry 0 >+ while { $stoppedtry < 10 } { >+ set fileid [open /proc/${testpid}/status r]; >+ gets $fileid line1; >+ gets $fileid line2; >+ close $fileid; >+ >+ if {![string match "*(stopped)*" $line2]} { >+ # No PASS message as we may be looping in multiple attempts. >+ break >+ } >+ sleep 1 >+ set stoppedtry [expr $stoppedtry + 1] >+ } >+ if { $stoppedtry >= 10 } { >+ verbose -log $line2 >+ set test "$threadtype: process is still running on the attempt # $attempt of $attempts" >+ break >+ } >+ > gdb_start > gdb_reinitialize_dir $srcdir/$subdir > gdb_load ${binfile} >@@ -115,7 +136,11 @@ > } > } > if {$passes < 3} { >- fail $test >+ if {$attempt >= $attempts} { >+ unresolved $test >+ } else { >+ fail $test >+ } > } > > # Exit and detach the process. >@@ -142,8 +167,10 @@ > > corefunc nonthreaded > >-# build the test case first without threads >+# build the test case also with threads > # > if { [gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-DUSE_THREADS}] != "" } { > gdb_suppress_entire_file "Testcase threaded compile failed, so all tests in this file will automatically fail." > } >+ >+corefunc threaded >--- gdb-6.5-orig/gdb/testsuite/gdb.threads/attach-into-signal.c 2007-06-28 23:27:23.000000000 +0200 >+++ sources/gdb/testsuite/gdb.threads/attach-into-signal.c 2007-06-28 23:41:05.000000000 +0200 >@@ -41,6 +41,11 @@ > > raise (SIGALRM); > >+ /* It is an upstream kernel bug (2.6.22-rc4-git7.x86_64, PREEMPT, SMP). >+ We never get here without ptrace(2) but we get while under ptrace(2). */ >+ for (;;) >+ pause (); >+ > abort (); > /* NOTREACHED */ > return NULL;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 233853
: 158166