Re: Segfaults in libc-2.19 w/ 2.9.2

Andreas Schamanek <[email protected]>
Newsgroups gmane.editors.nano.general
Message-ID <[email protected]>
Hi everyone,

After several hours editing the file where I experienced the last 
crash, this time, without any problems I eventually managed to provoke 
another segfault. As Benno suggested, I tried to reproduce the exact 
same scenario, and it worked! It's that rare moment of great joy where 
for once you are actually glad the program crashes ;)

I haven't yet recompiled nano with Brand Huntsman's patch, however, I 
was able to narrow the crash scenario down quite a bit (at least on my 
system) and wanted to share this already. Maybe the bug is apparent, 
anyway:

1) Make a backup of .nanorc: `mv .nanorc .nanorc.bak`
2) Create .nanorc with only `set trimblanks`, e.g with

    echo set trimblanks >~/.nanorc

3) Start nano without any options: `"nano"`
4) Type (copy-paste)

12345678901234567890123456789012345678901234567890123 x 1234567890123

5) Place cursor behind x (position 56) and type the following keys

   1 2 3 space 4 5 6

6) When hitting space the text at the end of the line ("1234567890123")
will wrap. When typing 5 the crash occurs, in my case e.g.

   kernel: [695546.591499] nano[32523]: segfault at 25bafff ip
   00007fe77bfbefdd sp 00007ffdf7f0e228 error 4 in
   libc-2.19.so[7fe77be86000+1a1000]


-- 
-- Andreas

     :-)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.