pCell = (stRingBufferCell *)m_pWrite;
pCell->iMagic = NT_RB_CELL_MAGIC;
pCell->iLength = uBufLen;
pCell->pNext = NULL;
RBF_ERROR("pCell->iMagic(%#x, %#x), uBufLen(%d)\n", pCell->iMagic, NT_RB_CELL_MAGIC, uBufLen);
560 in rtspserver/ringbuffer.cpp
(gdb) p *pCell
Cannot access memory at address 0x0
(gdb) n
561 in rtspserver/ringbuffer.cpp
(gdb) p *pCell
$12 = {iMagic = 3452816845, iLength = 3452816845, pNext = 0xcdcdcdcd}
(gdb) n
562 in rtspserver/ringbuffer.cpp
(gdb) p *pCell
$13 = {iMagic = 3450580426, iLength = 3452816845, pNext = 0xcdcdcdcd}
(gdb) n
563 in rtspserver/ringbuffer.cpp
(gdb) p *pCell
$14 = {iMagic = 1068215754, iLength = 3439329444, pNext = 0xcdcdcdcd}
(gdb) n
565 in rtspserver/ringbuffer.cpp
(gdb) p *pCell
$15 = {iMagic = 1068215754, iLength = 164, pNext = 0xcd000000}
(gdb) n
pCell->iMagic(0xfeabadca, 0xabadcafe), uBufLen(42047)
568 in rtspserver/ringbuffer.cpp
(gdb) p *pCell
$16 = {iMagic = 1068215754, iLength = 164, pNext = 0xcd000000}
(gdb) p pCell
$17 = (stRingBufferCell *) 0x40c9c0b9
注1: 以上是 armv5的问题, armv7似乎没发现这个问题
注2: malloc 返回的内存地址是偶数对齐的
阅读(1851) | 评论(0) | 转发(0) |