linphone-users
[Top][All Lists]
Advanced

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

[Linphone-users] Linphone 3.5.1 compile/crash problems


From: alekcejk
Subject: [Linphone-users] Linphone 3.5.1 compile/crash problems
Date: Sun, 19 Feb 2012 20:50:16 +0200
User-agent: KNode/4.8.0

Hi,

I built Linphone 3.5.1 for Fedora 16 (without ZRTP support for now).
ffmpeg is not available in Fedora repositories, so I built
Linphone with --enable-video --disable-ffmpeg.

Here couple of problems that I found:

1. Unused variable compiling error.

nowebcam.c: In function 'static_image_set_vsize':
nowebcam.c:1878:10: error: unused variable 'd' [-Werror=unused-variable]
cc1: all warnings being treated as errors

I fixed this with patch:

--- linphone-3.5.1/mediastreamer2/src/nowebcam.c        2012-01-18 
13:00:15.000000000 +0200
+++ linphone-3.5.1/mediastreamer2/src/nowebcam.c        2012-02-19 
19:24:12.643525630 +0200
@@ -1875,10 +1875,11 @@
 }
 
 int static_image_set_vsize(MSFilter *f, void* data){
-       SIData *d=(SIData*)f->data;
 #ifndef NO_FFMPEG
+       SIData *d=(SIData*)f->data;
        d->vsize=*(MSVideoSize*)data;
 #else
+       __attribute__((__unused__)) SIData *d=(SIData*)f->data;
     // no rescaling without ffmpeg
 #endif
        return 0;


2. Obsolete g_thread API compiling error (only when building against glib-2.31).

setupwizard.c: In function 'account_username_changed':
setupwizard.c:273:3: error: 'g_thread_create' is deprecated (declared at 
/usr/include/glib-2.0/glib/deprecated/gthread.h:100): Use 'g_thread_new' 
instead [-
Werror=deprecated-declarations]
setupwizard.c: In function 'linphone_gtk_create_assistant':
setupwizard.c:537:2: error: 'g_thread_init' is deprecated (declared at 
/usr/include/glib-2.0/glib/deprecated/gthread.h:259) 
[-Werror=deprecated-declarations]
cc1: all warnings being treated as errors

I fixed this error with patch:

--- linphone-3.5.1/gtk/setupwizard.c    2012-02-08 16:57:35.000000000 +0200
+++ linphone-3.5.1/gtk/setupwizard.c    2012-02-19 19:51:01.487146154 +0200
@@ -270,7 +270,7 @@
        linphone_account_creator_set_username(creator, 
gtk_entry_get_text(username));
 
        if (g_regex_match_simple("^[a-zA-Z]+[a-zA-Z0-9.\\-_]{3,}$", 
gtk_entry_get_text(username), 
0, 0)) {
-               g_thread_create(check_username_availability, (void*)w, FALSE, 
NULL);
+               g_thread_new (NULL, check_username_availability, (void*)w);
        }
        else {
                if (gtk_entry_get_text_length(username) < LOGIN_MIN_SIZE) {
@@ -534,7 +534,7 @@
        ok = create_pixbuf(linphone_gtk_get_ui_config("ok","ok.png"));
        notok = create_pixbuf(linphone_gtk_get_ui_config("notok","notok.png"));
 
-       g_thread_init (NULL);
+       g_type_init ();
        gdk_threads_init ();
 
        GtkWidget *p1=create_intro();


3. Linphone built with --enable-video --disable-ffmpeg crashes when I am trying
to enable video (Options -> Enable video). 
Unfortunately no fix for crash.
Here backtrace:

Starting program: /usr/bin/linphone 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/libthread_db.so.1".
Detaching after fork from child process 1358.
Detaching after fork from child process 1359.
[New Thread 0xb7fceb40 (LWP 1360)]
ALSA lib conf.c:4687:(snd_config_expand) Unknown parameters 0
ALSA lib control.c:951:(snd_ctl_open_noupdate) Invalid CTL default:0
Detaching after fork from child process 1361.
[New Thread 0xb36deb40 (LWP 1362)]
testing rand_source...passed
cipher: aes cipher block chaining (cbc) mode
  instance count: 0
  self-test: passed
cipher: aes integer counter mode
  instance count: 0
  self-test: passed
cipher: null cipher
  instance count: 0
  self-test: passed
auth func: hmac sha-1 authentication function
  instance count: 0
  self-test: passed
auth func: null authentication function
  instance count: 0
  self-test: passed
debug modules loaded:
  srtp (off)
  hmac sha-1 (off)
  aes cbc (off)
  aes icm (off)
  alloc (off)
  stat test (off)
  cipher (off)
  auth func (off)
  crypto kernel (off)
[New Thread 0xb2cffb40 (LWP 1363)]
[Thread 0xb2cffb40 (LWP 1363) exited]
[New Thread 0xb2cffb40 (LWP 1364)]

Program received signal SIGSEGV, Segmentation fault.
ms_filter_call_method (f=0x0, address@hidden, address@hidden) at msfilter.c:192
192             MSFilterMethod *methods=f->desc->methods;
Missing separate debuginfos, use: debuginfo-install alsa-lib-1.0.25-3.fc17.i686 
atk-2.3.3-2.fc17.i686 c-ares-1.7.5-2.fc17.i686 cairo-1.10.2-6.fc17.i686 
dbus-glib-0.92-3.fc17.i686 
dbus-libs-1.4.10-4.fc17.i686 expat-2.0.1-12.fc17.i686 flac-1.2.1-9.fc17.i686 
fontconfig-2.8.0-5.fc17.i686 freetype-freeworld-2.4.8-2.fc17.i686 
gdk-pixbuf2-2.25.2-1.fc17.i686 
gsm-1.0.13-6.fc17.i686 json-c-0.9-4.fc17.i686 keyutils-libs-1.5.5-2.fc17.i686 
krb5-
libs-1.10-3.fc17.i686 libICE-1.0.7-2.fc17.i686 libSM-1.2.0-3.fc17.i686 
libX11-1.4.99.1-3.fc17.i686 
libXau-1.0.6-3.fc17.i686 libXcomposite-0.4.3-3.fc17.i686 
libXcursor-1.1.12-2.fc17.i686 
libXdamage-1.1.3-3.fc17.i686 libXext-1.3.0-2.fc17.i686 
libXfixes-5.0-2.fc17.i686 
libXi-1.5.99.3-1.fc18.i686 libXinerama-1.1.1-3.fc17.i686 
libXrandr-1.3.1-3.fc17.i686 
libXrender-0.9.6-3.fc17.i686 libXtst-1.2.0-3.fc17.i686 
libasyncns-0.8-3.fc17.i686 
libcom_err-1.42-2.fc17.i686 libffi-3.0.10-2.fc17.i686 
libgcc-4.7.0-0.12.fc17.i686 libjpeg-
turbo-1.1.1-4.fc17.i686 libnotify-0.7.4-1.fc16.i686 libogg-1.2.2-4.fc17.i686 
libosip2-3.6.0-2.fc17.i686 libpng-1.5.8-2.fc18.i686 
libselinux-2.1.9-7.fc17.i686 
libsndfile-1.0.25-2.fc17.i686 libsoup-2.37.5.1-1.fc17.i686 
libsrtp-1.4.4-3.20101004cvs.fc17.i686 
libstdc++-4.7.0-0.12.fc17.i686 libtheora-1.1.1-3.fc17.i686 
libtiff-3.9.5-2.fc17.i686 
libuuid-2.21-0.2.fc18.i686 libv4l-0.8.5-2.fc17.i686 libvorbis-1.3.3-1.fc17.i686 
libvpx-1.0.0-1.fc17.i686 libxcb-1.8-2.fc17.i686 libxml2-2.7.8-7.fc17.i686 nss-
mdns-0.10-10.fc17.i686 openssl-1.0.1-0.1.beta2.fc17.i686 
oxygen-gtk2-1.2.1-1.fc18.i686 
pango-1.29.5-2.fc17.i686 pixman-0.24.2-1.fc17.i686 
spandsp-0.0.6-0.6.pre18.fc17.i686 
speex-1.2-0.14.rc1.fc17.i686 tcp_wrappers-libs-7.6-69.fc17.i686 
zlib-1.2.5-6.fc17.i686
(gdb) thread apply all bt full

Thread 5 (Thread 0xb2cffb40 (LWP 1364)):
#0  0x00131416 in __kernel_vsyscall ()
No symbol table info available.
#1  0x00fb03b1 in select () at ../sysdeps/unix/syscall-template.S:82
No locals.
#2  0x016f085a in eXosip_read_message (max_message_nb=1, sec_max=1, 
usec_max=10000) at udp.c:1610
        i = -1305437368
        max = 19
        wakeup_socket = 15
        osip_fdset = {__fds_bits = {557056, 0 <repeats 31 times>}}
        osip_wrset = {__fds_bits = {0 <repeats 32 times>}}
        tv = {tv_sec = 0, tv_usec = 551557}
#3  0x016dd0a9 in eXosip_execute () at eXconf.c:789
        lower_tv = {tv_sec = 1, tv_usec = 10000}
        i = 0
#4  0x016de142 in _eXosip_thread (arg=0x0) at eXconf.c:1131
        i = 0
#5  0x0015cadf in start_thread (arg=0xb2cffb40) at pthread_create.c:309
        __res = <optimized out>
        pd = 0xb2cffb40
        now = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {1495028, 0, 4001536, 
-1294994840, 1176046959, 
-227583478}, 
              mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = 
{prev = 0x0, cleanup 
= 0x0, canceltype = 0}}}
        not_first_call = 0
        pagesize_m1 = <optimized out>
        sp = <optimized out>
        freesize = <optimized out>
