Date: Wed, 01 Dec 2004 23:40:07 +0900 (JST) From: SAITOU Toshihide <toshi@ruby.ocn.ne.jp> To: current@freebsd.org Subject: Re: bash/readline coredumps Message-ID: <20041201.234007.226808332.toshi@ruby.ocn.ne.jp> In-Reply-To: <20041130081804.GA22353@xs4all.nl> References: <20041130081804.GA22353@xs4all.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
From: Michiel Boland <michiel@boland.org> Date: Tue, 30 Nov 2004 09:18:04 +0100 > Lately I am getting core dumps from bash (bash-2.05b.007_2 from ports). > To reproduce: type a command that spans multiple lines, like I couldn't reproduce a core dump by your instruction, but I had possibly experienced a similar/related bash core dump since around 5.3-RELEASE. $ ./bash $ /bin/ls -ld /var/db/pkg/v* Segmentation fault (core dumped) $ gdb ./bash bash.core #0 0x48213499 in memcpy () from /lib/libc.so.5 (gdb) bt #0 0x48213499 in memcpy () from /lib/libc.so.5 #1 0x080ba348 in xmbsrtowcs (dest=0x1d, src=0xbfbfe804, len=0, pstate=0xbfbfe760) at xmbsrtowcs.c:67 #2 0x080ba123 in xstrmatch (pattern=0x0, string=0x8104fe4 "cyrus-sasl-saslauthd-2.1.19", flags=5) at smatch.c:388 #3 0x080b6bcd in glob_vector (pat=0x810182c "v*", dir=0xbfbfe8e0 "/var/db/pkg/", flags=0) at glob.c:491 #4 0x080b7275 in glob_filename (pathname=0x8101820 "/var/db/pkg/v*", flags=0) at glob.c:768 #5 0x0807ff07 in shell_glob_filename (pathname=0x8101850 "/var/db/pkg/v*") at pathexp.c:254 #6 0x0807d10d in expand_word_list_internal (list=0x80ef3c0, eflags=31) at subst.c:6406 #7 0x08066d4b in execute_command_internal (command=0x0, asynchronous=0, pipe_in=-1, pipe_out=-1, fds_to_close=0x81017f0) at execute_cmd.c:2554 #8 0x08068b35 in execute_command (command=0x80ef300) at execute_cmd.c:324 #9 0x0805bb19 in reader_loop () at eval.c:143 #10 0x0805aad1 in main (argc=1, argv=0xbfbfed40, env=0xbfbfed48) at shell.c:680 (gdb) up #1 0x080ba348 in xmbsrtowcs (dest=0x1d, src=0xbfbfe804, len=0, pstate=0xbfbfe760) at xmbsrtowcs.c:67 67 memcpy(mbsbuf, *src, n + 1); (gdb) print mbsbuf $1 = 0x80ef3c0 "cyrus-sasl-saslauthd-2.1.19" (gdb) print src $2 = (const char **) 0xbfbfe804 #6 0x0807d10d in expand_word_list_internal (list=0x80ef3c0, eflags=31) at subst.c:6406 #7 0x08066d4b in execute_command_internal (command=0x0, asynchronous=0, pipe_in=-1, pipe_out=-1, fds_to_close=0x81017f0) at execute_cmd.c:2554 #8 0x08068b35 in execute_command (command=0x80ef300) at execute_cmd.c:324 #9 0x0805bb19 in reader_loop () at eval.c:143 #10 0x0805aad1 in main (argc=1, argv=0xbfbfed40, env=0xbfbfed48) at shell.c:680 (gdb) up #1 0x080ba348 in xmbsrtowcs (dest=0x1d, src=0xbfbfe804, len=0, pstate=0xbfbfe760) at xmbsrtowcs.c:67 67 memcpy(mbsbuf, *src, n + 1); (gdb) print mbsbuf $1 = 0x80ef3c0 "cyrus-sasl-saslauthd-2.1.19" (gdb) print src $2 = (const char **) 0xbfbfe804 (gdb) print *src $3 = 0x8104fe4 "cyrus-sasl-saslauthd-2.1.19" (gdb) print n $4 = 135286784 I finally migrate to bash3 (ports/shells/bash) and it seems ceased/lessened. SAITOU Toshihide
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041201.234007.226808332.toshi>