Bug 1051913 - [abrt] emacs: count_windows(): emacs-24.3 killed by SIGSEGV
Summary: [abrt] emacs: count_windows(): emacs-24.3 killed by SIGSEGV
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: emacs
Version: 20
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Petr Hracek
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:e177a269c28ea19395d06ca7ef7...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-01-12 20:53 UTC by Samium Gromoff
Modified: 2014-07-29 11:35 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-07-29 11:24:16 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (36.83 KB, text/plain)
2014-01-12 20:53 UTC, Samium Gromoff
no flags Details
File: cgroup (172 bytes, text/plain)
2014-01-12 20:53 UTC, Samium Gromoff
no flags Details
File: core_backtrace (13.20 KB, text/plain)
2014-01-12 20:53 UTC, Samium Gromoff
no flags Details
File: dso_list (11.14 KB, text/plain)
2014-01-12 20:53 UTC, Samium Gromoff
no flags Details
File: environ (1.26 KB, text/plain)
2014-01-12 20:53 UTC, Samium Gromoff
no flags Details
File: exploitable (82 bytes, text/plain)
2014-01-12 20:53 UTC, Samium Gromoff
no flags Details
File: limits (1.29 KB, text/plain)
2014-01-12 20:53 UTC, Samium Gromoff
no flags Details
File: maps (56.86 KB, text/plain)
2014-01-12 20:53 UTC, Samium Gromoff
no flags Details
File: open_fds (136 bytes, text/plain)
2014-01-12 20:53 UTC, Samium Gromoff
no flags Details
File: proc_pid_status (933 bytes, text/plain)
2014-01-12 20:53 UTC, Samium Gromoff
no flags Details
File: var_log_messages (212 bytes, text/plain)
2014-01-12 20:53 UTC, Samium Gromoff
no flags Details

Description Samium Gromoff 2014-01-12 20:53:14 UTC
Description of problem:
I'm not sure what exactly triggered this error in emacs, but here what I was
doing at the time:

1. I plugged in an external display into my Lenovo W530's mini-DP port,
and tried setting that as a primary display.

2. GDM crashed, and I had to relogin.

3. Upon relogin, I couldn't attach any emacs clients (emacsclient -c),
so I figured something was wrong with the emacs server -- so

4. I sent emacs a SIGTERM (killall emacs).

Version-Release number of selected component:
emacs-24.3-13.fc20

Additional info:
reporter:       libreport-2.1.11
backtrace_rating: 4
cmdline:        emacs
crash_function: count_windows
executable:     /usr/bin/emacs-24.3
kernel:         3.11.10-301.fc20.x86_64
runlevel:       N 5
type:           CCpp
uid:            1000

Truncated backtrace:
Thread no. 1 (10 frames)
 #0 count_windows at /usr/src/debug/emacs-24.3/src/window.c:5955
 #2 Fcurrent_window_configuration at /usr/src/debug/emacs-24.3/src/window.c:6178
 #3 Ffuncall at /usr/src/debug/emacs-24.3/src/eval.c:2778
 #4 exec_byte_code at /usr/src/debug/emacs-24.3/src/bytecode.c:900
 #5 funcall_lambda at /usr/src/debug/emacs-24.3/src/eval.c:3010
 #6 Ffuncall at /usr/src/debug/emacs-24.3/src/eval.c:2839
 #7 exec_byte_code at /usr/src/debug/emacs-24.3/src/bytecode.c:900
 #8 funcall_lambda at /usr/src/debug/emacs-24.3/src/eval.c:3010
 #9 Ffuncall at /usr/src/debug/emacs-24.3/src/eval.c:2839
 #10 call0 at /usr/src/debug/emacs-24.3/src/eval.c:2557

Comment 1 Samium Gromoff 2014-01-12 20:53:20 UTC
Created attachment 848987 [details]
File: backtrace

Comment 2 Samium Gromoff 2014-01-12 20:53:22 UTC
Created attachment 848988 [details]
File: cgroup

Comment 3 Samium Gromoff 2014-01-12 20:53:24 UTC
Created attachment 848989 [details]
File: core_backtrace

Comment 4 Samium Gromoff 2014-01-12 20:53:27 UTC
Created attachment 848990 [details]
File: dso_list

Comment 5 Samium Gromoff 2014-01-12 20:53:29 UTC
Created attachment 848991 [details]
File: environ

Comment 6 Samium Gromoff 2014-01-12 20:53:31 UTC
Created attachment 848992 [details]
File: exploitable

Comment 7 Samium Gromoff 2014-01-12 20:53:33 UTC
Created attachment 848993 [details]
File: limits

Comment 8 Samium Gromoff 2014-01-12 20:53:36 UTC
Created attachment 848994 [details]
File: maps

Comment 9 Samium Gromoff 2014-01-12 20:53:38 UTC
Created attachment 848995 [details]
File: open_fds

Comment 10 Samium Gromoff 2014-01-12 20:53:40 UTC
Created attachment 848996 [details]
File: proc_pid_status

Comment 11 Samium Gromoff 2014-01-12 20:53:42 UTC
Created attachment 848997 [details]
File: var_log_messages

Comment 12 Jan Chaloupka 2014-07-29 11:24:16 UTC
This was caused by gdb crash. From backtrace:

Program terminated with signal SIGSEGV, Segmentation fault.
#0  count_windows (window=<optimized out>) at /usr/src/debug/emacs-24.3/src/window.c:5955
5955	  if (!NILP (window->next))

window is most likely undefined or its original values has changed. Thus resulting in invalid address.

Comment 13 Jan Chaloupka 2014-07-29 11:27:34 UTC
> 4. I sent emacs a SIGTERM (killall emacs).

This then cause emacs to end and crash.

If you manage to reproduce this issue, don't hesitate to reopen the bug. Steps to reproduce this issue are most valuated. Otherwise I will not be able to analyze this issue.

Comment 14 Jan Chaloupka 2014-07-29 11:35:53 UTC
Steps to create core with full backtrace information for emacs:

$ cd /tmp

download the latest emacs build from https://jchaloup.fedorapeople.org for your distribution and architecture (wget can be used). Should be always actual release in fedora + 1.
$ wget  https://jchaloup.fedorapeople.org/emacs-24.3-19.fc20.x86_64.rpm

install downloaded rpm, release can vary
# rpm -Uvh emacs-24.3-19.fc20.x86_64.rpm

Then reproduce the issue and upload generated core.

After reproducing, just run
# yum distro-sync emacs


Note You need to log in before you can comment on or make changes to this bug.