From owner-freebsd-ports@FreeBSD.ORG Fri Apr 25 13:20:24 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 537CEF6A for ; Fri, 25 Apr 2014 13:20:24 +0000 (UTC) Received: from mail-ob0-x229.google.com (mail-ob0-x229.google.com [IPv6:2607:f8b0:4003:c01::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1A51012C4 for ; Fri, 25 Apr 2014 13:20:24 +0000 (UTC) Received: by mail-ob0-f169.google.com with SMTP id uz6so4231822obc.14 for ; Fri, 25 Apr 2014 06:20:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=iJ/Tie1KPH7gFfT67RMPgJ5MZ3dnkkqlZs2/ZMdqbsE=; b=vGm4ik7xZOJZGF5EI4RmmMrRTl7kDREzfu/vXmOQoER47mdFl5d76MMRET00IZIpoH zV75aixqUS+qW+33pkqTF87Xl0WjBGeehxj6m+wyt0lzQf8VRp4Gmik8rjhpy3rzymz8 kZC4pTgd6fbM/EB/yeXmMz/1JXFDm0NS7aruK0H2toeTbEJXL56zvemR7WTponAxQOUj TybO0pPIX5t8VU4ulKB9lnXQO4wI7stqwttGCqpdt1QgwebsOD0OdieNjm+jh+Mhfbd6 /XFMxw7bUJIuYNcRHF1MeoiTj0MEE7ICEhIWTWaey2arh00iwOR49Qb7bjUJYg1eCGvQ u4gA== MIME-Version: 1.0 X-Received: by 10.60.62.34 with SMTP id v2mr6852137oer.37.1398432023369; Fri, 25 Apr 2014 06:20:23 -0700 (PDT) Sender: robbak@gmail.com Received: by 10.76.174.9 with HTTP; Fri, 25 Apr 2014 06:20:23 -0700 (PDT) In-Reply-To: <535A4E09.5000006@passap.ru> References: <338BD4B8-F25A-4CC5-A5FA-451C48BB5A5C@lassitu.de> <535A4E09.5000006@passap.ru> Date: Fri, 25 Apr 2014 23:20:23 +1000 X-Google-Sender-Auth: ny73WGvAO7aI5IDVAGWd3nC4kpM Message-ID: Subject: Re: foomatic-rip and foo2zjs From: Robert Backhaus To: Boris Samorodov Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.17 Cc: Stefan Bethke , Freebsd_mailinglist_PORTS X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Apr 2014 13:20:24 -0000 I had the foomatic-rip problem today, but didn't think of this- even though I read it yesterday. I found it myself by running it in gdb, seeing it had something to do with logging, and turning off debug. Anyway, here's a backtrace: - but the pointed line, 1200, just looks wrong - int fd =3D mkstemp (LOG_FILE "-XXXXXX.log"); - checked, edited, built - Yup= , that's it. Here's the patch: --- foomaticrip.c.orig 2014-04-25 23:16:06.000000000 +1000 +++ foomaticrip.c 2014-04-25 23:16:47.000000000 +1000 @@ -1197,7 +1197,7 @@ debug =3D 1; if (debug) { - int fd =3D mkstemp (LOG_FILE "-XXXXXX.log"); + int fd =3D mkstemp ("LOG_FILE-XXXXXX.log"); if (fd !=3D -1) logh =3D fdopen(fd, "w"); else Now to find who to send it to! (gdb) bt full #0 0x0000000800dae637 in snprintf () from /lib/libc.so.7 No symbol table info available. #1 0x0000000800dae6e2 in mkstemp () from /lib/libc.so.7 No symbol table info available. #2 0x00000000004046a1 in main (argc=3D1, argv=3D0x7fffffffe4a0) at foomaticrip.c:1200 fd =3D 32767 i =3D 6585344 verbose =3D 0 quiet =3D 0 showdocs =3D 0 str =3D 0x7fffffffe480 "" p =3D 0x0 filename =3D 0x7fffffffe4b0 "$=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD\= 177" path =3D 0x80062e0cd "H\211D$`A[AZAYAX_^YZX\235H\215d$\020=EF=BF=BD\220\220\220\220\220\220\220\= 220\220\220H\213\227=EF=BF=BD" genpdqfile =3D (FILE *) 0x0 ppdfh =3D (FILE *) 0x0 tmp =3D '\0' , "\212\031c\000\b\000\000\000\000\000\000\000\002\000\002\000=EF=BF=BD2=EF= =BF=BD\000\b\000\000\000=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD\177\0= 00\000\000|d\000\b\000\000\000\000=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD\177\= 000\000=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD\177\000\000\000\000\00= 0\000\000\000\000\000=EF=BF=BD:c\000\b", '\0' , "=EF=BF=BDb\000\b", '\0' , "\2108=EF=BF=BD\000\b", '\0' , "=EF=BF=BDQd\000\b\000\000\000\200=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD\177\= 000\000p=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD\177\000\000\000\000\000\000\00= 0\000\000\000p=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD\177\000\000W;c\000\b\000= \000\000m\025@ \000\000\000\000\000\004=EF=BF=BD\212\006\000\000\000\000=EF=BF=BD=EF=BF=BD= \217=EF=BF=BD\000\000\000\0000=EF=BF=BDd\000\b\000\000\000\001\000"... pstoraster =3D '\0' havefilter =3D -1138054832 havepstoraster =3D -511 filelist =3D (dstr_t *) 0x801419040 arglist =3D (list_t *) 0x801418040 On 25 April 2014 21:59, Boris Samorodov wrote: > 23.04.2014 00:23, Stefan Bethke =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > > Two quick observations I=E2=80=99m too lazy to file PRs for: > > > > foomatic-rip (from foomatic-filters-4.0.17) coredumps if you set debug: > 1 in /usr/local/etc/foomatic/filter.conf. I haven=E2=80=99t checked what = is going > wrong specifically. It is possible to run foomatic-rip form the command > line with -v and with debug: 0, though. > > At a quick glance: there is a definition of preferred shell. It is > /bin/bash (commented out though). Did you try to define one? I'd > say that defining it to /usr/local/bin/bash may help. > > > foo2zjs-20140401 requires textproc/gsed, but it=E2=80=99s not a depende= ncy of > the port. Not sure it really has to be gsed (instead of /usr/bin/sed), bu= t > that is what it calls. > > Fixed, thanks! > > -- > WBR, Boris Samorodov (bsam) > FreeBSD Committer, http://www.FreeBSD.org The Power To Serve > _______________________________________________ > freebsd-ports@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org"