-
Type:
Bug
-
Resolution: Duplicate
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
None
-
None
I have a database and I'm trying to do a printlog that is getting a segfault dereferencing a null pointer. The stack is:
(gdb) bt
#0 0x00007f9fcedb7b4f in __log_has_hole (session=0x7f9fcf2aea70, fh=0x81ff80,
log_size=10485760, offset=128, error_offset=0x7ffe179e0210,
hole=0x7ffe179e01ee) at ../src/log/log.c:1908
#1 0x00007f9fcedb8f50 in __wt_log_scan (session=0x7f9fcf2aea70, lsnp=0x0,
flags=1, func=0x7f9fcee56c90 <__txn_printlog>, cookie=0x7ffe179e02f8)
at ../src/log/log.c:2432
#2 0x00007f9fcee57491 in __wt_txn_printlog (wt_session=0x7f9fcf2aea70,
flags=0) at ../src/txn/txn_log.c:683
#3 0x0000000000409815 in util_printlog (session=0x7f9fcf2aea70, argc=0,
argv=0x7ffe179e0500) at ../src/utilities/util_printlog.c:43
#4 0x0000000000408dc4 in main (argc=1, argv=0x7ffe179e0500)
at ../src/utilities/util_main.c:298
(gdb) frame 0
#0 0x00007f9fcedb7b4f in __log_has_hole (session=0x7f9fcf2aea70, fh=0x81ff80,
log_size=10485760, offset=128, error_offset=0x7ffe179e0210,
hole=0x7ffe179e01ee) at ../src/log/log.c:1908
1908 rdlen = WT_MIN(log->allocsize, buf_left);
(gdb) p log
$1 = (WT_LOG *) 0x0
- duplicates
-
WT-4207 Coverity #1394567: null pointer dereference
-
- Closed
-