Date: Fri, 25 Apr 2014 23:20:23 +1000 From: Robert Backhaus <robbak@robbak.com> To: Boris Samorodov <bsam@passap.ru> Cc: Stefan Bethke <stb@lassitu.de>, Freebsd_mailinglist_PORTS <freebsd-ports@freebsd.org> Subject: Re: foomatic-rip and foo2zjs Message-ID: <CABG_4j=HydwYgJizCCwsdQD7A3-D=64YkBsb10xTsRweU7Hvqw@mail.gmail.com> In-Reply-To: <535A4E09.5000006@passap.ru> References: <338BD4B8-F25A-4CC5-A5FA-451C48BB5A5C@lassitu.de> <535A4E09.5000006@passap.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
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' <repeats 88 times>, "\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' <repeats 36 times>, "=EF=BF=BDb\000\b", '\0' <repeats 27 times>, "\2108=EF=BF=BD\000\b", '\0' <repeats 43 times>, "=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' <repeats 255 times> havefilter =3D -1138054832 havepstoraster =3D -511 filelist =3D (dstr_t *) 0x801419040 arglist =3D (list_t *) 0x801418040 On 25 April 2014 21:59, Boris Samorodov <bsam@passap.ru> 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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CABG_4j=HydwYgJizCCwsdQD7A3-D=64YkBsb10xTsRweU7Hvqw>