Date: Sun, 27 Nov 2005 02:06:36 +0100 (CET) From: Simun Mikecin <numisemis@yahoo.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/89614: [fix] multimedia/fxtv: segfaults while changing stations Message-ID: <20051127010636.C92D75FC55@data.home.hr> Resent-Message-ID: <200511270110.jAR1A7kl098034@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 89614 >Category: ports >Synopsis: [fix] multimedia/fxtv: segfaults while changing stations >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Nov 27 01:10:06 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Simun Mikecin >Release: FreeBSD 6.0-STABLE amd64 >Organization: >Environment: System: FreeBSD data.home.hr 6.0-STABLE FreeBSD 6.0-STABLE #1: Sat Nov 26 18:42:00 CET 2005 root@data.home.hr:/var/obj/usr/src.6/sys/DATA amd64 using "nv" driver from Xorg (GeForce 6600GT). >Description: Changing channels in fxtv tends to crash it with Segmentation fault. It doesn't happen all the time, but if you try to change stations fast your will surely encounter it. I never experienced those kind of crashes on my previous PC (FreeBSD/i386 + GeForce 4 Ti4800SE + nvidia binary driver) Since applying this fix I haven't encountered a single segfault. >How-To-Repeat: See description. >Fix: this is a replacement file for the /usr/ports/multimedia/fxtv/files/patch-tvmenu.c: --- tvmenu.c.orig Mon Feb 12 22:19:33 2001 +++ tvmenu.c Sun Nov 27 01:55:24 2005 @@ -552,7 +552,7 @@ Widget popup_win, new_popup_item = NULL; Cardinal num_children, i; WidgetList children; - String actual_station, temp_station; + String actual_station = NULL, temp_station = NULL; #ifdef FIXME Pixmap pix; #endif @@ -589,7 +589,7 @@ XtVaSetValues(children[i], XtNleftBitmap, pix, NULL); #else - if ( strcmp( actual_station, temp_station ) == 0 ) + if ( strcmp( actual_station==NULL ? "" : actual_station, temp_station==NULL ? "" : temp_station ) == 0 ) new_popup_item = children[i]; #endif } >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051127010636.C92D75FC55>