nano-devel
[Top][All Lists]
Advanced

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

[Nano-devel] syntax coloring segfault


From: Wouter Van Hemel
Subject: [Nano-devel] syntax coloring segfault
Date: Thu, 20 Feb 2003 18:56:27 +0100 (CET)

Hello,

I get a segfault with nano 1.2.0 syntax coloring on Linux. My nanorc
is the one included as a sample with the source tarball (uncommented
syntax coloring). The file being edited is nano.c (in the 1.2.0 tarball).

  # ./nano nano.c
  [ builds screen ]
  Segmentation fault

More info below.

I like how small nano still is, even after adding all these new features.
Keep it tiny. ;)


Regards,

  wouter

-- 
gdb backtrace from a debug build:

[cocaine:~/Delme/nano-1.2.0] gdb ./nano
GNU gdb 5.1.1
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...
(gdb) run nano.c
[...]
Running init_pair() with fg = 4 and bg = -1
Painting line 1, current is 1
Painting line 2, current is 1
Painting line 3, current is 1
Painting line 4, current is 1
Painting line 5, current is 1
Painting line 6, current is 1
Painting line 7, current is 1
Painting line 8, current is 1
Painting line 9, current is 1
Painting line 10, current is 1
Painting line 11, current is 1
Painting line 12, current is 1
Painting line 13, current is 1
Painting line 14, current is 1
Painting line 15, current is 1
Painting line 16, current is 1
Painting line 17, current is 1
Painting line 18, current is 1
Painting line 19, current is 1
Painting line 20, current is 1
Painting line 21, current is 1

Program received signal SIGSEGV, Segmentation fault.
0x40117f17 in re_match_2_internal (bufp=0xbffff3c0, cstring1=0x0, csize1=0, 
cstring2=0x8083760 "", csize2=0, pos=0,
    regs=0xbffff3e0, stop=0) at regex.c:7089
7089    regex.c: No such file or directory.
        in regex.c
(gdb) bt
#0  0x40117f17 in re_match_2_internal (bufp=0xbffff3c0, cstring1=0x0, csize1=0, 
cstring2=0x8083760 "", csize2=0, pos=0,
    regs=0xbffff3e0, stop=0) at regex.c:7089
#1  0x401153f2 in __re_search_2 (bufp=0xbffff3c0, string1=0x0, size1=0, 
string2=0x8083760 "", size2=0, startpos=0, range=0,
    regs=0xbffff3e0, stop=0) at regex.c:5053
#2  0x401151d3 in __re_search (bufp=0xbffff3c0, string=0x8083760 "", size=0, 
startpos=0, range=0, regs=0xbffff3e0) at regex.c:4917
#3  0x40118bac in __regexec (preg=0x8065008, string=0x8083760 "", nmatch=1, 
pmatch=0xbffff444, eflags=0) at regex.c:7784
#4  0x0805bdc4 in edit_add (fileptr=0x8083fe0, yval=20, start=0, 
virt_mark_beginx=0, virt_cur_x=0) at winio.c:730
#5  0x0805c505 in update_line (fileptr=0x8083fe0, index=0) at winio.c:1030
#6  0x0805c6e2 in edit_refresh () at winio.c:1098
#7  0x0804b1f6 in load_file (update=1) at files.c:65
#8  0x0804b689 in read_file (f=0x80835c8, filename=0x806a0e0 "nano.c", quiet=1) 
at files.c:311
#9  0x0804b8cd in open_file (filename=0x806a0e0 "nano.c", insert=0, quiet=1) at 
files.c:379
#10 0x0805736d in main (argc=2, argv=0xbffff8c4) at nano.c:3420
#11 0x400802eb in __libc_start_main (main=0x8056ca4 <main>, argc=2, 
ubp_av=0xbffff8c4, init=0x8049af8 <_init>,
    fini=0x805da1c <_fini>, rtld_fini=0x4000c130 <_dl_fini>, 
stack_end=0xbffff8bc) at ../sysdeps/generic/libc-start.c:129
(gdb)





reply via email to

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