From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Mar 11 14:10:01 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 501252EE for ; Mon, 11 Mar 2013 14:10:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 0B746603 for ; Mon, 11 Mar 2013 14:10:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r2BEA0tg026847 for ; Mon, 11 Mar 2013 14:10:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r2BEA0Zm026846; Mon, 11 Mar 2013 14:10:00 GMT (envelope-from gnats) Resent-Date: Mon, 11 Mar 2013 14:10:00 GMT Resent-Message-Id: <201303111410.r2BEA0Zm026846@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Ivan Klymenko Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id B2061F4D for ; Mon, 11 Mar 2013 14:02:33 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id A2D973CC for ; Mon, 11 Mar 2013 14:02:33 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r2BE2Wob013835 for ; Mon, 11 Mar 2013 14:02:32 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id r2BE2WIp013834; Mon, 11 Mar 2013 14:02:32 GMT (envelope-from nobody) Message-Id: <201303111402.r2BE2WIp013834@red.freebsd.org> Date: Mon, 11 Mar 2013 14:02:32 GMT From: Ivan Klymenko To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/176851: [patch] net-im/pidgin segmentation fault with cap plugin X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Mar 2013 14:10:01 -0000 >Number: 176851 >Category: ports >Synopsis: [patch] net-im/pidgin segmentation fault with cap plugin >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Mar 11 14:10:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Ivan Klymenko >Release: FreeBSD 10.0-CURRENT >Organization: individual >Environment: FreeBSD nonamehost 10.0-CURRENT FreeBSD 10.0-CURRENT #0: Sat Mar 9 23:29:58 EET 2013 root@nonamehost:/usr/obj/usr/src/sys/GENERIC amd64 >Description: when compiling the port encounter the following warnings: .. cap.c: In function 'generate_prediction_for': cap.c:46: warning: initialization makes integer from pointer without a cast cap.c:97: warning: assignment makes integer from pointer without a cast cap.c:99: warning: passing argument 1 of 'strcmp' makes pointer from integer without a cast .. and occurs segmentation fault: Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 80a806400 (LWP 101046/pidgin)] 0x000000080cb03ef1 in get_stats_for (buddy=) at cap.c:99 99 if(sta_id && !strcmp(sta_id, "offline")) { >How-To-Repeat: run pidgin >Fix: fixing in patch Patch attached with submission follows: --- pOidgin/plugins/cap/cap.c.orig 2013-03-11 15:40:09.000000000 +0200 +++ pOidgin/plugins/cap/cap.c 2013-03-11 15:40:17.000000000 +0200 @@ -43,7 +43,7 @@ int threshold = purple_prefs_get_int("/plugins/gtk/cap/threshold"); int min_minute = (current_minute - threshold) % 1440; int max_minute = (current_minute + threshold) % 1440; - char *sql, sta_id = NULL; + char *sql, *sta_id = NULL; sqlite3_stmt *stmt = NULL; const char *tail = NULL; int rc; >Release-Note: >Audit-Trail: >Unformatted: