GNU nano - Bugs: bug #46778, segfault when opening as second...
You are not allowed to post comments on this tracker with your current authentication level.
bug #46778: segfault when opening as second argument a directory that was tried before
Submitter: | Benno Schulenberg <bens> | ||
Submitted: | Tue 29 Dec 2015 05:31:41 PM UTC | ||
Severity: | 4 - Important | Status: | Fixed |
Assigned to: | bens | Open/Closed: | Closed |
Wed 30 Dec 2015 10:28:38 AM UTC, comment #4: |
Benno Schulenberg <bens> |
Wed 30 Dec 2015 09:24:04 AM UTC, comment #3: The bug has appeared with r5304. The strange thing is that that same commit is in 2.4.3, but that version works okay. So it is not the commit in itself that is wrong -- it is the interaction with some earlier commit that is not included in 2.4.3. |
Benno Schulenberg <bens> |
Tue 29 Dec 2015 09:12:59 PM UTC, comment #2: Okay, fine -- it has something to do with the contents of ~/.nano/filepos_history. Even though doc/syntax is a directory, it still has an entry in that file: /home/ben/Repositories/ANYTHING/doc/syntax/ 1 78. How it got there, I don't know... Deleting it requires starting nano with --ignore. Once deleted, things start to work normally again.
|
Benno Schulenberg <bens> |
Tue 29 Dec 2015 08:44:56 PM UTC, comment #1: I am perplexed. I cannot reproduce it in a fresh checkout, but can reproduce it consistently in the source tree that I normally work in.
|
Benno Schulenberg <bens> |
Tue 29 Dec 2015 05:31:41 PM UTC, original submission:
To reproduce, run 'src/nano doc doc/syntax'.
|
Benno Schulenberg <bens> |
No files currently attached
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 4 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2016-01-14 | bens | Open/Closed | Open | Closed | |
2015-12-30 | bens | Status | None | Fixed | |
2015-12-30 | bens | Summary | nano segfaults when trying to open a directory that was tried before | segfault when opening as second argument a directory that was tried before | |
2015-12-29 | bens | Summary | nano segfaults when trying to open two directories | nano segfaults when trying to open a directory that was tried before |
Powered by Savane 3.13-02a9.
Corresponding source code
I can't figure out what it interacts with, but it doesn't matter, the fix is simple: don't attempt to position the cursor when no buffer was actually opened.
Fixed in SVN, r5514.