#6  0x00fb791e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:133
No locals.

Thread 3 (Thread 0xb36deb40 (LWP 1362)):
#0  0x00131416 in __kernel_vsyscall ()
No symbol table info available.
#1  0x00fad3d4 in __GI___poll (address@hidden, address@hidden, 
address@hidden)
    at ../sysdeps/unix/sysv/linux/poll.c:87
        resultvar = <optimized out>
        oldtype = -516
        result = <optimized out>
#2  0x01342f57 in poll_func (ufds=0xb2d00498, nfds=1, timeout=-1, 
userdata=0x81ac898) at 
pulse/thread-mainloop.c:69
        mutex = 0x81ac898
        r = <optimized out>
#3  0x01330feb in pa_mainloop_poll (address@hidden) at pulse/mainloop.c:875
        __func__ = "pa_mainloop_poll"
        __PRETTY_FUNCTION__ = "pa_mainloop_poll"
#4  0x01331848 in pa_mainloop_iterate (address@hidden, address@hidden, 
address@hidden)
    at pulse/mainloop.c:957
        r = <optimized out>
        __func__ = "pa_mainloop_iterate"
        __PRETTY_FUNCTION__ = "pa_mainloop_iterate"
#5  0x01331914 in pa_mainloop_run (m=0x81acbb0, address@hidden) at 
pulse/mainloop.c:975
        r = <optimized out>
