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.)
|
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
|