Commit Graph

57 Commits

Author SHA1 Message Date
Mike Blumenkrantz abc802bd67 only add non-SIGILL signal handlers for non-quicklaunch builds
quicklaunch does not require signal handling and any pause() call will
impede obtaining crashdumps
2018-02-07 13:55:20 -05:00
Derek Foreman 0b26bdc2f8 Stop doing complicated things after a segfault
The chance of any of this succeeded is near zero, and it sometimes ends
up in a tight loop after a crash.
2017-08-09 15:10:41 -05:00
Derek Foreman 50169af1db Update to recent ecore_drm2 changes 2017-08-09 14:59:25 -05:00
Chris Michael 933814f3a9 fix wl_drm detection in e_signals.c
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2017-02-28 08:40:00 -05:00
Chris Michael 0d2b6b047c port enlightenment to use drm2
Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-05-27 09:53:41 -04:00
Mike Blumenkrantz 80071ab79e only perform drm shutdown during signal handler if drm engine is in use 2015-11-23 15:03:45 -05:00
Nicolas Aguirre fe60c4fecd Revert "e_signals.c: Inclues Ecore_DRM only if WL_DRM is built and not only if WAYLAND is built"
This reverts commit 96e304bc90.
2015-11-03 08:01:42 +01:00
Florent Revest 96e304bc90 e_signals.c: Inclues Ecore_DRM only if WL_DRM is built and not only if WAYLAND is built 2015-11-03 07:37:41 +01:00
Mike Blumenkrantz 884068ff9d when e crashes in wayland, just crash instead of possibly freezing 2015-07-09 15:11:13 -04:00
Mike Blumenkrantz 399e3c79ce unify crash handler functions 2015-07-09 15:01:50 -04:00
Yomi 0dc33a5aeb Fix misspellings in E's files.
Summary: Fix misspellings and spaces in E's files.

Reviewers: zmike

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D2676
2015-06-16 16:10:21 -04:00
Chris Michael 0a94e8ba71 enlightenment: Make E build again with EFL from git
sed -i 's/EAPI/E_API/g'

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-05-07 15:13:10 -04:00
Mike Blumenkrantz a86fe60d3a use const lists for drm devices in signal handlers 2015-04-22 21:20:57 -04:00
Mike Blumenkrantz 471dcb24cb __UNUSED__ -> EINA_UNUSED
this has been bugging me forever. __UNUSED__ is no longer a valid macro here.
2015-03-18 18:09:09 -04:00
Boram Park 7c41fb431d fix tty problem when enlightenment(drm-backend) is killed by SIGSEGV
Summary:
    When enlightenment is working as wayland display server, enlightenment
    changes KDSETMODE to KD_GRAPHICS in _ecore_drm_tty_setup(). However,
    when enlightenment is killed by SIGSEGV, it doesn't changes KDSETMODE
    to KD_TEXT because englightenment process doesn't call ecore_drm_tty_close().

    When enlightenment is killed by SIGSEGV, it should get drm devices with
    ecore_drm_device_get_list(), and will call ecore_drm_launcher_disconnect(),
    and ecore_drm_launcher_disconnect will call ecore_drm_tty_close() internally.

Change-Id: I425488eb4489709cc968b77bd4bc48a4aa4ae30c

Reviewers: zmike, cedric, raster, gwanglim, devilhorns

Reviewed By: devilhorns

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D2160
2015-03-17 09:33:55 -04:00
Manuel Bachmann a5a27dee14 build: allow building in pure Wayland mode (no xcb, no ecore-x)
Summary:
We should be building Enlightenement with "--enable-wayland-only"
even if xcb, ecore-x... are not present. The Evas wayland-shm
engine will then be a prerequisite, though.

E_Alert being too much X11-oriented, let us disable it completely
before it is ported.

Also, do not require the X11 rendering engines at runtime.

Reviewers: stefan, devilhorns

Reviewed By: devilhorns

Subscribers: stefan_schmidt, stefan

Projects: #enlightenment-git