#6  0x01342edf in thread (userdata=0x81ac8b8) at pulse/thread-mainloop.c:88
        m = 0x81ac8b8
        mask = {__val = {2147483647, 4294967294, 4294967295 <repeats 30 times>}}
#7  0x01ab0857 in internal_thread_func (userdata=0x812a920) at 
pulsecore/thread-posix.c:83
        t = 0x812a920
#8  0x0015cadf in start_thread (arg=0xb36deb40) at pthread_create.c:309
        __res = <optimized out>
        pd = 0xb36deb40
        now = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {1495028, 0, 4001536, 
-1284644248, 37293420, 
-227583478}, 
              mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = 
{prev = 0x0, cleanup 
= 0x0, canceltype = 0}}}
        not_first_call = 0
        pagesize_m1 = <optimized out>
        sp = <optimized out>
        freesize = <optimized out>
#9  0x00fb791e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:133
No locals.

Thread 2 (Thread 0xb7fceb40 (LWP 1360)):
#0  0x00131416 in __kernel_vsyscall ()
No symbol table info available.
#1  0x001633a8 in accept () at ../sysdeps/unix/sysv/linux/i386/socket.S:97
No locals.
#2  0x0013a699 in ortp_server_pipe_accept_client (server=9) at port.c:405
        su = {sun_family = 0, 
          sun_path = 
"\000\000\000\000\304\377\022\000\370\b\023\000\005\000\000\000\030\t\a\b\253\352\021\000\260\n\023\000\000\000\000\000\001\000\000\000\005\000\000\000\000\000\000\000X[\375\267",
 
'\000' <repeats 20 times>"\310, 
\066\023\000\005\000\000\000\026\004\000\000X_\375\267\364\317\026\000L\340\374\267\000\000\000\000\000\000\000\000\220M\022\000\000\000\000"}
        ssize = 110
        client_sock = <optimized out>
#3  0x08067a3d in server_pipe_thread (pointer=0x0) at singleinstance.c:48
        child = <optimized out>
#4  0x0015cadf in start_thread (arg=0xb7fceb40) at pthread_create.c:309
        __res = <optimized out>
        pd = 0xb7fceb40
        now = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {1495028, 0, 4001536, 
-1208163736, 540609893, 
-227583478}, 
              mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = 
{prev = 0x0, cleanup 
= 0x0, canceltype = 0}}}
        not_first_call = 0
        pagesize_m1 = <optimized out>
        sp = <optimized out>
        freesize = <optimized out>
