all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* error in process filter: Stack overflow in regexp matcher
@ 2018-12-24 21:17 nenadmitrovic04
  2018-12-25 11:08 ` tomas
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: nenadmitrovic04 @ 2018-12-24 21:17 UTC (permalink / raw)
  To: help-gnu-emacs

I am trying to execute this piece of code:
 (rest (file-seq (file (str "corpus/" "ham"))).
When I execute I get this error: "error in process filter: Stack overflow in regexp matcher".
I have 1400 files in corpus/ham folder. But when I execute only three file it works.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: error in process filter: Stack overflow in regexp matcher
  2018-12-24 21:17 error in process filter: Stack overflow in regexp matcher nenadmitrovic04
@ 2018-12-25 11:08 ` tomas
  2018-12-26 17:53 ` Stefan Monnier
  2018-12-28 16:02 ` Gene
  2 siblings, 0 replies; 6+ messages in thread
From: tomas @ 2018-12-25 11:08 UTC (permalink / raw)
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 969 bytes --]

On Mon, Dec 24, 2018 at 01:17:42PM -0800, nenadmitrovic04@gmail.com wrote:
> I am trying to execute this piece of code:
>  (rest (file-seq (file (str "corpus/" "ham"))).

To be able to help, people here would need at least

 - a clue on what `file-seq' does (it doesn't seem to be in
   the "standard" set of functions
 - an idea about the regular expression you are applying

> When I execute I get this error: "error in process filter: Stack overflow in regexp matcher".
> I have 1400 files in corpus/ham folder. But when I execute only three file it works.

As a very uneducated guess: file-seq concatenates the content of those
1400 files, and the regexp is anchored in some way that it can't let
go partial matches anchored at the beginning of this huge text. Or
something similar.

Perhaps you'll have to break up the problem into smaller pieces, but it's
difficult to say without having an idea of what "the problem" is.

Cheers
-- tomás

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: error in process filter: Stack overflow in regexp matcher
  2018-12-24 21:17 error in process filter: Stack overflow in regexp matcher nenadmitrovic04
  2018-12-25 11:08 ` tomas
@ 2018-12-26 17:53 ` Stefan Monnier
  2018-12-26 18:18   ` John Shahid
  2018-12-26 18:29   ` Kevin J. McCarthy
  2018-12-28 16:02 ` Gene
  2 siblings, 2 replies; 6+ messages in thread
From: Stefan Monnier @ 2018-12-26 17:53 UTC (permalink / raw)
  To: help-gnu-emacs

> I am trying to execute this piece of code:
>  (rest (file-seq (file (str "corpus/" "ham"))).

I can't find any `file-seq` in Emacs's source code.  So you seem to be
using some external library.  Would be useful to give that kind
of information.


        Stefan




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: error in process filter: Stack overflow in regexp matcher
  2018-12-26 17:53 ` Stefan Monnier
@ 2018-12-26 18:18   ` John Shahid
  2018-12-26 18:29   ` Kevin J. McCarthy
  1 sibling, 0 replies; 6+ messages in thread
From: John Shahid @ 2018-12-26 18:18 UTC (permalink / raw)
  To: help-gnu-emacs


I think this was a cross post from the clojure mailing list [1].  Looks
like the issue was eventually resolved.

[1]: https://groups.google.com/forum/#!search/messageid$3A%222e6bc5d9-7d14-4c47-85b4-47e7f1c6ee5e@googlegroups.com%22/clojure/At7QehmZ1Ok/q0-Zdg4cAgAJ

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>> I am trying to execute this piece of code:
>>  (rest (file-seq (file (str "corpus/" "ham"))).
>
> I can't find any `file-seq` in Emacs's source code.  So you seem to be
> using some external library.  Would be useful to give that kind
> of information.
>
>
>         Stefan



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: error in process filter: Stack overflow in regexp matcher
  2018-12-26 17:53 ` Stefan Monnier
  2018-12-26 18:18   ` John Shahid
@ 2018-12-26 18:29   ` Kevin J. McCarthy
  1 sibling, 0 replies; 6+ messages in thread
From: Kevin J. McCarthy @ 2018-12-26 18:29 UTC (permalink / raw)
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 784 bytes --]

On Wed, Dec 26, 2018 at 12:53:09PM -0500, Stefan Monnier wrote:
>> I am trying to execute this piece of code:
>>  (rest (file-seq (file (str "corpus/" "ham"))).
>
>I can't find any `file-seq` in Emacs's source code.  So you seem to be 
>using some external library.  Would be useful to give that kind 
>of information.

It looks like the poster also posted to stackoverflow[1].  He appears to 
be running clojure inside emacs.  One of the responders there suggested 
this[2] might be related to the problem.  Maybe a regexp in the mode 
used is overflowing?


[1] https://stackoverflow.com/questions/53915793/error-in-process-filter-stack-overflow-in-regexp-matcher
[2] https://stackoverflow.com/questions/31206568/how-to-fix-stack-overflow-in-regexp-matcher-in-emacs

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: error in process filter: Stack overflow in regexp matcher
  2018-12-24 21:17 error in process filter: Stack overflow in regexp matcher nenadmitrovic04
  2018-12-25 11:08 ` tomas
  2018-12-26 17:53 ` Stefan Monnier
@ 2018-12-28 16:02 ` Gene
  2 siblings, 0 replies; 6+ messages in thread
From: Gene @ 2018-12-28 16:02 UTC (permalink / raw)
  To: help-gnu-emacs

On Monday, December 24, 2018 at 4:17:44 PM UTC-5, nenadmi...@gmail.com wrote:
> I am trying to execute this piece of code:
>  (rest (file-seq (file (str "corpus/" "ham"))).
> When I execute I get this error: "error in process filter: Stack overflow in regexp matcher".
> I have 1400 files in corpus/ham folder. But when I execute only three file it works.

At first the `str' -- not being `concat' -- led me to beleive that your sexp might be autolisp or visual lisp.
Further research leads me to believe it may be clojure.
If so, you can place your code in an org-mode file and wrap

#+begin_src clojure
(rest 
 (file-seq 
  (file 
   (str "corpus/" "ham")
)))
#+end_src

;;^-- note may not be accurate, but was presented as a gist representation of 
;;    the form

There is at least one clojure REPL available for use in emacs as well.

Best of luck in your debugging attempts.

Gene


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-12-28 16:02 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-12-24 21:17 error in process filter: Stack overflow in regexp matcher nenadmitrovic04
2018-12-25 11:08 ` tomas
2018-12-26 17:53 ` Stefan Monnier
2018-12-26 18:18   ` John Shahid
2018-12-26 18:29   ` Kevin J. McCarthy
2018-12-28 16:02 ` Gene

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.