Differential Revision: https://phab.enlightenment.org/D1986
2015-02-25 09:33:40 +01:00
Chris Michael 20c59557db only call ecore-x functions here if we are Not build for wayland-only
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-03 13:17:52 -04:00
Chris Michael 915f8f0613 @bugfix: Fix building for WAYLAND_ONLY by using the proper define
sed -i 's/WAYLAND_ONLY/HAVE_WAYLAND_ONLY/g'

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-03-18 07:43:04 +00:00
Mike Blumenkrantz cc887a265c formatting
DEAR CEDRIC: PLEASE LEARN HOW TO FORMAT YOUR CODE CORRECTLY. THANKS.


SVN revision: 79276
2012-11-14 09:57:11 +00:00
Mike McCormack 1b1fdc0b45 e: Comment code generating an unused warning
SVN revision: 79070
2012-11-09 21:54:12 +00:00
Cedric BAIL 03d50e9546 E: little hack to handle valid SIGILL.
SVN revision: 78976
2012-11-07 20:56:57 +00:00
Cedric BAIL 380386817b e: full rewrite of our WBOD.
NOTE: the new behaviour require a parent process,
here enlightenment_start, to watch over enlightenment.
It does use ptrace to monitor his child and track
what is going on. When a crash happen it ask gdb to
add the backtrace directly into .xsession-errors.

If you use systemd user session, you may want to offload
that work to systemd. You can do so, but don't forget to
pass -nopause to enlightenment when you start it.

WARNING: For all user, you will need to exit your
current session and start a fresh one for this new WBOD
to work at all. Just restarting Enlightenment will not
help you.


SVN revision: 78742
2012-11-01 06:23:49 +00:00
Sebastian Dransfeld 9b436d3c26 e: if 0 to disable code
SVN revision: 77624
2012-10-09 08:28:18 +00:00
Vincent Torri c3b0637802 e17: whitespaces--
SVN revision: 72561
2012-06-21 06:19:43 +00:00
Christopher Michael 2759530d5b E17: Remove erroneous exit(-11) calls (exit/restart is handled by
e_alert now).

NB: TAsn/Cedric this was the cause of your Restart doing an exit. svn
up and it should work now.



SVN revision: 62541
2011-08-17 18:24:45 +00:00
Christopher Michael 1a13f8c26f E: Make E work with the new XCB stuffs. This breaks out e_alert into
it's own utility (as per raster's request/idea). Remove explicit
x_clags in Makefile.am(s) as they are no longer needed.

NB: I added some additional libs to the precache stuffs (even tho it's
not used right now). Also a newer e_main (more optimized).

