nano-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Nano-devel] memory error in svn rev 4547


From: Mike Frysinger
Subject: [Nano-devel] memory error in svn rev 4547
Date: Wed, 2 Jan 2013 01:34:04 -0500
User-agent: KMail/1.13.7 (Linux/3.7.1; KDE/4.6.5; x86_64; ; )

hmm, looks like there is a memory error new to the post 2.3.1 release

# check out svn rev 4545
$ ./configure --prefix=/usr --build=x86_64-pc-linux-gnu 
--host=x86_64-pc-linux-gnu --mandir=/usr/share/man --
infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc 
--localstatedir=/var/lib --libdir=/usr/lib64 --bindir=/bin --enable-color 
--enable-multibuffer --enable-nanorc --disable-wrapping-as-root 
--enable-speller --disable-justify --disable-debug --enable-nls --
enable-utf8 --disable-tiny --without-slang
$ make clean && make -j
$ ./src/nano /etc/nanorc ~/.nanorc
# hit alt+. to switch to the 2nd buffer
# things work fine

# check out svn rev 4547
$ make clean && make -j
$ ./src/nano /etc/nanorc ~/.nanorc
# hit alt+. to switch to the 2nd buffer
# see crash:

*** Error in `./src/nano': free(): invalid next size (fast): 0x000000000260a280 
***
======= Backtrace: =========
/lib64/libc.so.6(+0x7b81d)[0x7fc760b9881d]
/lib64/libc.so.6(+0x7c5f3)[0x7fc760b995f3]
./src/nano[0x426d12]
./src/nano[0x427d39]
./src/nano[0x428858]
./src/nano[0x40853a]
./src/nano[0x4085ad]
./src/nano[0x408616]
./src/nano[0x415864]
./src/nano[0x417183]
/lib64/libc.so.6(__libc_start_main+0xf5)[0x7fc760b3e975]
./src/nano[0x403aa9]
======= Memory map: ========
00400000-00435000 r-xp 00000000 09:00 121915886                          
/usr/local/src/nano/src/nano
00634000-00635000 r--p 00034000 09:00 121915886                          
/usr/local/src/nano/src/nano
00635000-00636000 rw-p 00035000 09:00 121915886                          
/usr/local/src/nano/src/nano
0240b000-02651000 rw-p 00000000 00:00 0                                  [heap]
7fc75fd41000-7fc75fd57000 r-xp 00000000 08:32 2111208                    
/usr/lib/gcc-lib/x86_64-pc-linux-gnu/4.7.2/libgcc_s.so.1
7fc75fd57000-7fc75ff56000 ---p 00016000 08:32 2111208                    
/usr/lib/gcc-lib/x86_64-pc-linux-gnu/4.7.2/libgcc_s.so.1
7fc75ff56000-7fc75ff57000 r--p 00015000 08:32 2111208                    
/usr/lib/gcc-lib/x86_64-pc-linux-gnu/4.7.2/libgcc_s.so.1
7fc75ff57000-7fc75ff58000 rw-p 00016000 08:32 2111208                    
/usr/lib/gcc-lib/x86_64-pc-linux-gnu/4.7.2/libgcc_s.so.1
7fc75ffd9000-7fc75ffda000 rw-p 00000000 00:00 0 
7fc75ffda000-7fc760207000 rw-p 00000000 08:32 2243027                    
/usr/share/misc/magic.mgc
7fc760207000-7fc760434000 rw-p 00000000 08:32 2243027                    
/usr/share/misc/magic.mgc
7fc760434000-7fc760907000 r--p 00000000 08:32 6747949                    
/usr/lib64/locale/locale-archive
7fc760907000-7fc76091c000 r-xp 00000000 08:32 4456549                    
/lib64/libz.so.1.2.7
7fc76091c000-7fc760b1b000 ---p 00015000 08:32 4456549                    
/lib64/libz.so.1.2.7
7fc760b1b000-7fc760b1c000 r--p 00014000 08:32 4456549                    
/lib64/libz.so.1.2.7
7fc760b1c000-7fc760b1d000 rw-p 00015000 08:32 4456549                    
/lib64/libz.so.1.2.7
7fc760b1d000-7fc760cc5000 r-xp 00000000 08:32 4462793                    
/lib64/libc-2.17.so
7fc760cc5000-7fc760ec5000 ---p 001a8000 08:32 4462793                    
/lib64/libc-2.17.so
7fc760ec5000-7fc760ec9000 r--p 001a8000 08:32 4462793                    
/lib64/libc-2.17.so
7fc760ec9000-7fc760ecb000 rw-p 001ac000 08:32 4462793                    
/lib64/libc-2.17.so
7fc760ecb000-7fc760ecf000 rw-p 00000000 00:00 0 
7fc760ecf000-7fc760f2b000 r-xp 00000000 08:32 4459932                    
/lib64/libncursesw.so.5.9
7fc760f2b000-7fc76112a000 ---p 0005c000 08:32 4459932                    
/lib64/libncursesw.so.5.9
7fc76112a000-7fc76112e000 r--p 0005b000 08:32 4459932                    
/lib64/libncursesw.so.5.9
7fc76112e000-7fc761130000 rw-p 0005f000 08:32 4459932                    
/lib64/libncursesw.so.5.9
7fc761130000-7fc76114a000 r-xp 00000000 08:32 5919636                    
/usr/lib64/libmagic.so.1.0.0
7fc76114a000-7fc76134a000 ---p 0001a000 08:32 5919636                    
/usr/lib64/libmagic.so.1.0.0
7fc76134a000-7fc76134b000 r--p 0001a000 08:32 5919636                    
/usr/lib64/libmagic.so.1.0.0
7fc76134b000-7fc76134c000 rw-p 0001b000 08:32 5919636                    
/usr/lib64/libmagic.so.1.0.0
7fc76134c000-7fc76136e000 r-xp 00000000 08:32 4466385                    
/lib64/ld-2.17.so
7fc7614e7000-7fc7614eb000 rw-p 00000000 00:00 0 
7fc761563000-7fc76156a000 r--s 00000000 08:32 6695295                    
/usr/lib64/gconv/gconv-modules.cache
7fc76156c000-7fc76156d000 rw-p 00000000 00:00 0 
7fc76156d000-7fc76156e000 r--p 00021000 08:32 4466385                    
/lib64/ld-2.17.so
7fc76156e000-7fc76156f000 rw-p 00022000 08:32 4466385                    
/lib64/ld-2.17.so
7fc76156f000-7fc761570000 rw-p 00000000 00:00 0 
7fffe8eb2000-7fffe8ed4000 rw-p 00000000 00:00 0                          [stack]
7fffe8f80000-7fffe8f81000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  
[vsyscall]
Aborted (core dumped)

gdb ./src/nano core 

Reading symbols from /usr/local/src/nano/src/nano...done.
[New LWP 21864]

warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
Core was generated by `./src/nano /etc/nanorc /home/vapier/.nanorc'.
Program terminated with signal 6, Aborted.
#0  0x00007fc760b526f5 in __GI_raise (address@hidden) at 
../nptl/sysdeps/unix/sysv/linux/raise.c:56
56      ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0  0x00007fc760b526f5 in __GI_raise (address@hidden) at 
../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1  0x00007fc760b53b67 in __GI_abort () at abort.c:90
#2  0x00007fc760b92a35 in __libc_message (address@hidden, address@hidden "*** 
Error in 
`%s': %s: 0x%s ***\n") at ../sysdeps/unix/sysv/linux/libc_fatal.c:196
#3  0x00007fc760b9881d in malloc_printerr (action=0x3, str=0x7fc760c8e520 
"free(): invalid next size (fast)", ptr=<optimized 
out>) at malloc.c:4902
#4  0x00007fc760b995f3 in _int_free (av=<optimized out>, p=0x260a270, 
have_lock=0x0) at malloc.c:3758
#5  0x0000000000426d12 in edit_draw (fileptr=0x241e560, converted=0x261ab50 
"set speller \"aspell -x -c\"", line=0xf, 
start=0x0) at winio.c:2500
#6  0x0000000000427d39 in update_line (fileptr=0x241e560, index=0x0) at 
winio.c:2915
#7  0x0000000000428858 in edit_refresh () at winio.c:3274
#8  0x000000000040853a in display_buffer () at files.c:221
#9  0x00000000004085ad in switch_to_prevnext_buffer (next_buf=0x1) at 
files.c:247
#10 0x0000000000408616 in switch_to_next_buffer_void () at files.c:268
#11 0x0000000000415864 in do_input (meta_key=0x7fffe8ecfaff, 
func_key=0x7fffe8ecfafe, s_or_t=0x7fffe8ecfafd, 
ran_func=0x7fffe8ecfafc, finished=0x7fffe8ecfafb, allow_funcs=0x1) at 
nano.c:1658
#12 0x0000000000417183 in main (argc=0x3, argv=0x7fffe8ed01a8) at nano.c:2728
(gdb) 

this is my ~/.nanorc:
set const
set fill -2
set historylog
set morespace
set multibuffer
set noconvert
set nohelp
set nowrap
# set regexp
set smarthome
set smooth
set suspend
set tabsize 4
set whitespace "»·"
set speller "aspell -x -c"

# disable stupid justify logic
unbind ^J all
unbind M-J all
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]