Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Coredump RPi 3B+ v3.1.1 #786

Closed
savidha777 opened this issue Nov 8, 2021 · 5 comments
Closed

[BUG] Coredump RPi 3B+ v3.1.1 #786

savidha777 opened this issue Nov 8, 2021 · 5 comments
Labels

Comments

@savidha777
Copy link

Hi,

For RPI 3B+ platform, we are integrated KVS SDK and we used kvssink plugin to push the live streaming content into AWS KVS service.

Used below pipeline for our validation:
gst-launch-1.0 v4l2src device=/dev/video0 ! videoconvert ! video/x-raw,width=640,height=480 ! omxh264enc ! h264parse ! kvssink stream-name="test_camera_stream" storage-size=100 access-key="XXXXXXXXX" secret-key="YYYYYYYYY" aws-region="ZZZZZZZZZ"

With above pipeline we able to view and record RPI streaming content in KVS service with 2.0.2 KVS SDK tagged revision, but with latest 3.1.1/3.2.0 tagged kvs sdk revision we are getting below core-dump issue after seeing single frame in kvs service.

Core-dump:
#0 0x76ce6588 in removeChainedBlock (pAivHeap=pAivHeap@entry=0x72e10, pBlock=pBlock@entry=0x75d005c5)
at /usr/src/debug/kvs/3.1.1-r0/git/dependency/libkvscproducer/kvscproducer-src/dependency/libkvspic/kvspic-src/src/heap/src/AivHeap.c:879
#1 0x76ce67ba in aivHeapFree (pHeap=0x72e10, handle=)
at /usr/src/debug/kvs/3.1.1-r0/git/dependency/libkvscproducer/kvscproducer-src/dependency/libkvspic/kvspic-src/src/heap/src/AivHeap.c:325
#2 0x76cd41b0 in viewItemRemoved (pContentView=, customData=, pViewItem=0x74c58, currentRemoved=0)
at /usr/src/debug/kvs/3.1.1-r0/git/dependency/libkvscproducer/kvscproducer-src/dependency/libkvspic/kvspic-src/src/client/src/Client.c:1621
#3 0x76ce4de0 in contentViewTrimTail (pContentView=0x74b78, itemIndex=)
at /usr/src/debug/kvs/3.1.1-r0/git/dependency/libkvscproducer/kvscproducer-src/dependency/libkvspic/kvspic-src/src/view/src/ContentView.c:587
#4 0x76cd82d8 in streamFragmentPersistedAck (pKinesisVideoStream=pKinesisVideoStream@entry=0x4ec10, timestamp=,
pUploadHandleInfo=pUploadHandleInfo@entry=0x2d9b0)
at /usr/src/debug/kvs/3.1.1-r0/git/dependency/libkvscproducer/kvscproducer-src/dependency/libkvspic/kvspic-src/src/client/src/Stream.c:2535
#5 0x76cda6fa in streamFragmentAckEvent (pKinesisVideoStream=pKinesisVideoStream@entry=0x4ec10, uploadHandle=,
pFragmentAck=pFragmentAck@entry=0x54d20)
at /usr/src/debug/kvs/3.1.1-r0/git/dependency/libkvscproducer/kvscproducer-src/dependency/libkvspic/kvspic-src/src/client/src/StreamEvent.c:875
#6 0x76ce55a4 in processParsedAck (pKinesisVideoStream=0x4ec10)
at /usr/src/debug/kvs/3.1.1-r0/git/dependency/libkvscproducer/kvscproducer-src/dependency/libkvspic/kvspic-src/src/client/src/AckParser.c:278
#7 0x76ce587e in parseFragmentAck (pKinesisVideoStream=pKinesisVideoStream@entry=0x4ec10, uploadHandle=,
ackSegment=ackSegment@entry=0x8157c "{"EventType":"PERSISTED","FragmentTimecode":3691104463,"FragmentNumber":"91343852333184962997674104545554217272768984578"}\n\r\n", ackSegmentSize=, ackSegmentSize@entry=123)
at /usr/src/debug/kvs/3.1.1-r0/git/dependency/libkvscproducer/kvscproducer-src/dependency/libkvspic/kvspic-src/src/client/src/AckParser.c:239
#8 0x76cd3d5e in kinesisVideoStreamParseFragmentAck (streamHandle=, uploadHandle=,
ackSegment=0x8157c "{"EventType":"PERSISTED","FragmentTimecode":3691104463,"FragmentNumber":"91343852333184962997674104545554217272768984578"}\n\r\n",
ackSegmentSize=123) at /usr/src/debug/kvs/3.1.1-r0/git/dependency/libkvscproducer/kvscproducer-src/dependency/libkvspic/kvspic-src/src/client/src/Client.c:1417
#9 0x76ccd5ba in postWriteCallback (pBuffer=, size=, numItems=123, customData=0x7bc50)
at /usr/src/debug/kvs/3.1.1-r0/git/dependency/libkvscproducer/kvscproducer-src/src/source/Response.c:593
#10 0x76a809d8 in ?? () from /usr/lib/libcurl.so.4

Requesting to give your input for this core-dump issue.

@savidha777 savidha777 added the bug label Nov 8, 2021
@disa6302
Copy link
Contributor

disa6302 commented Nov 8, 2021

@savidha777 ,
Thank you for the coredump. Would you mind attaching the verbose log file as well? Running export AWS_KVS_LOG_LEVEL=1 will generate the logs.

@savidha777
Copy link
Author

Hi @disa6302

Please find attached 3.1.1.KVS SDK core-dump log file.
kvs_core_dump.txt

@disa6302 disa6302 changed the title [BUG] [BUG] Coredump RPi 3B+ v3.1.1 Nov 11, 2021
@disa6302
Copy link
Contributor

disa6302 commented Nov 15, 2021

@savidha777 ,

I have not been able to reproduce this on Mac. And the stack trace does not seem to make sense either. A few clarifications:

  1. Were there any changes/firmware updates that were done on the Raspberry Pi apart from updating the producer SDK?
  2. Is your device memory aligned? Can you try building with -DALIGNED_MEMORY_MODEL=ON flag?

@savidha777
Copy link
Author

HI @disa6302

Thanks for your support

After enabled this ALIGNED_MEMORY_MODEL flag, we able to view streaming content in AWS service without any issue.

@disa6302
Copy link
Contributor

Great. I am resolving this issue now. Feel free to reopen/open a new issue if you have any more questions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants