Opened 12 years ago
Closed 12 years ago
Last modified 12 years ago
#11504 closed Bug Report - General (fixed)
mythfrontend crashes on mac
Reported by: | JYA | Owned by: | danielk |
---|---|---|---|
Priority: | minor | Milestone: | 0.27 |
Component: | MythTV - General | Version: | Master Head |
Severity: | high | Keywords: | |
Cc: | Ticket locked: | no |
Description
Current master will always crash in SSDP instance on mac... Crashes never occurs in exactly the same location, but always in the thread running SSDP, in ProcessData?
(gdb) bt #0 0x00007fff8ce52212 in __pthread_kill () #1 0x00007fff8b226b54 in pthread_kill () #2 0x00007fff8b26adce in abort () #3 0x00007fff8b246905 in szone_error () #4 0x00007fff8b24b3ed in tiny_malloc_from_free_list () #5 0x00007fff8b24bb38 in szone_malloc_should_clear () #6 0x00007fff8b23e1b3 in malloc_zone_malloc () #7 0x00007fff8b23ec07 in malloc () #8 0x00007fff92085347 in operator new () #9 0x0000000106ba5334 in QHostAddress::QHostAddress () #10 0x0000000102740b4c in qt_socket_getportaddr (sa=0x10b580930, port=0x10813ac18, addr=0x10813ac20) at msocketdevice_unix.cpp:114 #11 0x00000001027407ff in MSocketDevice::readData (this=0x10813abf0, data=0x1081367e8 "HTTP/1.1 200 OK\r\nCACHE-CONTROL: max-age=\001\n\250\300", maxlen=896) at msocketdevice_unix.cpp:1038 #12 0x0000000106d8b023 in QIODevice::read () #13 0x000000010275b060 in MSocketDevice::readBlock (this=0x10813abf0, data=0x1081367e8 "HTTP/1.1 200 OK\r\nCACHE-CONTROL: max-age=\001\n\250\300", maxlen=896) at msocketdevice.h:124 #14 0x0000000102756465 in SSDP::ProcessData (this=0x1082719d0, pSocket=0x10813abf0) at ssdp.cpp:326 #15 0x00000001027562ee in SSDP::run (this=0x1082719d0) at ssdp.cpp:301 #16 0x00000001028ba49a in MThreadInternal::run (this=0x108271a40) at mthread.cpp:79 #17 0x0000000106cee4ba in QThreadPrivate::start () #18 0x00007fff8b2257a2 in _pthread_start () #19 0x00007fff8b2121e1 in thread_start ()
Attachments (1)
Change History (7)
comment:1 Changed 12 years ago by
comment:2 Changed 12 years ago by
another backtrace:
(gdb) bt #0 0x00007fff8ce52212 in __pthread_kill () #1 0x00007fff8b226b54 in pthread_kill () #2 0x00007fff8b26adce in abort () #3 0x00007fff8b246905 in szone_error () #4 0x00007fff8b24b3ed in tiny_malloc_from_free_list () #5 0x00007fff8b24bb38 in szone_malloc_should_clear () #6 0x00007fff8b23e1b3 in malloc_zone_malloc () #7 0x00007fff8b23ec07 in malloc () #8 0x0000000106d3f8b2 in QString::QString () #9 0x0000000106d3f9cb in QString::mid () #10 0x0000000106d48d94 in QString::split () #11 0x00000001027569c0 in SSDP::ProcessData (this=0x107663020, pSocket=0x107660a80) at ssdp.cpp:358 #12 0x00000001027562ee in SSDP::run (this=0x107663020) at ssdp.cpp:301 #13 0x00000001028ba49a in MThreadInternal::run (this=0x107663090) at mthread.cpp:79 #14 0x0000000106cee4ba in QThreadPrivate::start () #15 0x00007fff8b2257a2 in _pthread_start () #16 0x00007fff8b2121e1 in thread_start () (gdb)
comment:3 Changed 12 years ago by
Looks like it's always reading the maximum size, making it write much data than the buffer can contain.
suggested patch attached
comment:5 Changed 12 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:6 Changed 12 years ago by
Milestone: | unknown → 0.27 |
---|
Note: See
TracTickets for help on using
tickets.
Here is the console output: