Hi,

All problems that I reported for Linphone-3.5.1
are still in Linphone-3.5.2 (unused variables
with --disable-video and --enable-viudeo --disable-ffmpeg,
obsoleted g_thread API with glib-2.31,
crash when built with --enable-viudeo --disable-ffmpeg).

http://lists.nongnu.org/archive/html/linphone-users/2012-02/msg00033.html
http://lists.nongnu.org/archive/html/linphone-users/2012-02/msg00034.html

Attaching patches for build issues and backtrace for crash in 3.5.2.

Sylvain Berfini wrote:

> Hi,
> 
> This release fix issues with ZRTP and 3.5.1 binaries some of you might a have 
> been experiencing,
> and we are truly sorry about that. It also brings a "Quit" button to close 
> the app inside the
> "Options" menu.
> 
> Download links:
> Sources:
> http://download-mirror.savannah.gnu.org/releases/linphone/3.5.x/sources/linphone-3.5.2.tar.gz
> 
> MacOS bundle:
> http://download-mirror.savannah.gnu.org/releases/linphone/3.5.x/macos/linphone-3.5.2.app.zip
> 
> Win32 setup:
> http://download-mirror.savannah.gnu.org/releases/linphone/3.5.x/win32/linphone-3.5.2-setup.exe
> 
> There is also new releases for oRTP and mediastreamer:
> http://download-mirror.savannah.gnu.org/releases/linphone/ortp/sources/ortp-0.20.0.tar.gz
> http://download-
mirror.savannah.gnu.org/releases/linphone/mediastreamer/mediastreamer-2.8.2.tar.gz
> 
> Your contributions and feedback are welcome, as usual.
> 
> Regards.
-- 
Alexey Kurov <[email protected]>
--- linphone-3.5.1/mediastreamer2/tests/mediastream.c	2012-01-18 13:00:15.000000000 +0200
+++ linphone-3.5.1/mediastreamer2/tests/mediastream.c	2012-02-20 16:45:05.961678898 +0200
@@ -400,7 +400,9 @@
 
 void setup_media_streams(MediastreamDatas* args) {
 	/*create the rtp session */
+#ifdef VIDEO_ENABLED
 	MSWebCam *cam=NULL;
+#endif
 
 	ortp_init();
 	if (args->is_verbose) {
--- 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;

--- 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();

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 1223.
Detaching after fork from child process 1224.
[New Thread 0xb7fceb40 (LWP 1225)]
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 1226.
[New Thread 0xb36deb40 (LWP 1227)]
[New Thread 0xb2cffb40 (LWP 1228)]
[Thread 0xb2cffb40 (LWP 1228) exited]
[New Thread 0xb2cffb40 (LWP 1229)]

Program received signal SIGSEGV, Segmentation fault.
ms_filter_call_method (f=0x0, id=id@entry=157188, arg=arg@entry=0xbfffed70) 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-4.fc18.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.1-1.fc18.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-4.20101004cvs.fc18.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 1229)):
#0  0x00131416 in __kernel_vsyscall ()
No symbol table info available.
#1  0x00fb06d1 in select () at ../sysdeps/unix/syscall-template.S:82
No locals.
#2  0x016f185a in eXosip_read_message (max_message_nb=1, sec_max=0, 
usec_max=555832) at udp.c:1610
        i = 16580377
        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 = 531038}
#3  0x016de0a9 in eXosip_execute () at eXconf.c:789
        lower_tv = {tv_sec = 0, tv_usec = 555832}
        i = 0
#4  0x016df142 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, -974438382, 1906120567}, 
              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  0x00fb7c3e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:133
No locals.

Thread 3 (Thread 0xb36deb40 (LWP 1227)):
#0  0x00131416 in __kernel_vsyscall ()
No symbol table info available.
#1  0x00fad6f4 in __GI___poll (fds=fds@entry=0xb2d00498, nfds=nfds@entry=1, 
timeout=timeout@entry=-1)
    at ../sysdeps/unix/sysv/linux/poll.c:87
        resultvar = <optimized out>
        oldtype = -516
        result = <optimized out>
#2  0x01343f57 in poll_func (ufds=0xb2d00498, nfds=1, timeout=-1, 
userdata=0x81ac868) at pulse/thread-mainloop.c:69
        mutex = 0x81ac868
        r = <optimized out>
