首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >编年史队列中的SIGSEGV 4.5.19

编年史队列中的SIGSEGV 4.5.19
EN

Stack Overflow用户
提问于 2017-01-03 17:50:55
回答 1查看 207关注 0票数 2

什么会导致“纪事”队列出现分段故障?我想我错过了一个配置。我创建了一个readOnly编年史队列,如下所示:

代码语言:javascript
复制
ChronicleQueue readQueue =  SingleChronicleQueueBuilder.binary (readBasePath).readOnly (true).build ();

JVM段出现了故障: 2016-12-31T00:00:00,这就是我假设队列文件被循环的时候。这就是环境:

编年史队列4.5.19 JVM OpenJDK 1.8.0_112-b16 Ubuntu14.04.3 LTS Linux3.13.0-74

下面是堆栈跟踪:

代码语言:javascript
复制
> V  [libjvm.so+0xa08d97]  
J 875  sun.misc.Unsafe.compareAndSwapInt(Ljava/lang/Object;JII)Z (0 bytes) @ 0x00007fde1d328c46 [0x00007fde1d328b80+0xc6]
j  net.openhft.chronicle.core.UnsafeMemory.compareAndSwapInt(JII)Z+8
j  net.openhft.chronicle.bytes.NativeBytesStore.compareAndSwapInt(JII)Z+17
j  net.openhft.chronicle.bytes.AbstractBytes.compareAndSwapInt(JII)Z+16
j  net.openhft.chronicle.wire.AbstractWire.writeEndOfWire(JLjava/util/concurrent/TimeUnit;J)V+32
j  net.openhft.chronicle.queue.impl.single.SingleChronicleQueueStore.writeEOF(Lnet/openhft/chronicle/wire/Wire;J)V+9
j  net.openhft.chronicle.queue.impl.single.SingleChronicleQueueExcerpts$StoreTailer.checkMoveToNextCycle(ZLnet/openhft/chronicle/bytes/Bytes;)Z+43
j  net.openhft.chronicle.queue.impl.single.SingleChronicleQueueExcerpts$StoreTailer.inACycle(Z)Z+176
j  net.openhft.chronicle.queue.impl.single.SingleChronicleQueueExcerpts$StoreTailer.next(Z)Z+12
j  net.openhft.chronicle.queue.impl.single.SingleChronicleQueueExcerpts$StoreTailer.readingDocument(Z)Lnet/openhft/chronicle/wire/DocumentContext;+6
j  net.openhft.chronicle.queue.ExcerptTailer.readingDocument()Lnet/openhft/chronicle/wire/DocumentContext;+2
j  net.openhft.chronicle.wire.MarshallableIn.readDocument(Lnet/openhft/chronicle/wire/ReadMarshallable;)Z+1
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-01-03 19:36:34

看上去像是种族状况。当内存映射被真正释放时,它将无法被访问,或者它将触发分段错误。我怀疑这是因为从一个周期到下一个周期,它应该是免费的。

我增加了一个问题https://github.com/OpenHFT/Chronicle-Queue/issues/319

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/41449463

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档