[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Nano-devel] segfault when writing a file to a path that doesnt exist
From: |
Mike Frysinger |
Subject: |
[Nano-devel] segfault when writing a file to a path that doesnt exist |
Date: |
Wed, 13 Dec 2006 21:24:51 -0500 |
User-agent: |
KMail/1.9.5 |
noticed with nano-2.0.1 and just reproduced with cvs ...
to make it crash, do:
nano /some/dir/path/that/does/not/exist
hit CTRL+O to save and then just hit enter
Program received signal SIGSEGV, Segmentation fault.
0x000036dcebaf40b0 in strcmp () from /lib/libc.so.6
(gdb) bt
#0 0x000036dcebaf40b0 in strcmp () from /lib/libc.so.6
#1 0x000000000040a68a in do_writeout (exiting=false) at files.c:1900
#2 0x000000000040a816 in do_writeout_void () at files.c:1965
#3 0x0000000000412860 in do_input (meta_key=0x73eef38352e7,
func_key=0x73eef38352e6, s_or_t=0x73eef38352e5, ran_func=0x73eef38352e4,
finished=0x73eef38352e3, allow_funcs=true) at nano.c:1463
#4 0x00000000004137f5 in main (argc=2, argv=0x73eef3835448) at nano.c:2253
(gdb) frame 1
#1 0x000000000040a68a in do_writeout (exiting=false) at files.c:1900
1900 different_name = (strcmp(full_answer,
(gdb) print full_answer
$1 = 0x0
-mike
pgpViRpzCRRLH.pgp
Description: PGP signature
- [Nano-devel] segfault when writing a file to a path that doesnt exist,
Mike Frysinger <=