On 06/05/15 22:19, Bill Fischofer wrote:
This series applies and builds fine, however with check-odp I'm seeing
consistent failures on the odp_pktio tests. I double checked and am
seeing the same with the base odp.git code so not sure what changed
(don't think these patches really changed anything in that regard).
hm, I can also reproduce fail with this patch applied:
Core was generated by `./odp_queue'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x0000000000402823 in _odp_buffer_type (buf=0x7ffc1b40d890) at
odp_buffer.c:47
47 return hdr->type;
(gdb) l
42
43 int _odp_buffer_type(odp_buffer_t buf)
44 {
45 odp_buffer_hdr_t *hdr = odp_buf_to_hdr(buf);
46
47 return hdr->type;
48 }
49
50 void _odp_buffer_type_set(odp_buffer_t buf, int type)
51 {
(gdb) p hdr
$1 = (odp_buffer_hdr_t *) 0x2b938bdb5480
(gdb) p hdr->type
Cannot access memory at address 0x2b938bdb549c
(gdb)
(gdb) bt
#0 0x0000000000402823 in _odp_buffer_type (buf=0x7ffc1b40d890) at
odp_buffer.c:47
#1 0x0000000000402b1e in odp_event_type (event=0x7ffc1b40d890) at
odp_event.c:22
#2 0x0000000000402b39 in odp_event_free (event=0x7ffc1b40d890) at
odp_event.c:27
#3 0x0000000000402296 in test_odp_queue_sunnyday () at odp_queue.c:96
#4 0x00002b933249f482 in run_single_test () from
/usr/local/lib/libcunit.so.1
#5 0x00002b933249f0b2 in run_single_suite () from
/usr/local/lib/libcunit.so.1
#6 0x00002b933249cd55 in CU_run_all_tests () from
/usr/local/lib/libcunit.so.1
#7 0x00002b93324a1245 in basic_run_all_tests () from
/usr/local/lib/libcunit.so.1
#8 0x00002b93324a0fe7 in CU_basic_run_tests () from
/usr/local/lib/libcunit.so.1
#9 0x00000000004025c3 in main () at common/odp_cunit_common.c:86
On Fri, Jun 5, 2015 at 12:51 PM, Zoltan Kiss <[email protected]
<mailto:[email protected]>> wrote:
This series clarifies what happens when not all packets were sent,
whether in
odp_pktio_send() or odp_queue_enq*(). It also introduces
odp_event_free() to
make it easier the release of an event with not obvious type.
It also fixes the many places in the examples and tests where this
issue were
not handled properly.
Signed-off-by: Zoltan Kiss <[email protected]
<mailto:[email protected]>>
_______________________________________________
lng-odp mailing list
[email protected] <mailto:[email protected]>
https://lists.linaro.org/mailman/listinfo/lng-odp
_______________________________________________
lng-odp mailing list
[email protected]
https://lists.linaro.org/mailman/listinfo/lng-odp
_______________________________________________
lng-odp mailing list
[email protected]
https://lists.linaro.org/mailman/listinfo/lng-odp