GNU nano - Bugs: bug #56434, in current git, some syntaxes...
You are not allowed to post comments on this tracker with your current authentication level.
bug #56434: in current git, some syntaxes cause a crash
Submitter: | Benno Schulenberg <bens> | ||
Submitted: | Mon 03 Jun 2019 05:35:07 PM UTC | ||
Severity: | 5 - Blocker | Status: | Fixed |
Assigned to: | None | Open/Closed: | Closed |
Tue 04 Jun 2019 10:50:34 AM UTC, comment #5: |
Benno Schulenberg <bens> |
Tue 04 Jun 2019 03:03:47 AM UTC, comment #4: The third issue is because the syntax file never reads the color command. There is no syntax command so the file can never be fully parsed. This patch prints an error message if an included file has no syntax command. But an invalid color command will still only fail when actually loaded for a buffer. |
Brand Huntsman <brand> |
Mon 03 Jun 2019 10:45:48 PM UTC, comment #3: Patch fixes the first issue. It also fixes the second issue if you were testing it with an empty buffer. |
Brand Huntsman <brand> |
Mon 03 Jun 2019 05:57:27 PM UTC, comment #2: When the content is changed to just:
|
Benno Schulenberg <bens> |
Mon 03 Jun 2019 05:42:32 PM UTC, comment #1: It happens also when the entire content of python.nanorc is:
|
Benno Schulenberg <bens> |
Mon 03 Jun 2019 05:35:07 PM UTC, original submission:
To reproduce, change your ~/.nanorc to contain just this line:
|
Benno Schulenberg <bens> |
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follow 6 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2019-06-04 | bens | Status | None | Fixed | |
Open/Closed | Open | Closed | |||
Summary | nano crashes with certain syntaxes | in current git, some syntaxes cause a crash | |||
2019-06-04 | brand | Attached File | - | Added rcfile-show-error-if-a-syntax-file-is-missing-a-syntax-command.patch, #47024 | |
2019-06-03 | brand | Attached File | - | Added 0001-prevent-a-crash-if-no-syntax-or-default-syntax-is-fo.patch, #47021 | |
2019-06-03 | bens | Carbon-Copy | - | Added brand |
Powered by Savane 3.13-0329.
Corresponding source code
Fixed in git, commit fb10a94f. Thanks for the patch.
And closing because unreleased.
(The error message for a missing syntax command I will let be -- when people make a new syntax, they most likely copy an existing file, so the basic commands will be present.)