#5  0x00fb791e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:133
No locals.

Thread 1 (Thread 0xb7fd0b00 (LWP 1355)):
#0  ms_filter_call_method (f=0x0, address@hidden, address@hidden) at 
msfilter.c:192
        methods = <optimized out>
        i = <optimized out>
        magic = <optimized out>
#1  0x003be630 in video_preview_start (stream=0x82edd70, device=0x81ac9f0) at 
videostream.c:690
        format = MS_YUV420P
        fps = 29.9699993
        mirroring = 1
        corner = -1
        disp_size = {width = 352, height = 288}
        vsize = {width = 352, height = 288}
        displaytype = 0x82edb08 "MSVideoOut"
#2  0x003eafba in toggle_video_preview (address@hidden, val=<optimized out>) at 
linphonecore.c:3319
No locals.
#3  0x003f088e in linphone_core_iterate (address@hidden) at linphonecore.c:1802
        calls = 0x0
        call = <optimized out>
        curtime = 1329676089
        elapsed = <optimized out>
        one_second_elapsed = 0 '\000'
#4  0x08058282 in linphone_gtk_iterate (lc=0x814ca00) at main.c:507
        first_time = 0
        previd = 0
        in_iterate = 1
        id = <optimized out>
        preview_previd = 0
#5  linphone_gtk_iterate (address@hidden) at main.c:497
        first_time = 0
        previd = 0
        preview_previd = 0
        in_iterate = 1
#6  0x00de6850 in g_timeout_dispatch (address@hidden, callback=0x8058250 
<linphone_gtk_iterate>, 
    user_data=0x814ca00) at gmain.c:3854
        timeout_source = 0x8121a20
        again = <optimized out>
#7  0x00de5aa1 in g_main_dispatch (context=0x809d200) at gmain.c:2510
        dispatch = 0xde6820 <g_timeout_dispatch>
        was_in_call = 0
        user_data = 0x814ca00
        callback = 0x8058250 <linphone_gtk_iterate>
        cb_funcs = 0xec54b8
        cb_data = 0x8121a68
        current_source_link = {data = 0x8121a20, next = 0x0}
        need_destroy = <optimized out>
        source = 0x8121a20
        current = 0x824b680
        i = <optimized out>
#8  g_main_context_dispatch (address@hidden) at gmain.c:3047
No locals.
#9  0x00de5e44 in g_main_context_iterate (context=0x809d200, address@hidden, 
address@hidden, 
    self=<error reading variable: Unhandled dwarf expression opcode 0xfa>) at 
gmain.c:3118
        max_priority = 0
        timeout = 0
        some_ready = 1
        nfds = <optimized out>
        allocated_nfds = <optimized out>
        fds = <optimized out>
#10 0x00de6363 in g_main_loop_run (address@hidden) at gmain.c:3312
        __PRETTY_FUNCTION__ = "g_main_loop_run"
#11 0x0056dc60 in IA__gtk_main () at gtkmain.c:1256
        tmp_list = 0x0
        functions = 0x0
        init = <optimized out>
        loop = 0x8207828
#12 0x0805598b in main (argc=1, argv=0xbffff1a4) at main.c:1754
        p = <optimized out>
        config_file = <optimized out>
        factory_config_file = 0x8068f78 "Linphone - a video internet phone"
        lang = <optimized out>
        settings = <optimized out>
        pbuf = <optimized out>
        app_name = 0x806859d "Linphone"
(gdb) q

-- 
Alexey Kurov <address@hidden>




reply via email to

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