Recursive grep crashing

14 views
Skip to first unread message

Guy Rouillier

unread,
Jul 4, 2022, 5:11:49 AM7/4/22
to TSEPro Support
I've had this issue for awhile, but waited to report it until I tried the latest 4.43 release with SemWare Grep v2.05.  I'm still encountering it there.  I don't really know when this started, since it only happens under a particular condition.

In brief, the following use of the grep,exe shipped with TSE Pro: 

D:\Projects>grep -id terminal *.json

causes this crash:


However, if I switch one directory down, then grep succeeds:

D:\Projects\vscode>grep -id terminal *.json
SemWare Grep v2.05 for Win32 [Apr 14 2020]
Copyright 1996-2020 SemWare Corp. All rights reserved worldwide.

File: D:\Projects\vscode\.vscode\launch.json
    // "console": "integratedTerminal",
File: D:\Projects\vscode\GtkSharpApp\dot-vscode\launch.json
            // For more information about the 'console' field, see https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md#console-terminal-window

And not all such uses of recursive grep crash.  For example, I just tried this, which succeeded, finding hundreds of occurrences many directories deep:

    D:\Projects>grep -id const *.java

Maybe it's encountering a .json file with a really long line length?

--
Guy Rouillier

Guy Rouillier

unread,
Jul 4, 2022, 7:49:17 AM7/4/22
to TSEPro Support
After sending, I discovered that by adding the verbose option -v, I could see exactly where grep was crashing:

=====
D:\Projects\kotlin\kotlin-eclipse\kotlin-eclipse-ui-test\common_testData\ide>grep -idv terminal *.json
SemWare Grep v2.05 for Win32 [Apr 14 2020]
Copyright 1996-2020 SemWare Corp. All rights reserved worldwide.

Searching D:\Projects\kotlin\kotlin-eclipse\kotlin-eclipse-ui-test\common_testData\ide\configuration\extractVersions\maven-central-response.json
--> Crashes here
=====

But if I descend one more directory down, grep does NOT crash:

=====
D:\Projects\kotlin\kotlin-eclipse\kotlin-eclipse-ui-test\common_testData\ide\configuration>grep -idv terminal *.json
SemWare Grep v2.05 for Win32 [Apr 14 2020]
Copyright 1996-2020 SemWare Corp. All rights reserved worldwide.

Searching D:\Projects\kotlin\kotlin-eclipse\kotlin-eclipse-ui-test\common_testData\ide\configuration\extractVersions\maven-central-response.json
--> Exits normally
=====

From this, I think grep must be encountering a path length issue.

--
Guy Rouillier

S.E. Mitchell

unread,
Jul 4, 2022, 11:58:37 AM7/4/22
to TSEPro Support

--

---
You received this message because you are subscribed to the Google Groups "SemWare TSE Pro text editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email to semware+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/semware/em41a9bb84-9d88-4bb2-be72-5e3dcf762493%402266dc02.com.

Guy Rouillier

unread,
Jul 5, 2022, 4:05:12 AM7/5/22
to sem...@googlegroups.com
This version did not crash when running several searches that have crashed for me previously.  So, looks great - thanks, Sammy!  I really prefer the simplified syntax compared to GNU grep, so didn't want to have to give it up.  Much appreciated.

--
Guy Rouillier

S.E. Mitchell

unread,
Jul 5, 2022, 7:09:00 AM7/5/22
to TSEPro Support
Glad to hear it!
And glad to see that you're still around and kicking! :)
--
Sammy Mitchell
> To view this discussion on the web visit https://groups.google.com/d/msgid/semware/em19e1c822-f7e8-4f4f-bfe0-e01eaac14a7a%4008728e43.com.

Guy Rouillier

unread,
Jul 6, 2022, 4:17:41 AM7/6/22
to TSEPro Support
Thanks, and same to you. I genuinely appreciate that you've continued
to maintain the SemWare editors as long as you have. I started with
QEdit for DOS, then QEdit OS/2, and finally TSE. So, I've been on this
journey with you. :)

--
Guy Rouillier

On 7/5/2022 7:08:43 AM, "S.E. Mitchell" <sammy.m...@gmail.com>
>To view this discussion on the web visit https://groups.google.com/d/msgid/semware/CA%2BgEvkbcQFK9NC8B5Fk0Ut_K_fkR8FBfcgHeAWZiO%3DpObMwmBw%40mail.gmail.com.

William W. Viergever

unread,
Jul 7, 2022, 4:54:36 PM7/7/22
to sem...@googlegroups.com
I started with QEdit for DOS, then QEdit OS/2, and finally TSE ...

Ditto.

Guy, methinks we're dating ourselves 😉


--------------------------------------------------------------
William W. Viergever
Viergever & Associates
Health Data Analysis / Systems Design & Development
3607 La Habra Way
Sacramento, CA 95864
wil...@viergever.net
www.viergever.net
 (916) 715-1768
--------------------------------------------------------------
To view this discussion on the web visit https://groups.google.com/d/msgid/semware/em950f35c8-ce8b-46e3-8a96-a6ca2fd38316%4013fe1f8a.com.

John McMahon

unread,
Jul 19, 2022, 10:31:06 PM7/19/22
to sem...@googlegroups.com
You are not alone. I started with Qedit v2.08 for DOS in the late 80's,
gifted from a work colleague at the time.

Regards
John McMahon
Regards
John McMahon
jo...@jspect.fastmail.com.au
0429 334 203
Reply all
Reply to author
Forward
0 new messages