NB: IF you are brave and want to test this, build evas w/ xcb, build
ecore w/ xcb, then rebuild E. Also, disable building opengl in both
evas & ecore (it's not ready for public consumption when paired w/ xcb).



SVN revision: 61680
2011-07-25 09:40:18 +00:00
Christopher Michael 4327831db3 E: Remove unused variable from e_signals.
SVN revision: 59597
2011-05-22 16:59:08 +00:00
Boris Faure 532573285d e: add pid in segfault alert
SVN revision: 59384
2011-05-14 14:39:44 +00:00
Christopher Michael d70aea7577 Add UNUSED where needed.
SVN revision: 51313
2010-08-18 18:32:48 +00:00
Lucas De Marchi 0d2fa817fe Finish unscrewing patch-fu
SVN revision: 50820
2010-08-04 19:00:15 +00:00
Lucas De Marchi 6638a10e20 FORMATTING
* Remove vim modelines:
 find . -name '*.[chx]' -exec sed -i '/\/\*$/ {N;N;/ \* vim:ts/d}' \{\} \;
 find . -name '*.[chx]' -exec sed -i '/\/[\*\/] *vim:/d' \{\} \;

* Remove leading blank lines:
 find . -name '*.[cxh]' -exec sed -i '/./,$!d'

If you use vim, use this in your .vimrc:
set ts=8 sw=3 sts=8 expandtab cino=>5n-3f0^-2{2(0W1st0



SVN revision: 50816
2010-08-04 16:57:32 +00:00
Carsten Haitzler 7ae83060b6 comment out too.
SVN revision: 47951
2010-04-12 09:05:37 +00:00
Vincent Torri 7d66c87e9d Check backtrace_symbols_fd() availability for e_signal.c
Should help the BSD guys (though OpenBSD seems to need a
flag passed in LDFLAGS to be happy. Strange...)


SVN revision: 43623
2009-11-11 21:04:21 +00:00
Carsten Haitzler 88904fce02 i could have sworn i disabled this! disable again.
SVN revision: 43404
2009-11-02 01:18:26 +00:00
Carsten Haitzler 119b8d8b93 disable gdb. toruble-maker.
SVN revision: 43223
2009-10-23 00:56:41 +00:00
Iván Briano c8e998c551 Make it possible to disable the auto gdb backtrace.
SVN revision: 42093
2009-08-30 00:19:10 +00:00
Christopher Michael f6b5cdb13c Cleanup the OBJECT_PARANOIA_CHECK issue wrt execinfo.h. Now we always
include execinfo.h



SVN revision: 41476
2009-07-22 19:38:14 +00:00
Christopher Michael 94a3bcae16 Cleanup compiler warning on e_signals.c:
execinfo.h (which contains the backtrace* functions is only included
        if OBJECT_PARANOIA_CHECK is defined so add an #ifdef around those calls.


SVN revision: 41439
2009-07-19 20:08:38 +00:00
Gustavo Sverzut Barbieri f3c1679442 make it easy to run e under valgrind and debug crashes.
this should help us in near future:

  * -valgrind[=MODE], to run under valgrind and toggle interesting
     options as we often request users to give us valgrind logs but
     they're often running valgrind on wrong binaries and with wrong
     parameters. See enlightenment_start -help for more, but in sort:
     -valgrind=all should give us enough information.

  * -valgrind-log-file=path, so the log will not mix with lots of
     output we do.

  * debug: on crashes, always list traceback (execinfo/glibc
    functions) and check if gdb exists, if so ask it to print out
    traceback of all threads to stdout. gdb will be detached as soon
    as messages were printed and everything should work without gdb as
    well.



SVN revision: 41309
2009-07-11 16:27:37 +00:00
Gustavo Sverzut Barbieri 092f3e4974 turn off composite on segfault.
one of the most annoying problems while using bling is that when E
segfaults it will launch an alert window, but since composite manager
is using the same process/connection as e17, it will not die and e
will not compose as required, so you basically end with a black
screen.

this patch will forcely turn off manual redirection and you'll get the
white-screen-of-death, being able to restart e17.

future: if we really do composite in e18, then please handle this in a
better way.



SVN revision: 39741
2009-03-27 02:23:13 +00:00
Carsten Haitzler 5bbb0afd05 make alerts smaller... small white boxes of death.
SVN revision: 31687
2007-09-11 11:57:48 +00:00
Christopher Michael 2f8b1e6712 More spelling/grammar fixes. Did not realize there was more of these in
there, lol. Darn fat-finger copy/paste :)


SVN revision: 31551
2007-08-27 10:01:28 +00:00
Christopher Michael ea91d160c9 Minor spelling/grammar fix.
SVN revision: 31550
2007-08-27 10:00:27 +00:00
Carsten Haitzler 683366ce0e fix some env vars to use namespacing
SVN revision: 24930
2006-08-20 08:22:19 +00:00
Carsten Haitzler bcce7b2397 detect crashes at startup or early and enable "safe mode" so if you hit
restart e will not load modules - maybe safe mode should also restore default
theme and other things too later...


SVN revision: 24321
2006-07-30 19:34:05 +00:00
Carsten Haitzler 6dfbef7ec1 1. trap abort signals - glibc likes to abort these days on memory free errors.
2. fix bg selector to properly select the item to be selected (do it after
listing them all), and add segmenting headers (And free path properly)


SVN revision: 21705
2006-04-02 04:18:18 +00:00
Carsten Haitzler ebf9cca1ed ok - turn off visibility stuff for e -0 for some reason just the dropshadow
module has problems with memcpy and memset... but its identical to everything
else and i dont see why it doesnt work and others do... weird.


SVN revision: 19679
2006-01-10 04:23:43 +00:00
sebastid 6a638a7806 Fix EAPI warnings.
SVN revision: 19597
2006-01-07 10:39:46 +00:00
sebastid 3aa5585ab6 Typo.
SVN revision: 16617
2005-09-06 05:58:45 +00:00
Carsten Haitzler 6f711f3808 release any grabs we may have... just in case
SVN revision: 15358
2005-06-16 06:29:32 +00:00