Bug 37719

Summary: Проблемы с видео транскодерами - strcmp Segmentation fault
Product: Sisyphus Reporter: Горев Андрей <nekapitan2009>
Component: gmerlin-transcoderAssignee: ruslandh <ruslandh>
Status: NEW --- QA Contact: qa-sisyphus
Severity: normal    
Priority: P3    
Version: unstable   
Hardware: all   
OS: Linux   

Description Горев Андрей 2020-01-07 01:19:58 MSK
valgrind /usr/bin/gmerlin_transcoder
==17637== Memcheck, a memory error detector
==17637== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==17637== Using Valgrind-3.15.0 and LibVEX; rerun with -h for copyright info
==17637== Command: /usr/bin/gmerlin_transcoder
==17637== 
==17637== Invalid read of size 1
==17637==    at 0x483BA83: strcmp (vg_replace_strmem.c:849)
==17637==    by 0x4FBFC3E: bg_device_info_append (in /usr/lib64/libgmerlin.so.0.0.0)
==17637==    by 0x4FE89FF: bg_plugin_registry_load (in /usr/lib64/libgmerlin.so.0.0.0)
==17637==    by 0x4FE2823: bg_plugin_registry_create_with_options (in /usr/lib64/libgmerlin.so.0.0.0)
==17637==    by 0x4FE2F83: bg_plugin_registry_create (in /usr/lib64/libgmerlin.so.0.0.0)
==17637==    by 0x4092C8: ??? (in /usr/bin/gmerlin_transcoder)
==17637==    by 0x407248: ??? (in /usr/bin/gmerlin_transcoder)
==17637==    by 0x56A108A: (below main) (in /lib64/libc-2.27.so)
==17637==  Address 0x0 is not stack'd, malloc'd or (recently) free'd
==17637== 
==17637== 
==17637== Process terminating with default action of signal 11 (SIGSEGV)
==17637==  Access not within mapped region at address 0x0
==17637==    at 0x483BA83: strcmp (vg_replace_strmem.c:849)
==17637==    by 0x4FBFC3E: bg_device_info_append (in /usr/lib64/libgmerlin.so.0.0.0)
==17637==    by 0x4FE89FF: bg_plugin_registry_load (in /usr/lib64/libgmerlin.so.0.0.0)
==17637==    by 0x4FE2823: bg_plugin_registry_create_with_options (in /usr/lib64/libgmerlin.so.0.0.0)
==17637==    by 0x4FE2F83: bg_plugin_registry_create (in /usr/lib64/libgmerlin.so.0.0.0)
==17637==    by 0x4092C8: ??? (in /usr/bin/gmerlin_transcoder)
==17637==    by 0x407248: ??? (in /usr/bin/gmerlin_transcoder)
==17637==    by 0x56A108A: (below main) (in /lib64/libc-2.27.so)
==17637==  If you believe this happened as a result of a stack
==17637==  overflow in your program's main thread (unlikely but
==17637==  possible), you can try to increase the size of the
==17637==  main thread stack using the --main-stacksize= flag.
==17637==  The main thread stack size used in this run was 8388608.
==17637== 
==17637== HEAP SUMMARY:
==17637==     in use at exit: 3,687,953 bytes in 55,107 blocks
==17637==   total heap usage: 80,513 allocs, 25,406 frees, 4,729,933 bytes allocated
==17637== 
==17637== LEAK SUMMARY:
==17637==    definitely lost: 0 bytes in 0 blocks
==17637==    indirectly lost: 0 bytes in 0 blocks
==17637==      possibly lost: 1,904 bytes in 26 blocks
==17637==    still reachable: 3,608,753 bytes in 54,750 blocks
==17637==                       of which reachable via heuristic:
==17637==                         length64           : 440 bytes in 8 blocks
==17637==                         newarray           : 1,632 bytes in 22 blocks
==17637==         suppressed: 0 bytes in 0 blocks
==17637== Rerun with --leak-check=full to see details of leaked memory
==17637== 
==17637== For lists of detected and suppressed errors, rerun with: -s
==17637== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
Segmentation fault
[GivMe ~ >] valgrind -s /usr/bin/gmerlin_transcoder
==17779== Memcheck, a memory error detector
==17779== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==17779== Using Valgrind-3.15.0 and LibVEX; rerun with -h for copyright info
==17779== Command: /usr/bin/gmerlin_transcoder
==17779== 
==17779== Invalid read of size 1
==17779==    at 0x483BA83: strcmp (vg_replace_strmem.c:849)
==17779==    by 0x4FBFC3E: bg_device_info_append (in /usr/lib64/libgmerlin.so.0.0.0)
==17779==    by 0x4FE89FF: bg_plugin_registry_load (in /usr/lib64/libgmerlin.so.0.0.0)
==17779==    by 0x4FE2823: bg_plugin_registry_create_with_options (in /usr/lib64/libgmerlin.so.0.0.0)
==17779==    by 0x4FE2F83: bg_plugin_registry_create (in /usr/lib64/libgmerlin.so.0.0.0)
==17779==    by 0x4092C8: ??? (in /usr/bin/gmerlin_transcoder)
==17779==    by 0x407248: ??? (in /usr/bin/gmerlin_transcoder)
==17779==    by 0x56A108A: (below main) (in /lib64/libc-2.27.so)
==17779==  Address 0x0 is not stack'd, malloc'd or (recently) free'd
==17779== 
==17779== 
==17779== Process terminating with default action of signal 11 (SIGSEGV)
==17779==  Access not within mapped region at address 0x0
==17779==    at 0x483BA83: strcmp (vg_replace_strmem.c:849)
==17779==    by 0x4FBFC3E: bg_device_info_append (in /usr/lib64/libgmerlin.so.0.0.0)
==17779==    by 0x4FE89FF: bg_plugin_registry_load (in /usr/lib64/libgmerlin.so.0.0.0)
==17779==    by 0x4FE2823: bg_plugin_registry_create_with_options (in /usr/lib64/libgmerlin.so.0.0.0)
==17779==    by 0x4FE2F83: bg_plugin_registry_create (in /usr/lib64/libgmerlin.so.0.0.0)
==17779==    by 0x4092C8: ??? (in /usr/bin/gmerlin_transcoder)
==17779==    by 0x407248: ??? (in /usr/bin/gmerlin_transcoder)
==17779==    by 0x56A108A: (below main) (in /lib64/libc-2.27.so)
==17779==  If you believe this happened as a result of a stack
==17779==  overflow in your program's main thread (unlikely but
==17779==  possible), you can try to increase the size of the
==17779==  main thread stack using the --main-stacksize= flag.
==17779==  The main thread stack size used in this run was 8388608.
==17779== 
==17779== HEAP SUMMARY:
==17779==     in use at exit: 3,687,953 bytes in 55,107 blocks
==17779==   total heap usage: 80,514 allocs, 25,407 frees, 4,729,957 bytes allocated
==17779== 
==17779== LEAK SUMMARY:
==17779==    definitely lost: 0 bytes in 0 blocks
==17779==    indirectly lost: 0 bytes in 0 blocks
==17779==      possibly lost: 1,904 bytes in 26 blocks
==17779==    still reachable: 3,608,753 bytes in 54,750 blocks
==17779==                       of which reachable via heuristic:
==17779==                         length64           : 440 bytes in 8 blocks
==17779==                         newarray           : 1,632 bytes in 22 blocks
==17779==         suppressed: 0 bytes in 0 blocks
==17779== Rerun with --leak-check=full to see details of leaked memory
==17779== 
==17779== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
==17779== 
==17779== 1 errors in context 1 of 1:
==17779== Invalid read of size 1
==17779==    at 0x483BA83: strcmp (vg_replace_strmem.c:849)
==17779==    by 0x4FBFC3E: bg_device_info_append (in /usr/lib64/libgmerlin.so.0.0.0)
==17779==    by 0x4FE89FF: bg_plugin_registry_load (in /usr/lib64/libgmerlin.so.0.0.0)
==17779==    by 0x4FE2823: bg_plugin_registry_create_with_options (in /usr/lib64/libgmerlin.so.0.0.0)
==17779==    by 0x4FE2F83: bg_plugin_registry_create (in /usr/lib64/libgmerlin.so.0.0.0)
==17779==    by 0x4092C8: ??? (in /usr/bin/gmerlin_transcoder)
==17779==    by 0x407248: ??? (in /usr/bin/gmerlin_transcoder)
==17779==    by 0x56A108A: (below main) (in /lib64/libc-2.27.so)
==17779==  Address 0x0 is not stack'd, malloc'd or (recently) free'd
==17779== 
==17779== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
Segmentation fault

    Это b gst-transcoder & gmerlin-transcode (как в этом случае).