Opened 12 years ago

Closed 11 years ago

#5255 closed defect (fixed)

mythcontext.cpp, "index out of range" QList assert

Reported by: Alan Calvert <cal@…> Owned by: Anduin Withers
Priority: minor Milestone: 0.21.1
Component: mythtv Version: head
Severity: medium Keywords:
Cc: Ticket locked: no

Description

Trunk 17144. At mythcontext.cpp line 3340, I'm getting an assert on the test:- if (strlist[0] == "REJECT"). The preceding socket->readStringList(strlist, true) can fail for a number of reasons, in which case strlist will be empty, hence the assert.

There's a backtrace at <http://www.graggrag.com/?q=node/7>.

Attachments (1)

gdb.txt (13.9 KB) - added by Anduin Withers 12 years ago.

Download all attachments as: .zip

Change History (4)

comment:1 Changed 12 years ago by Anduin Withers

Milestone: unknown0.21.1
Owner: changed from Isaac Richards to Anduin Withers
Status: newassigned
Version: unknownhead

Changed 12 years ago by Anduin Withers

Attachment: gdb.txt added

comment:2 Changed 12 years ago by Anduin Withers

(In [17145]) References #5255

In MythContext::CheckProtoVersion?(), ensure the QStringList obtained from MythSocket::readStringList() isn't empty.

comment:3 Changed 11 years ago by stuartm

Resolution: fixed
Status: assignedclosed

(In [18430]) Backport [17145] to -fixes. Check that readStringList() returns a valid result in MythContext::CheckProtoVersion?(). Closes #5255

Note: See TracTickets for help on using tickets.