[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nano-devel] misbehavior while creating a new file (was: 2.2.2 pre-
From: |
Chris Allegretta |
Subject: |
Re: [Nano-devel] misbehavior while creating a new file (was: 2.2.2 pre-release) |
Date: |
Wed, 13 Jan 2010 13:55:51 -0500 |
Yep I have it now, just need to make a fix that works with this and
the previous file backup issue. Thanks for the additional info Mike.
On Wed, Jan 13, 2010 at 1:44 PM, Mike Frysinger <address@hidden> wrote:
> On Wednesday 13 January 2010 11:25:54 Mike Frysinger wrote:
>> On Wednesday 13 January 2010 11:03:46 Chris Allegretta wrote:
>> > Interesting, that may be related to the fix in r4467. Having a little
>> > trouble reproducing right off the bat, is it easily reproducible with
>> > a certain set of steps?
>>
>> nano file-that-doesnt-exist
>> ctrl+o (to save file)
>> ctrl+o (to save file)
>>
>> ive only had it crash once so far, but i get the incorrect modified notice
>> every time
>
> ok, here's how to make it crash every time (needs multibuffer):
> rm -f doesnt-exist
>> exists
> nano doesnt-exist exists
> ctrl+o # save the new "doesnt-exist" file
> ctrl+x # try to close the new "doesnt-exist" file and switch to "exists"
> segfault
>
> here's a backtrace with -O0
> (gdb) bt f
> #0 0x00007f34425ae1b5 in *__GI_raise (sig=<value optimized out>) at
> ../nptl/sysdeps/unix/sysv/linux/raise.c:64
> pid = <value optimized out>
> selftid = <value optimized out>
> #1 0x00007f34425af5e0 in *__GI_abort () at abort.c:92
> act = {
> __sigaction_handler = {
> sa_handler = 0x7fffcfdd48c0,
> sa_sigaction = 0x7fffcfdd48c0
> },
> sa_mask = {
> __val = {0x7fffcfdd4980, 0x7fffcfdd7205, 0xa, 0x7f344269b18d, 0x3,
> 0x7fffcfdd498a, 0x6, 0x7f344269b191, 0x2, 0x7fffcfdd497e, 0x2, 0x7f3442698f48,
> 0x1, 0x7f344269b18d, 0x3, 0x7fffcfdd4984}
> },
> sa_flags = 0xc,
> sa_restorer = 0x7f344269b191
> }
> sigs = {
> __val = {0x20, 0x0 <repeats 15 times>}
> }
> #2 0x00007f34425e8e77 in __libc_message (do_abort=<value optimized out>,
> fmt=<value optimized out>) at ../sysdeps/unix/sysv/linux/libc_fatal.c:186
> ap = {{
> gp_offset = 0x28,
> fp_offset = 0x30,
> overflow_arg_area = 0x7fffcfdd5300,
> reg_save_area = 0x7fffcfdd5210
> }}
> ap_copy = {{
> gp_offset = 0x10,
> fp_offset = 0x30,
> overflow_arg_area = 0x7fffcfdd5300,
> reg_save_area = 0x7fffcfdd5210
> }}
> fd = 0x3
> on_2 = <value optimized out>
> list = <value optimized out>
> nlist = 0x0
> cp = <value optimized out>
> written = 0x0
> #3 0x00007f34425ee406 in malloc_printerr (action=0x3, str=0x7f344269cb18
> "munmap_chunk(): invalid pointer", ptr=<value optimized out>) at malloc.c:6264
> buf = "00007fffcfdd5100"
> cp = 0x7f34426932c0 "0123456789abcdefghijklmnopqrstuvwxyz"
> #4 0x0000000000413192 in delete_opennode (fileptr=0x101d250) at nano.c:561
> No locals.
> #5 0x0000000000413148 in unlink_opennode (fileptr=0x101d250) at nano.c:549
> No locals.
> #6 0x0000000000408126 in close_buffer () at files.c:286
> No locals.
> #7 0x0000000000413e42 in do_exit () at nano.c:1054
> i = 0x0
> #8 0x000000000040f127 in iso_me_harder_funcmap (func=0x12) at global.c:1242
> No locals.
> #9 0x00000000004149eb in do_input (meta_key=0x7fffcfdd545f,
> func_key=0x7fffcfdd545e, s_or_t=0x7fffcfdd545d, ran_func=0x7fffcfdd545c,
> finished=0x7fffcfdd545b, allow_funcs=0x1) at nano.c:1626
> f = 0x100a0b0
> input = 0x18
> kbinput = 0x0
> kbinput_len = 0x0
> cut_copy = 0x0
> s = 0x100c6d0
> have_shortcut = 0x1
> #10 0x00000000004161d5 in main (argc=0x3, argv=0x7fffcfdd5ab8) at nano.c:2663
> func_key = 0x0
> s_or_t = 0x0
> ran_func = 0x1
> finished = 0x0
> meta_key = 0x0
> optchr = 0xffffffff
> startline = 0x1
> startcol = 0x1
> fill_used = 0x0
> old_multibuffer = 0x1
> long_options = {{
> name = 0x42c490 "help",
> has_arg = 0x0,
> flag = 0x0,
> val = 0x68
> }, {
> name = 0x42c495 "boldtext",
> has_arg = 0x0,
> flag = 0x0,
> val = 0x44
> }, {
> name = 0x42c49e "multibuffer",
> has_arg = 0x0,
> flag = 0x0,
> val = 0x46
> }, {
> name = 0x42c4aa "ignorercfiles",
> has_arg = 0x0,
> flag = 0x0,
> val = 0x49
> }, {
> name = 0x42c4b8 "rebindkeypad",
> has_arg = 0x0,
> flag = 0x0,
> val = 0x4b
> }, {
> name = 0x42c4c5 "nonewlines",
> has_arg = 0x0,
> flag = 0x0,
> val = 0x4c
> }, {
> name = 0x42c4d0 "morespace",
> has_arg = 0x0,
> flag = 0x0,
> val = 0x4f
> }, {
> name = 0x42c4da "restricted",
> has_arg = 0x0,
> flag = 0x0,
> val = 0x52
> }, {
> name = 0x42c4e5 "tabsize",
> has_arg = 0x1,
> flag = 0x0,
> val = 0x54
> }, {
> name = 0x42c4ed "version",
> has_arg = 0x0,
> flag = 0x0,
> val = 0x56
> }, {
> name = 0x42c4f5 "syntax",
> has_arg = 0x1,
> flag = 0x0,
> val = 0x59
> }, {
> name = 0x42c4fc "const",
> has_arg = 0x0,
> flag = 0x0,
> val = 0x63
> }, {
> name = 0x42c502 "rebinddelete",
> has_arg = 0x0,
> flag = 0x0,
> val = 0x64
> }, {
> name = 0x42c50f "nofollow",
> has_arg = 0x0,
> flag = 0x0,
> val = 0x6c
> }, {
> name = 0x42c518 "mouse",
> has_arg = 0x0,
> flag = 0x0,
> val = 0x6d
> }, {
> name = 0x42c51e "operatingdir",
> has_arg = 0x1,
> flag = 0x0,
> val = 0x6f
> }, {
> name = 0x42c52b "preserve",
> has_arg = 0x0,
> flag = 0x0,
> val = 0x70
> }, {
> name = 0x42c534 "quiet",
> has_arg = 0x0,
> flag = 0x0,
> val = 0x71
> }, {
> name = 0x42c53a "fill",
> has_arg = 0x1,
> flag = 0x0,
> val = 0x72
> }, {
> name = 0x42c53f "speller",
> has_arg = 0x1,
> flag = 0x0,
> val = 0x73
> }, {
> name = 0x42c547 "tempfile",
> has_arg = 0x0,
> flag = 0x0,
> val = 0x74
> }, {
> name = 0x42c550 "view",
> has_arg = 0x0,
> flag = 0x0,
> val = 0x76
> }, {
> name = 0x42c555 "nowrap",
> has_arg = 0x0,
> flag = 0x0,
> val = 0x77
> }, {
> name = 0x42c55c "nohelp",
> has_arg = 0x0,
> flag = 0x0,
> val = 0x78
> }, {
> name = 0x42c563 "suspend",
> has_arg = 0x0,
> flag = 0x0,
> val = 0x7a
> }, {
> name = 0x42c56b "smarthome",
> has_arg = 0x0,
> flag = 0x0,
> val = 0x41
> }, {
> name = 0x42c575 "backup",
> has_arg = 0x0,
> flag = 0x0,
> val = 0x42
> }, {
> name = 0x42c57c "backupdir",
> has_arg = 0x1,
> flag = 0x0,
> val = 0x43
> }, {
> name = 0x42c586 "tabstospaces",
> has_arg = 0x0,
> flag = 0x0,
> val = 0x45
> }, {
> name = 0x42c593 "historylog",
> has_arg = 0x0,
> flag = 0x0,
> val = 0x48
> }, {
> name = 0x42c59e "noconvert",
> has_arg = 0x0,
> flag = 0x0,
> val = 0x4e
> }, {
> name = 0x42c5a8 "smooth",
> has_arg = 0x0,
> flag = 0x0,
> val = 0x53
> }, {
> name = 0x42c5af "quickblank",
> has_arg = 0x0,
> flag = 0x0,
> val = 0x55
> }, {
> name = 0x42c5ba "undo",
> has_arg = 0x0,
> flag = 0x0,
> val = 0x75
> }, {
> name = 0x42c5bf "wordbounds",
> has_arg = 0x0,
> flag = 0x0,
> val = 0x57
> }, {
> name = 0x42c5ca "autoindent",
> has_arg = 0x0,
> flag = 0x0,
> val = 0x69
> }, {
> name = 0x42c5d5 "cut",
> has_arg = 0x0,
> flag = 0x0,
> val = 0x6b
> }, {
> name = 0x42c5d9 "softwrap",
> has_arg = 0x0,
> flag = 0x0,
> val = 0x24
> }, {
> name = 0x0,
> has_arg = 0x0,
> flag = 0x0,
> val = 0x0
> }}
> -mike
>