[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#204121: marked as done (cmucl: RUN-PROGRAM hangs sometimes (with :OUTPUT :STREAM))



Your message dated Fri, 23 Jun 2023 15:36:03 +0000
with message-id <[🔎] E1qCipP-001hLw-9U@fasolo.debian.org>
and subject line Bug#1038934: Removed package(s) from unstable
has caused the Debian Bug report #204121,
regarding cmucl: RUN-PROGRAM hangs sometimes (with :OUTPUT :STREAM)
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
204121: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=204121
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: cmucl
Version: 3.1.4
Severity: normal

A very, very odd combination of features is causing RUN-PROGRAM to hang for
me.  I'm having trouble debugging it further, so I thought I'd ask for
suggestions.

I'm running on Debian (testing), using the CMUCL packages v3.1.4, although the
header when I start lisp says "3.1.2 18d+ 24 September 2002".  I've confirmed
this behavior with both the "cmucl-small" core as well as the "cmucl-safe"
core.

It happens that I'm trying to run the program "identify" from the
imagemagick (5.4.4.5-1) package, but I suspect that isn't critical.
What _is_ important (?) is that identify usually returns a single line of
output, but on some files (animated GIFs) will return multiple output lines.

OK, enough preable.  Here's the call the fails:

(run-program "identify" '("/home/geddis/file123456789.gif") :output :stream)

Attempting to execute this results in a call that never returns.  I can
^C out of it, however.  The backtrace is:

0: ("Foreign function call land")
1: ("Foreign function call land")
2: ("Foreign function call land")
3: ("Foreign function call land")
4: ("Foreign function call land")
5: (#:G144)[:CLEANUP]
6: (COMMON-LISP::SUB-SERVE-EVENT 1 0)
7: (SYSTEM:SERVE-ALL-EVENTS 1)
8: (PROCESS-WAIT #<process 18791 :RUNNING> NIL)
9: (RUN-PROGRAM "identify"
                ("identify" "/home/geddis/file123456789.gif")
                :ENV
                NIL
                ...)
10: (INTERACTIVE-EVAL
     (RUN-PROGRAM "identify"
                  '("/home/geddis/file123456789.gif")
                  :OUTPUT
                  :STREAM))
11: (COMMON-LISP::%TOP-LEVEL)
12: (COMMON-LISP::RESTART-LISP)

Now comes the odd part.  Most "similar" calls work just fine.  I have
discovered that _all_ of the following features are critical:

1. The file path must be at least that long.  Simply renaming the file to
"file12345678.gif" (or anything shorter) results in everything working just
fine.  But if I make it as long as the example above, or longer, using
either the file name or additional subdirectories, then the call hangs.

2. The file itself must be an animated GIF.  I suspect the significance of
this is that "identify" returns a single line of output for most GIF images,
but multiple lines of output for animated GIFs.

3. :OUTPUT :STREAM is required.  If I do :OUTPUT T instead, for example, then
the call completes just fine.

_Something_ really odd sure is going on.  From the behavior, dependent on
the length of a string argument, it sure leads me to suspect some kind of
C buffer overflow.

Any ideas?  Patches?  Workarounds?

Much appreciated,

        -- Don

-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux sidious 2.4.20-3-686 #1 Sat Jun 7 22:34:55 EST 2003 i686
Locale: LANG=C, LC_CTYPE=C

Versions of packages cmucl depends on:
ii  common-lisp-controller        3.67       This is a Common Lisp source and c
ii  libc6                         2.3.1-16   GNU C Library: Shared libraries an

-- no debconf information



--- End Message ---
--- Begin Message ---
Version: 21d-2.1+rm

Dear submitter,

as the package cmucl has just been removed from the Debian archive
unstable we hereby close the associated bug reports.  We are sorry
that we couldn't deal with your issue properly.

For details on the removal, please see https://bugs.debian.org/1038934

The version of this package that was in Debian prior to this removal
can still be found using https://snapshot.debian.org/.

Please note that the changes have been done on the master archive and
will not propagate to any mirrors until the next dinstall run at the
earliest.

This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
ftpmaster@ftp-master.debian.org.

Debian distribution maintenance software
pp.
Scott Kitterman (the ftpmaster behind the curtain)

--- End Message ---

Reply to: