[Bug dap/34548] New: gdb.dap/pause.exp hangs on Solaris

"ro at gcc dot gnu.org via Gdb-prs" <[email protected]>
Newsgroups gmane.comp.gdb.bugs.discuss
Message-ID <[email protected]/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=34548

            Bug ID: 34548
           Summary: gdb.dap/pause.exp hangs on Solaris
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: dap
          Assignee: unassigned at sourceware dot org
          Reporter: ro at gcc dot gnu.org
  Target Milestone: ---
            Target: *-*-solaris2.11

The gdb.dap/pause.exp hangs on Solaris, stopping make check until the pause
process is killed manually, which is pretty much an annoyance.

According to the log, thelast PASS is

PASS: gdb.dap/pause.exp: pause success

followed by

Content-Length: 196

{"type": "event", "event": "module", "body": {"reason": "removed", "module":
{"id": "/usr/lib/sparcv9/ld.so.1", "name": "/usr/lib/sparcv9/ld.so.1", "path":
"/usr/lib/sparcv9/ld.so.1"}}, "seq": 15}Content-Length: 171

{"type": "event", "event": "module", "body": {"reason": "new", "module": {"id":
"/lib/64/libm.so.2", "name": "/lib/64/libm.so.2", "path":
"/lib/64/libm.so.2"}}, "seq": 16}Content-Length: 171

{"type": "event", "event": "module", "body": {"reason": "new", "module": {"id":
"/lib/64/libc.so.1", "name": "/lib/64/libc.so.1", "path":
"/lib/64/libc.so.1"}}, "seq": 17}Content-Length: 180

{"type": "event", "event": "module", "body": {"reason": "new", "module": {"id":
"/lib/sparcv9/ld.so.1", "name": "/lib/sparcv9/ld.so.1", "path":
"/lib/sparcv9/ld.so.1"}}, "seq": 18}Content-Length: 93

{"type": "event", "event": "thread", "body": {"reason": "started", "threadId":
2}, "seq": 19}Content-Length: 104
M
{"type": "event", "event": "continued", "body": {"threadId": 2,
"allThreadsContinued": true}, "seq": 20}Content-Length: 104

{"type": "event", "event": "continued", "body": {"threadId": 2,
"allThreadsContinued": true}, "seq": 21}Content-Length: 104

[... many instances of the same ...]

"type": "event", "event": "continued", "body": {"threadId": 2,
"allThreadsContinued": true}, "seq": 1160}Content-Length: 122

{"type": "event", "event": "stopped", "body": {"threadId": 2,
"allThreadsStopped": true, "reason": "signal"}, "seq": 1161}FAIL:
gdb.dap/pause.exp: stopped by pause (checking body reason)
>>> {"seq": 7, "type": "request", "command": "evaluate", "arguments": {"expression": "do_nothing()"}}
Content-Length: 106

{"type": "event", "event": "continued", "body": {"threadId": 2,
"allThreadsContinued": true}, "seq": 1162}Content-Length: 106


{"type": "event", "event": "continued", "body": {"threadId": 2,
"allThreadsContinued": true}, "seq": 1163}ERROR: tcl error
sourcinggdb.dap/pause.exp.
ERROR: tcl error code NONE
ERROR: timeout reading json header
    while executing
"error "timeout reading json header""
    (procedure "_dap_read_json" line 26)
    invoked from within
"_dap_read_json"
    (procedure "dap_read_response" line 4)
    invoked from within
"dap_read_response $command $seq"
    (procedure "dap_request_and_response" line 3)
    invoked from within
"dap_request_and_response evaluate {o expression [s do_nothing()]}"
    (file "gdb.dap/pause.exp" line 67)
    invoked from within
"sourcegdb.dap/pause.exp"
    ("uplevel" body line 1)
    invoked from within
"uplevel #0 sourcegdb.dap/pause.exp"
    invoked from within
"catch "uplevel #0 source $test_file_name" msg"
UNRESOLVED: gdb.dap/pause.exp: testcase 'gdb.dap/pause.exp' aborted due to Tcl
error
PATH: gdb.dap/pause.exp: testcase 'gdb.dap/pause.exp' aborted due to Tcl error

I've no idea if there's an easy fix.  Otherwise all we can do right now seems
to be skip the test on Solaris: having to intervene manually is a no-go.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.