Article View: gnu.emacs.vm.bug
Article #318Re: PLEASE TRY THIS PATCH
From: Uday S Reddy
Date: Sun, 10 Jan 2010 17:09
Date: Sun, 10 Jan 2010 17:09
41 lines
3546 bytes
3546 bytes
blueman wrote: > Sounds like Cygwin 1.5 > You can see the version by running "uname -r" Good guess. It says: 1.5.25(0.156/4/2). > 3. Alternatively, you could try to do something like the following manually > (by evaling each of the following sexp one at a time) First fill a > buffer with >64K of stuff. Then run sequentially: > > (start-process "test" "tempbuff" shell-file-name shell-command-switch "cat > testfile")) > (process-send-region process (point-min) (point-max)) > (process-send-region process (point-min) (point-max)) > (process-send-region process (point-min) (point-max)) > (process-send-region process (point-min) (point-max)) > (process-send-region process (point-min) (point-max)) > ; etc. repeat and seen when/whether crashes > ; also check in another window whether the file testfile is getting its data > ; when/if you are convinced this is working fine, continue with the > ; following code: > (process-send-eof process) > (while (eq 'run (process-status process)) > (accept-process-output process) > (sit-for 0)) Nothing goes wrong when I do this. The testfile got created normally. It took a while for all the stuff to go into the testfile though. I played with some variations of it, and finally realized that the problem must be the handling of the output. In your test process, the output is going to the testfile. If I just use 'cat' as the command instead of 'cat > testfile', then sure enough the problem reappears. It starts hanging somewhere above 64K. If you look up the ELisp manual section on "Receiving output from processes", you should be able to code this more safely. Cheers, Uday
Technical Details
Message-ID:
<hid1l2$k9c$1@north.jnrs.ja.net>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder.news-service.com!news.mixmin.net!aioe.org!news.stack.nl!feeds.news.ox.ac.uk!news.ox.ac.uk!feed2.jnfs.ja.net!jnfs.ja.net!times.reader.netnews.ja.net!not-for-mailReferences:
<m2d41p7sho.fsf@consult.pretender> <hi0e67$5b2$1@north.jnrs.ja.net> <m2tyv03yq9.fsf@consult.pretender> <m2pr5o3ycq.fsf@consult.pretender> <m2ljgc3xd3.fsf@consult.pretender> <hi2c72$l5i$1@north.jnrs.ja.net> <m2ocl7yvsr.fsf@consult.pretender> <hi4d25$81f$1@north.jnrs.ja.net> <m24omxzybc.fsf@consult.pretender> <hi54kr$euu$1@north.jnrs.ja.net> <m2r5q1ybz4.fsf@consult.pretender> <m2my0pybcx.fsf@consult.pretender> <hi5peg$kmp$1@north.jnrs.ja.net> <m2iqbdxbuj.fsf@consult.pretender> <hi73bg$1cs$1@north.jnrs.ja.net> <m2aawownfr.fsf_-_@consult.pretender> <hi80m7$9sa$1@north.jnrs.ja.net> <m2pr5kuzoi.fsf@consult.pretender> <hi88sr$c2j$1@north.jnrs.ja.net> <m28wc6vncg.fsf@consult.pretender> <hicmei$h4k$1@north.jnrs.ja.net> <m2my0mt133.fsf@consult.pretender>Show Full Headers
Complete Article Headers
X-Google-Thread: a16957f451,747cd7667796b3e3 X-Google-Attributes: gida16957f451,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder.news-service.com!news.mixmin.net!aioe.org!news.stack.nl!feeds.news.ox.ac.uk!news.ox.ac.uk!feed2.jnfs.ja.net!jnfs.ja.net!times.reader.netnews.ja.net!not-for-mail From: Uday S Reddy <uDOTsDOTreddy@cs.bham.ac.uk> Newsgroups: gnu.emacs.vm.bug Subject: Re: PLEASE TRY THIS PATCH Date: Sun, 10 Jan 2010 17:09:58 +0000 Organization: Janet Usenet Reading Service. Lines: 41 Message-ID: <hid1l2$k9c$1@north.jnrs.ja.net> References: <m2d41p7sho.fsf@consult.pretender> <hi0e67$5b2$1@north.jnrs.ja.net> <m2tyv03yq9.fsf@consult.pretender> <m2pr5o3ycq.fsf@consult.pretender> <m2ljgc3xd3.fsf@consult.pretender> <hi2c72$l5i$1@north.jnrs.ja.net> <m2ocl7yvsr.fsf@consult.pretender> <hi4d25$81f$1@north.jnrs.ja.net> <m24omxzybc.fsf@consult.pretender> <hi54kr$euu$1@north.jnrs.ja.net> <m2r5q1ybz4.fsf@consult.pretender> <m2my0pybcx.fsf@consult.pretender> <hi5peg$kmp$1@north.jnrs.ja.net> <m2iqbdxbuj.fsf@consult.pretender> <hi73bg$1cs$1@north.jnrs.ja.net> <m2aawownfr.fsf_-_@consult.pretender> <hi80m7$9sa$1@north.jnrs.ja.net> <m2pr5kuzoi.fsf@consult.pretender> <hi88sr$c2j$1@north.jnrs.ja.net> <m28wc6vncg.fsf@consult.pretender> <hicmei$h4k$1@north.jnrs.ja.net> <m2my0mt133.fsf@consult.pretender> NNTP-Posting-Host: gromit.cs.bham.ac.uk Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: north.jnrs.ja.net 1263143394 20780 147.188.193.16 (10 Jan 2010 17:09:54 GMT) X-Complaints-To: usenet@north.jnrs.ja.net NNTP-Posting-Date: Sun, 10 Jan 2010 17:09:54 +0000 (UTC) User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) In-Reply-To: <m2my0mt133.fsf@consult.pretender>