#3  0x01331feb in pa_mainloop_poll (m=m@entry=0x81acb80) at pulse/mainloop.c:875
        __func__ = "pa_mainloop_poll"
        __PRETTY_FUNCTION__ = "pa_mainloop_poll"
#4  0x01332848 in pa_mainloop_iterate (m=m@entry=0x81acb80, 
block=block@entry=1, retval=retval@entry=0x0)
    at pulse/mainloop.c:957
        r = <optimized out>
        __func__ = "pa_mainloop_iterate"
        __PRETTY_FUNCTION__ = "pa_mainloop_iterate"
#5  0x01332914 in pa_mainloop_run (m=0x81acb80, retval=retval@entry=0x0) at 
pulse/mainloop.c:975
        r = <optimized out>
#6  0x01343edf in thread (userdata=0x81ac888) at pulse/thread-mainloop.c:88
        m = 0x81ac888
        mask = {__val = {2147483647, 4294967294, 4294967295 <repeats 30 times>}}
#7  0x01ab1857 in internal_thread_func (userdata=0x81ac7f8) at 
pulsecore/thread-posix.c:83
        t = 0x81ac7f8
#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, -2117386223, 1906120567}, 
              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  0x00fb7c3e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:133
No locals.

Thread 2 (Thread 0xb7fceb40 (LWP 1225)):
#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<\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  0x0806500d 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, -1546960872, 1906120567}, 
              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  0x00fb7c3e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:133
No locals.

Thread 1 (Thread 0xb7fd0b00 (LWP 1220)):
#0  ms_filter_call_method (f=0x0, id=id@entry=157188, arg=arg@entry=0xbfffed70) 
at msfilter.c:192
        methods = <optimized out>
        i = <optimized out>
        magic = <optimized out>
#1  0x003be640 in video_preview_start (stream=0x82fe5c8, device=0x8132f28) 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 = 0x82af630 "MSVideoOut"
#2  0x003eb2da in toggle_video_preview (lc=lc@entry=0x8119c68, val=<optimized 
out>) at linphonecore.c:3318
No locals.
#3  0x003f0c33 in linphone_core_iterate (lc=lc@entry=0x8119c68) at 
linphonecore.c:1801
        calls = 0x0
        call = <optimized out>
        curtime = 1329924303
        elapsed = <optimized out>
        one_second_elapsed = 0 '\000'
#4  0x08058532 in linphone_gtk_iterate (lc=0x8119c68) at main.c:507
        first_time = 0
        previd = 0
        in_iterate = 1
        id = <optimized out>
        preview_previd = 0
#5  linphone_gtk_iterate (lc=lc@entry=0x8119c68) at main.c:497
        first_time = 0
        previd = 0
        preview_previd = 0
        in_iterate = 1
#6  0x00de6a70 in g_timeout_dispatch (source=source@entry=0x8121680, 
callback=0x8058500 <linphone_gtk_iterate>, 
    user_data=0x8119c68) at gmain.c:3854
        timeout_source = 0x8121680
        again = <optimized out>
#7  0x00de5ca1 in g_main_dispatch (context=0x809d200) at gmain.c:2510
        dispatch = 0xde6a40 <g_timeout_dispatch>
        was_in_call = 0
        user_data = 0x8119c68
        callback = 0x8058500 <linphone_gtk_iterate>
        cb_funcs = 0xec54b8
        cb_data = 0x81216c8
        current_source_link = {data = 0x8121680, next = 0x0}
        need_destroy = <optimized out>
        source = 0x8121680
        current = 0x823b2a8
        i = <optimized out>
#8  g_main_context_dispatch (context=context@entry=0x809d200) at gmain.c:3047
No locals.
#9  0x00de6120 in g_main_context_iterate (context=0x809d200, 
block=block@entry=1, dispatch=dispatch@entry=1, 
    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 0x00de6583 in g_main_loop_run (loop=loop@entry=0x81992c0) 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 = 0x81992c0
#12 0x08055c3b in main (argc=1, argv=0xbffff1a4) at main.c:1764
        p = <optimized out>
        config_file = <optimized out>
        factory_config_file = 0x8069538 "Linphone - a video internet phone"
        lang = <optimized out>
        settings = <optimized out>
        pbuf = <optimized out>
        app_name = 0x8068b5d "Linphone"
(gdb) q

_______________________________________________
Linphone-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/linphone-users

Reply via email to