linphone-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Linphone-developers] Fwd: Bug#694101: linphone/3.5.2 immediate segf


From: Tomas Pospisek
Subject: Re: [Linphone-developers] Fwd: Bug#694101: linphone/3.5.2 immediate segfault without config file
Date: Mon, 26 Nov 2012 11:57:07 +0100
User-agent: RoundCube Webmail/0.3.1

On Mon, 26 Nov 2012 11:43:06 +0100, Guillaume Beraudo
<address@hidden> wrote:
> Hi,
> 
>> I've installed the linphone-dbg package and started linphone through
>> gdb. The only additional info I get is this:
>> 
>>   Program received signal SIGSEGV, Segmentation fault.
>>   0x00007ffff1d5b1f5 in av_log () from
>>   /usr/lib/x86_64-linux-gnu/libavutil.so.51
>> 
>> Seeing that it segfaults in libavutil it needs to be said, that I'm
>> using Christian Marillat's libavutil from deb-multimedia.org.
>> deb-multimedia.org/wheezy is in my apt sources, so whatever is
>> present there overrides Debian's own packages and gets installed
>> instead.
>> 
>> What I did next is to step through linphone in gdb. I can get to
>> line 1765 in main.c (the line number is what gdb is showing me). If
>> I say "step" at that line, the program segfaults.
>> *t
> 
> Is it the gtk_main() call?
> 
> Could you type "bt" in gdb after a segfault?

(gdb) bt
#0  0x00007ffff1d5b1f5 in av_log () from
/usr/lib/x86_64-linux-gnu/libavutil.so.51
#1  0x00007ffff22ba92e in ?? () from
/usr/lib/x86_64-linux-gnu/libavcodec.so.53
#2  0x00007ffff23f0920 in avcodec_decode_video2 () from
/usr/lib/x86_64-linux-gnu/libavcodec.so.53
#3  0x00007ffff7998b25 in jpeg2yuv (address@hidden
"\377\330\377", <incomplete sequence \340>, bufsize=14247, 
    address@hidden) at nowebcam.c:80
#4  0x00007ffff7998deb in ms_load_jpeg_as_yuv (jpgpath=0x7fffdc0043c0
"/usr/share/images/nowebcamCIF.jpg", address@hidden)
    at nowebcam.c:1751
#5  0x00007ffff7998edc in static_image_preprocess (f=<optimized out>) at
nowebcam.c:1835
#6  0x00007ffff797558c in ms_ticker_attach (ticker=0x7fffdc003c40,
f=<optimized out>) at msticker.c:136
#7  0x00007ffff799a839 in video_preview_start (stream=0x7e97f0,
device=<optimized out>) at videostream.c:705
#8  0x00007ffff77293b5 in toggle_video_preview (address@hidden,
val=<optimized out>) at linphonecore.c:3318
#9  0x00007ffff772dccc in linphone_core_iterate (lc=0x7a65b0) at
linphonecore.c:1801
#10 0x0000000000415340 in linphone_gtk_iterate (lc=<optimized out>) at
main.c:507
#11 linphone_gtk_iterate (lc=0x7a65b0) at main.c:497
#12 0x00007ffff4d20eeb in ?? () from
/lib/x86_64-linux-gnu/libglib-2.0.so.0
#13 0x00007ffff4d20355 in g_main_context_dispatch () from
/lib/x86_64-linux-gnu/libglib-2.0.so.0
#14 0x00007ffff4d20688 in ?? () from
/lib/x86_64-linux-gnu/libglib-2.0.so.0
#15 0x00007ffff4d20a82 in g_main_loop_run () from
/lib/x86_64-linux-gnu/libglib-2.0.so.0
#16 0x00007ffff720b797 in gtk_main () from
/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#17 0x0000000000412c85 in main (argc=1, argv=0x7fffffffe308) at
main.c:1765

> Could you also try running linphone in valgrind?

