From owner-freebsd-questions@FreeBSD.ORG Sun Jun 30 15:53:18 2013 Return-Path: Delivered-To: freebsd-questions@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 5EC0D4D8 for ; Sun, 30 Jun 2013 15:53:18 +0000 (UTC) (envelope-from fernando.apesteguia@gmail.com) Received: from mail-we0-x235.google.com (mail-we0-x235.google.com [IPv6:2a00:1450:400c:c03::235]) by mx1.freebsd.org (Postfix) with ESMTP id ED001123E for ; Sun, 30 Jun 2013 15:53:17 +0000 (UTC) Received: by mail-we0-f181.google.com with SMTP id p58so2638457wes.12 for ; Sun, 30 Jun 2013 08:53:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=0TZmrHXsoBvhmoGo9CExOMY0ZIMpa5v2U5nfg5JEdPA=; b=AZ9FdcE5Q8bHvYnql4cquKicVB/jK9XoOtDTiD6789AmXtZsyCJUSOsxlVohp65HTL Nl1HFJnk0XDc+vKRD++HteQlIvuMM0QERie9Se2mCPCnbSM3sAUB6e/EA8PjuH30pzky wFFQ7tUD60A8qGnfqGn0Pv89UZM4YhsFEN6qsQFOqTaFYCYq6JzC9lQyz6B9xW0BJnpW mV6WPUzRhjhW+ERLFZlg6QqIIDkWqTRpN9LlVeX6sIFMQd+30niy1NgonMPG+Rswpd+m kZpI5IToUZ3hcCv4mDB1H1nXkq0lyo1caUrd4+8ewZQLIvl58DYrQCbfRJyp8iia8+25 iC2g== MIME-Version: 1.0 X-Received: by 10.180.82.232 with SMTP id l8mr9730612wiy.23.1372607597173; Sun, 30 Jun 2013 08:53:17 -0700 (PDT) Received: by 10.180.189.65 with HTTP; Sun, 30 Jun 2013 08:53:17 -0700 (PDT) In-Reply-To: <51D05099.8060001@passap.ru> References: <51D05099.8060001@passap.ru> Date: Sun, 30 Jun 2013 17:53:17 +0200 Message-ID: Subject: Re: Debugging a crash From: =?ISO-8859-1?Q?Fernando_Apestegu=EDa?= To: Boris Samorodov Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: "freebsd-questions@freebsd.org" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Jun 2013 15:53:18 -0000 On Sun, Jun 30, 2013 at 5:36 PM, Boris Samorodov wrote: > Hi All, > > I get an application crashing. Build some libs with debug symbols. > Here is the gdb log: > ----- > Program received signal SIGSEGV, Segmentation fault. > [Switching to Thread 809806400 (LWP 101133/photoprint)] > strtol_l (nptr=0x0, endptr=0x0, base=10, locale=) > at /usr/src/lib/libc/stdlib/strtol.c:73 > 73 } while (isspace_l((unsigned char)c, locale)); > Current language: auto; currently minimal > (gdb) bt > #0 strtol_l (nptr=0x0, endptr=0x0, base=10, locale= ^^^^ It seems you are passing a NULL str to strtol. > out>) at /usr/src/lib/libc/stdlib/strtol.c:73 > #1 0x00000008017d951c in ps_parameters (v=0x809d0dc00, name=0x80996c120 > "JCLBOXHOLDTYPE", description=0x7fffffffd0a8) at print-ps.c:380 > #2 0x00000008017996df in stp_describe_parameter (v=0x809d0dc00, > name=0x80996c120 "JCLBOXHOLDTYPE", description=0x7fffffffd0a8) at > print-vars.c:1687 > #3 0x000000000046cfd2 in ?? () > #4 0x00000000004627a1 in ?? () > #5 0x0000000000461da4 in ?? () > #6 0x00000000004657fe in ?? () > #7 0x0000000000422863 in ?? () > #8 0x0000000000421f45 in ?? () > #9 0x000000000041054f in ?? () > #10 0x0000000800719000 in ?? () > #11 0x0000000000000000 in ?? () > (gdb) fr 0 > #0 strtol_l (nptr=0x0, endptr=0x0, base=10, locale= out>) at /usr/src/lib/libc/stdlib/strtol.c:73 > 73 } while (isspace_l((unsigned char)c, locale)); > (gdb) fr 1 > #1 0x00000008017d951c in ps_parameters (v=0x809d0dc00, name=0x80996c120 > "JCLBOXHOLDTYPE", description=0x7fffffffd0a8) at print-ps.c:380 > 380 num_choices = atoi(stp_mxmlElementGetAttr(option, > "num_choices")); > (gdb) fr 2 > #2 0x00000008017996df in stp_describe_parameter (v=0x809d0dc00, > name=0x80996c120 "JCLBOXHOLDTYPE", description=0x7fffffffd0a8) at > print-vars.c:1687 > 1687 stp_printer_describe_parameter(v, name, description); > (gdb) > ----- > > How should I proceed with debugging? Thanks! > -- > WBR, Boris Samorodov (bsam) > FreeBSD Committer, http://www.FreeBSD.org The Power To Serve > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" >