bugGNU nano - Bugs: bug #26198, nano-2.0.9 segfaults on search

 
 

bug #26198: nano-2.0.9 segfaults on search

Submitted by:  None
Submitted on:  Thu 16 Apr 2009 09:19:23 AM UTC  
 
Severity: 4 - ImportantStatus: Fixed
Assigned to: Chris Allegretta <astyanax>Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 22 Jul 2016 02:26:39 PM UTC, comment #4:

Most likely the crash was fixed in 2010, by commit df8c3de, which avoided a misinterpretation of (size_t)-1. (But that fix caused a new and subtler bug: bug #48048, fixed by commit 660584c.)

Benno Schulenberg <bens>
Project Administrator
Sun 23 Feb 2014 12:03:51 PM UTC, comment #3:

Closing, as it does not seem to be nano's fault. If, however, this problem persists with recent versions of everything, please reopen.

Benno Schulenberg <bens>
Project Administrator
Tue 30 Jun 2009 09:53:30 AM UTC, comment #2:

I wonder how the Linux-related links apply to Solaris. I'm having the same problem on a Solaris/x86 system when building Nano using Sun Studio as for amd_64. I'm linking it against my own ncurses build (using pkgsrc), and Solaris's standard libc. Works just fine if building with the same compiler and tools on the same system, but for a 32bit ABI.

(Haven't gotten gdb in place yet.)

Filip Hajny <mamash>
Fri 01 May 2009 12:27:49 PM UTC, comment #1:

I've seen this problem before, as in the following links:

http://lists.gnu.org/archive/html/nano-devel/2005-08/msg00008.html
http://lists.gnu.org/archive/html/nano-devel/2006-10/msg00011.html

The problem is not in nano, but in the broken unofficial patches that that version of SuSE applied to its C library. Upgrading to at least SuSE 10.1 should fix it.

Anonymous
Thu 16 Apr 2009 09:19:23 AM UTC, original submission:

I compiled nano-2.0.9 under SLES-9.3 x86_64 and I get a segfault each time a do a search.

(gdb) bt
#0 0x0000002a9583bcb3 in malloc_consolidate () from /lib64/tls/libc.so.6
#1 0x0000002a9583da62 in _int_malloc () from /lib64/tls/libc.so.6
#2 0x0000002a9583f179 in malloc () from /lib64/tls/libc.so.6
#3 0x0000000000416fc6 in nmalloc (howmuch=738) at utils.c:365
#4 0x0000000000418d1e in statusbar (msg=0x41aa1c "Search Wrapped") at winio.c:2338
#5 0x00000000004126ab in findnextstr (whole_word=false, no_sameline=false, begin=0x5d8c70, begin_x=0,
needle=0x5d8db0 "owe", needle_len=0x0) at search.c:369
#6 0x0000000000413363 in do_search () at search.c:460
#7 0x000000000040eb8a in do_input (meta_key=0x7fbfffeeeb, func_key=0x7fbfffeeec, s_or_t=0x7fbfffeeed,
ran_func=0x7fbfffeeee, finished=0x7fbfffeeef, allow_funcs=true) at nano.c:1521
#8 0x000000000040f0f6 in main (argc=1, argv=0x7fbffff468) at nano.c:2306

[root@host tmp]#nano --version
GNU nano version 2.0.9 (compiled 15:05:37, Apr 3 2009)
(C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
Free Software Foundation, Inc.
Email: -unavailable- Web: http://www.nano-editor.org/
Compiled options: --enable-utf8

[root@host tmp]#cat /etc/SuSE-release
SUSE LINUX Enterprise Server 9 (x86_64)
VERSION = 9
PATCHLEVEL = 3

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by bens (Posted a comment)
  • -unavailable- added by mamash (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 22 Jul 2016 02:26:39 PM UTCbensSeverity3 - Normal=>4 - Important
      StatusWorks For Me=>Fixed
      Assigned toNone=>astyanax
    Sun 23 Feb 2014 12:03:51 PM UTCbensStatusNone=>Works For Me
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1