$ valgrind linphone
==28105== Memcheck, a memory error detector
==28105== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al.
==28105== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright
info
==28105== Command: linphone
==28105== 
ALSA lib conf.c:4687:(snd_config_expand) Unknown parameters 0
ALSA lib control.c:951:(snd_ctl_open_noupdate) Invalid CTL default:0
ALSA lib conf.c:4687:(snd_config_expand) Unknown parameters 1
ALSA lib control.c:951:(snd_ctl_open_noupdate) Invalid CTL default:1
==28110== Warning: invalid file descriptor 1024 in syscall close()
==28110== 
==28110== HEAP SUMMARY:
==28110==     in use at exit: 1,369,122 bytes in 13,974 blocks
==28110==   total heap usage: 41,206 allocs, 27,232 frees, 3,825,855 bytes
allocated
==28110== 
==28110== LEAK SUMMARY:
==28110==    definitely lost: 4,624 bytes in 9 blocks
==28110==    indirectly lost: 10,288 bytes in 320 blocks
==28110==      possibly lost: 527,728 bytes in 7,594 blocks
==28110==    still reachable: 826,482 bytes in 6,051 blocks
==28110==         suppressed: 0 bytes in 0 blocks
==28110== Rerun with --leak-check=full to see details of leaked memory
==28110==                                                                 
                                                                          
 
==28110== For counts of detected and suppressed errors, rerun with: -v
==28110== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 16 from 9)
[NULL @ 0x7fefff760] Value 4686111960511545344.000000 for parameter 'b'
out of range
[NULL @ 0x7fefff760] Value 4683532506232782848.000000 for parameter 'ab'
out of range
[NULL @ 0x7fefff760] Value 4705844345939427328.000000 for parameter 'bt'
out of range
[NULL @ 0x7fefff760] Value 4617315517961601024.000000 for parameter
'me_method' out of range
[NULL @ 0x7fefff760] Value 4622945017495814144.000000 for parameter 'g'
out of range
[NULL @ 0x7fefff760] Value 4611686018427387904.000000 for parameter 'qmin'
out of range
[NULL @ 0x7fefff760] Value 4629418941960159232.000000 for parameter 'qmax'
out of range
[NULL @ 0x7fefff760] Value 4613937818241073152.000000 for parameter
'qdiff' out of range
[NULL @ 0x7fefff760] Value -4616189618054758400.000000 for parameter
'wpredp' out of range
[NULL @ 0x7fefff760] Value 4607182418800017408.000000 for parameter 'bug'
out of range
[NULL @ 0x7fefff760] Value 4607182418800017408.000000 for parameter 'er'
out of range
[NULL @ 0x7fefff760] Value 4607182418800017408.000000 for parameter
'err_detect' out of range
[NULL @ 0x7fefff760] Value 4613937818241073152.000000 for parameter 'ec'
out of range
[NULL @ 0x7fefff760] Value 4620693217682128896.000000 for parameter
'ildctcmp' out of range
[NULL @ 0x7fefff760] Value 4620693217682128896.000000 for parameter 'subq'
out of range
[NULL @ 0x7fefff760] Value 4696837138094751744.000000 for parameter
'ibias' out of range
[NULL @ 0x7fefff760] Value 4696837138094751744.000000 for parameter
'pbias' out of range
[NULL @ 0x7fefff760] Value 4642507528377204736.000000 for parameter 'lmin'
out of range
[NULL @ 0x7fefff760] Value 4660262442142531584.000000 for parameter 'lmax'
out of range
[NULL @ 0x7fefff760] Value 4696130710463840256.000000 for parameter
'flags2' out of range
[NULL @ 0x7fefff760] Value 4607182418800017408.000000 for parameter
'threads' out of range
[NULL @ 0x7fefff760] Value 4620693217682128896.000000 for parameter
'nssew' out of range
[NULL @ 0x7fefff760] Value -4586705114244317184.000000 for parameter
'profile' out of range
[NULL @ 0x7fefff760] Value -4586705114244317184.000000 for parameter
'level' out of range
[NULL @ 0x7fefff760] Value 4623507967449235456.000000 for parameter
'skipcmp' out of range
[NULL @ 0x7fefff760] Value 4642507528377204736.000000 for parameter
'mblmin' out of range
[NULL @ 0x7fefff760] Value 4660262442142531584.000000 for parameter
'mblmax' out of range
[NULL @ 0x7fefff760] Value 4643211215818981376.000000 for parameter 'mepc'
out of range
[NULL @ 0x7fefff760] Value 4607182418800017408.000000 for parameter
'bidir_refine' out of range
[NULL @ 0x7fefff760] Value -4616189618054758400.000000 for parameter 'cqp'
out of range
[NULL @ 0x7fefff760] Value 4627730092099895296.000000 for parameter
'keyint_min' out of range
[NULL @ 0x7fefff760] Value 4607182418800017408.000000 for parameter 'refs'
out of range
[NULL @ 0x7fefff760] Value -4616189618054758400.000000 for parameter
'directpred' out of range
[NULL @ 0x7fefff760] Value 4618441417868443648.000000 for parameter
'sc_factor' out of range
[NULL @ 0x7fefff760] Value 4643211215818981376.000000 for parameter
'mv0_threshold' out of range
[NULL @ 0x7fefff760] Value 4630826316843712512.000000 for parameter
'b_sensitivity' out of range
[NULL @ 0x7fefff760] Value -4616189618054758400.000000 for parameter
'compression_level' out of range
[NULL @ 0x7fefff760] Value -4616189618054758400.000000 for parameter
'min_prediction_order' out of range
[NULL @ 0x7fefff760] Value -4616189618054758400.000000 for parameter
'max_prediction_order' out of range
[NULL @ 0x7fefff760] Value -4616189618054758400.000000 for parameter
'prediction_order_method' out of range
[NULL @ 0x7fefff760] Value -4616189618054758400.000000 for parameter
'min_partition_order' out of range
[NULL @ 0x7fefff760] Value -4616189618054758400.000000 for parameter
'max_partition_order' out of range
[NULL @ 0x7fefff760] Value 4607182418800017408.000000 for parameter
'ticks_per_frame' out of range
[NULL @ 0x7fefff760] Value 4611686018427387904.000000 for parameter
'color_primaries' out of range
[NULL @ 0x7fefff760] Value 4611686018427387904.000000 for parameter
'color_trc' out of range
[NULL @ 0x7fefff760] Value 4611686018427387904.000000 for parameter
'colorspace' out of range
[NULL @ 0x7fefff760] Value -4616189618054758400.000000 for parameter
'aq_mode' out of range
[NULL @ 0x7fefff760] Value -4616189618054758400.000000 for parameter
'rc_lookahead' out of range
[NULL @ 0x7fefff760] Value -4616189618054758400.000000 for parameter
'lpc_type' out of range
[NULL @ 0x7fefff760] Value -4616189618054758400.000000 for parameter
'lpc_passes' out of range
[NULL @ 0x7fefff760] Value 4613937818241073152.000000 for parameter
'thread_type' out of range
[NULL @ 0x7fefff760] Value -4616189618054758400.000000 for parameter
'request_sample_fmt' out of range
==28105== Invalid read of size 4
==28105==    at 0xACA61F5: av_log (in
/usr/lib/x86_64-linux-gnu/libavutil.so.51.73.101)
==28105==    by 0xA16792D: ??? (in
/usr/lib/x86_64-linux-gnu/libavcodec.so.53.61.100)
==28105==    by 0xA29D91F: avcodec_decode_video2 (in
/usr/lib/x86_64-linux-gnu/libavcodec.so.53.61.100)
==28105==    by 0x5090B24: jpeg2yuv (in
/usr/lib/x86_64-linux-gnu/libmediastreamer.so.1.0.0)
==28105==    by 0x5090DEA: ms_load_jpeg_as_yuv (in
/usr/lib/x86_64-linux-gnu/libmediastreamer.so.1.0.0)
==28105==    by 0x5090EDB: static_image_preprocess (in
/usr/lib/x86_64-linux-gnu/libmediastreamer.so.1.0.0)
==28105==    by 0x506D58B: ms_ticker_attach (in
/usr/lib/x86_64-linux-gnu/libmediastreamer.so.1.0.0)
==28105==    by 0x5092838: video_preview_start (in
/usr/lib/x86_64-linux-gnu/libmediastreamer.so.1.0.0)
==28105==    by 0x52CFCCB: linphone_core_iterate (in
/usr/lib/x86_64-linux-gnu/liblinphone.so.4.0.0)
==28105==    by 0x41533F: linphone_gtk_iterate (in /usr/bin/linphone)
==28105==    by 0x7C87EEA: ??? (in
/lib/x86_64-linux-gnu/libglib-2.0.so.0.3200.4)
==28105==    by 0x7C87354: g_main_context_dispatch (in
/lib/x86_64-linux-gnu/libglib-2.0.so.0.3200.4)
==28105==  Address 0x8000000000000018 is not stack'd, malloc'd or
(recently) free'd
==28105== 
==28105== 
==28105== Process terminating with default action of signal 11 (SIGSEGV)
==28105==  General Protection Fault
==28105==    at 0xACA61F5: av_log (in
/usr/lib/x86_64-linux-gnu/libavutil.so.51.73.101)
==28105==    by 0xA16792D: ??? (in
/usr/lib/x86_64-linux-gnu/libavcodec.so.53.61.100)
==28105==    by 0xA29D91F: avcodec_decode_video2 (in
/usr/lib/x86_64-linux-gnu/libavcodec.so.53.61.100)
==28105==    by 0x5090B24: jpeg2yuv (in
/usr/lib/x86_64-linux-gnu/libmediastreamer.so.1.0.0)
==28105==    by 0x5090DEA: ms_load_jpeg_as_yuv (in
/usr/lib/x86_64-linux-gnu/libmediastreamer.so.1.0.0)
==28105==    by 0x5090EDB: static_image_preprocess (in
/usr/lib/x86_64-linux-gnu/libmediastreamer.so.1.0.0)
==28105==    by 0x506D58B: ms_ticker_attach (in
/usr/lib/x86_64-linux-gnu/libmediastreamer.so.1.0.0)
==28105==    by 0x5092838: video_preview_start (in
/usr/lib/x86_64-linux-gnu/libmediastreamer.so.1.0.0)
==28105==    by 0x52CFCCB: linphone_core_iterate (in
/usr/lib/x86_64-linux-gnu/liblinphone.so.4.0.0)
==28105==    by 0x41533F: linphone_gtk_iterate (in /usr/bin/linphone)
==28105==    by 0x7C87EEA: ??? (in
/lib/x86_64-linux-gnu/libglib-2.0.so.0.3200.4)
==28105==    by 0x7C87354: g_main_context_dispatch (in
/lib/x86_64-linux-gnu/libglib-2.0.so.0.3200.4)
==28105== 
==28105== HEAP SUMMARY:
==28105==     in use at exit: 2,838,998 bytes in 22,554 blocks
==28105==   total heap usage: 76,322 allocs, 53,768 frees, 7,922,394 bytes
allocated
==28105== 
==28105== LEAK SUMMARY:
==28105==    definitely lost: 7,696 bytes in 13 blocks
==28105==    indirectly lost: 15,952 bytes in 496 blocks
==28105==      possibly lost: 1,411,237 bytes in 13,887 blocks
==28105==    still reachable: 1,404,113 bytes in 8,158 blocks
==28105==         suppressed: 0 bytes in 0 blocks
==28105== Rerun with --leak-check=full to see details of leaked memory
==28105== 
==28105== For counts of detected and suppressed errors, rerun with: -v
==28105== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 16 from 9)
Killed




reply via email to

[Prev in Thread] Current Thread [Next in Thread]