From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Jay Pfaffman Newsgroups: gmane.emacs.bugs Subject: segfault caused by rmail-delete-backward Date: Fri, 13 Jun 2003 14:20:59 -0700 Sender: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <200306132120.h5DLKx308386@aaalab.stanford.edu> NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1055539422 25518 80.91.224.249 (13 Jun 2003 21:23:42 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 13 Jun 2003 21:23:42 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jun 13 23:23:38 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19QvxH-0006Ie-00 for ; Fri, 13 Jun 2003 23:19:27 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19QvzL-0000Ht-On for gnu-bug-gnu-emacs@m.gmane.org; Fri, 13 Jun 2003 17:21:35 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19QvzD-0000CS-Mi for bug-gnu-emacs@gnu.org; Fri, 13 Jun 2003 17:21:27 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19Qvz1-0008IR-RW for bug-gnu-emacs@gnu.org; Fri, 13 Jun 2003 17:21:16 -0400 Original-Received: from smtp2.stanford.edu ([171.64.14.116]) by monty-python.gnu.org with esmtp (Exim 4.20) id 19Qvz0-00086L-2O for bug-gnu-emacs@gnu.org; Fri, 13 Jun 2003 17:21:14 -0400 Original-Received: (from root@localhost) by smtp2.Stanford.EDU (8.12.9/8.12.9) id h5DLLBi0001407 for bug-gnu-emacs@gnu.org; Fri, 13 Jun 2003 14:21:11 -0700 (PDT) Original-Received: from aaalab.stanford.edu (aaalab.Stanford.EDU [171.64.201.97]) by smtp2.Stanford.EDU (8.12.9/8.12.9) with ESMTP id h5DLL8rH001399; Fri, 13 Jun 2003 14:21:09 -0700 (PDT) Original-Received: (from pfaffman@localhost) by aaalab.stanford.edu (8.11.6/8.11.6) id h5DLKx308386; Fri, 13 Jun 2003 14:20:59 -0700 Original-To: bug-gnu-emacs@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:5296 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:5296 This bug report will be sent to the Free Software Foundation, not to your local site managers! Please write in English, because the Emacs maintainers do not have translators to read other languages for them. Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list, and to the gnu.emacs.bug news group. In GNU Emacs 21.2.1 (i386-redhat-linux-gnu, X toolkit, Xaw3d scroll bars) of 2002-04-08 on porky.devel.redhat.com configured using `configure i386-redhat-linux --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --with-gcc --with-pop --with-sound' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: nil locale-coding-system: nil default-enable-multibyte-characters: t Please describe exactly what actions triggered the bug and the precise symptoms of the bug: sometimes when doing a rmail-delete-backward will cause a seg fault. I've currently got C-d mapped to my own function which calls rmail-delete-backward (and copies messages into a folder used by a baysian spam filter), but it did this before I started doing that. It's been difficult to report this error because often it won't happen again when I do a restart. I was unable to get it to happen when I did an "emacs -q". I might be able to provide the errant RMAIL file, but it looks like the segfault might be dependent on BBDB or something else (and obviously don't want it to go out to the whole world). Still, emacs should *never* segfault (this is the first time in my memory that it's done so). This happens a couple times a week. Not quite sure when this problem started. I'll be glad to provide whatever info I've omitted. I guess you can see that I'm running RedHat Linux 7.3. Here's the end of an strace: stat64("/home/pfaffman/mail/ham", {st_mode=S_IFREG|0644, st_size=8991436, ...}) = 0 lstat64("/home/pfaffman/mail/.#ham", {st_mode=S_IFLNK|0777, st_size=44, ...}) = 0 readlink("/home/pfaffman/mail/.#ham", "pfaffman@aaalab.stanford.edu.8242:1051634887", 100) = 44 getpid() = 8242 unlink("/home/pfaffman/mail/.#ham") = 0 write(4, "\2\0\4\0\36\0@\0\0@\0\0)\0@\0", 16) = 16 gettimeofday({1055538198, 294959}, NULL) = 0 gettimeofday({1055538198, 295319}, NULL) = 0 stat64("/home/pfaffman/.bbdb", {st_mode=S_IFREG|0644, st_size=647906, ...}) = 0 stat64("/home/pfaffman/.bbdb", {st_mode=S_IFREG|0644, st_size=647906, ...}) = 0 stat64("/home/pfaffman/.bbdb", {st_mode=S_IFREG|0644, st_size=647906, ...}) = 0 --- SIGSEGV (Segmentation fault) --- rt_sigaction(SIGSEGV, {SIG_DFL}, {0x80d6230, [], SA_RESTART|0x4000000}, 8) = 0 getpgid(0) = 8242 ioctl(0, 0x540f, [8241]) = 0 kill(-8262, SIGHUP) = 0 --- SIGCHLD (Child exited) --- wait4(-1, [WIFSIGNALED(s) && WTERMSIG(s) == SIGHUP], WNOHANG|WUNTRACED, NULL) = 8262 wait4(-1, 0xbfffb544, WNOHANG|WUNTRACED, NULL) = 0 sigreturn() = ? (mask now [SEGV]) kill(-8243, SIGHUP) = 0 --- SIGCHLD (Child exited) --- wait4(-1, [WIFSIGNALED(s) && WTERMSIG(s) == SIGHUP], WNOHANG|WUNTRACED, NULL) = 8243 wait4(-1, 0xbfffb544, WNOHANG|WUNTRACED, NULL) = -1 ECHILD (No child processes) sigreturn() = ? (mask now [SEGV]) open("/home/pfaffman/.emacs.d/auto-save-list/.saves-8242-aaalab.stanford.edu~", O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) = 6 fstat64(6, {st_mode=S_IFREG|0664, st_size=0, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x400f8000 write(6, "/home/pfaffman/.bbdb\n/home/pfaff"..., 100) = 100 close(6) = 0 munmap(0x400f8000, 4096) = 0 rt_sigaction(SIGIO, {SIG_IGN}, {0x80deb50, [], SA_RESTART|0x4000000}, 8) = 0 rt_sigprocmask(SIG_UNBLOCK, [SEGV], [SEGV], 8) = 0 getpid() = 8242 kill(8242, SIGSEGV) = 0 --- SIGSEGV (Segmentation fault) --- +++ killed by SIGSEGV +++ Thanks. I hope this helps. Recent input: Not relevant Recent messages: For information about the GNU Project and its goals, type C-h C-p. call-interactively: Quit Loading apropos...done Loading view...done Type C-x 4 b RET to restore the other window. C-M-v to scroll the help. call-interactively: Quit Mark set Mark saved where search started [2 times] Making completion list... Loading emacsbug...done -- Jay Pfaffman pfaffman@relaxpc.com +1-415-821-7507 (H) +1-415-812-5047 (M)