enlightenment/src/modules
Andre Schulz 850c1ad41a mixer: alsa: Handle error from _alsa_card_create()
_alsa_card_create() can return NULL which can lead to a segmentation
fault inside ALSA when NULL is passed to snd_mixer_first_elem() in
_alsa_cards_refresh(). See the following crash dump excerpt:

Thread 1 (Thread 0x7fe64b227780 (LWP 3320) "enlightenment"):
#0  0x00007fe64c2fbd92 in __libc_pause () at ../sysdeps/unix/sysv/linux/pause.c:29
        sc_ret = -514
        sc_cancel_oldtype = 0
        sc_ret = <optimized out>
#1  <signal handler called>
No locals.
#2  list_empty (p=0x20) at /var/tmp/portage/media-libs/alsa-lib-1.2.9/work/alsa-lib-1.2.9/include/list.h:114
No locals.
#3  snd_mixer_first_elem (mixer=mixer@entry=0x0) at /var/tmp/portage/media-libs/alsa-lib-1.2.9/work/alsa-lib-1.2.9/src/mixer/mixer.c:803
No locals.
#4  0x00007fe63b2a376f in _alsa_cards_refresh () at ../enlightenment-0.25.4/src/modules/mixer/lib/backends/alsa/alsa.c:304
        buf = "hw:0\000le.emix.cfg\000C\236:\245U\000\000\035\221.;\346\177\000\000`>[;\245U\000\000\260g\302:\245U\000\000pL[;\245U\000\000ʁ-:\245U\000\000/home/andre/.e/e/config/standard/module.gadman.cfg", '\000' <repeats 710 times>...
        mixer = 0x0
        device_name = <optimized out>
        elem = <optimized out>
        source = 0x0
        sink = 0x0
        err = <optimized out>
        card_num = 0
        tmp_source = 0x0
        tmp_sink = 0x0
2023-11-14 09:53:09 +00:00
..
appmenu Updating portuguese and italian translations 2022-10-30 14:45:18 +01:00
backlight e - module icons ... the great flattening begins... (partly done) 2021-04-05 23:45:47 +01:00
battery power - add some debug printfs for info on what is going on 2023-01-20 14:47:45 +00:00
bluez5 Updating portuguese and italian translations 2022-10-30 14:45:18 +01:00
clock clock - save some power and send freeze to clock when screen is blanked 2021-04-20 10:16:53 +01:00
conf modules - flattenify icons of more categories - conf to go... 2021-04-14 23:26:55 +01:00
conf_applications e module icons - final push to flatten... 2021-04-17 13:41:26 +01:00
conf_bindings remove unused 'restore default bindings', default are none bindings 2022-06-15 16:11:46 +02:00
conf_dialogs e module icons - final push to flatten... 2021-04-17 13:41:26 +01:00
conf_display desklock settinghs - fix kbd layout list to fill vert 2022-01-24 14:14:31 +00:00
conf_interaction xinput: Add support for flat mouse acceleration and Hi-Res scrolling 2023-03-18 01:37:00 -07:00
conf_intl fix ukrainian lang entry to uk_UA from uk_UK 2023-07-01 19:04:05 +01:00
conf_menus e module icons - final push to flatten... 2021-04-17 13:41:26 +01:00
conf_paths e module icons - final push to flatten... 2021-04-17 13:41:26 +01:00
conf_performance Updating french and dutch translations 2021-05-05 21:20:05 +02:00
conf_randr randr - allow custom names for screen (not output but model) 2021-07-22 10:56:02 +01:00
conf_shelves e module icons - final push to flatten... 2021-04-17 13:41:26 +01:00
conf_theme icon theme - set elm icon theme to same theme as e one ... sync them 2023-02-16 08:28:47 +00:00
conf_window_manipulation Add option to set hidden state or not 2023-06-17 11:56:57 +01:00
conf_window_remembers e module icons - final push to flatten... 2021-04-17 13:41:26 +01:00
connman Updating french translation 2022-11-20 09:23:10 +01:00
cpufreq cpufreq - silence switch falltrhough warnings 2021-04-17 12:32:40 +01:00
everything evrything - fix handling of broken strings without looping forever 2023-03-05 09:35:51 +00:00
fileman allow multiple mimes and actions on files in efm 2022-07-20 15:36:30 +01:00
fileman_opinfo e - module icons ... the great flattening begins... (partly done) 2021-04-05 23:45:47 +01:00
gadman modules - flattenify icons of more categories - conf to go... 2021-04-14 23:26:55 +01:00
geolocation e - module icons ... the great flattening begins... (partly done) 2021-04-05 23:45:47 +01:00
ibar ibar - kill off ibar not in order icon if last window for exe goes away 2022-12-12 19:52:46 +00:00
ibox ibox - track timer and elete it when icon deleted... bad tracking of tmr 2021-09-04 08:51:50 +01:00
layout clean up .desktop files and misc typos 2018-01-04 09:57:52 -05:00
lokker desklock - use immediate show for lock on suspend etc. 2023-02-10 22:21:54 +00:00
mixer mixer: alsa: Handle error from _alsa_card_create() 2023-11-14 09:53:09 +00:00
msgbus mesgbus - fix nukll name dbus string send 2022-08-01 17:11:42 +01:00
music-control music control - dont add another desklock handler if one is already 2022-12-29 12:05:48 +00:00
notification notification - fix crash if clicking close while close anim happens 2022-11-19 14:27:27 +00:00
packagekit pkgkit - count pkgs total in gadgets 2022-02-07 10:45:17 +00:00
pager pager - don't keep building up more popups on popups on switches 2022-01-31 11:39:15 +00:00
polkit polkit- use nicerr icon when not told which icon to display 2021-07-01 16:48:15 +01:00
procstats procstats - delete callbacks when client is deleted 2022-11-06 09:39:16 +00:00
quickaccess e - module icons ... the great flattening begins... (partly done) 2021-04-05 23:45:47 +01:00
shot shot - allow escape to escape the shot dialog 2022-05-23 17:35:28 +01:00
start e - module icons ... the great flattening begins... (partly done) 2021-04-05 23:45:47 +01:00
syscon e module and gad icons - fix some icons missed thay were hiding 2021-04-17 13:53:26 +01:00
systray systray - add more debugging to find clients that act oddly 2022-01-05 11:50:11 +00:00
tasks Tasks: choose a readable default preview size. 2022-03-04 19:11:15 +10:30
temperature e temp - use labels not paths to match sensors - more reliable 2021-12-14 19:53:02 +00:00
tiling modules - flattenify icons of more categories - conf to go... 2021-04-14 23:26:55 +01:00
vkbd modules - flattenify icons of more categories - conf to go... 2021-04-14 23:26:55 +01:00
winlist winlist - fix 0 item lenth rows - have at least 1 item 2022-03-22 12:41:01 +00:00
wizard fix ukrainian lang entry to uk_UA from uk_UK 2023-07-01 19:04:05 +01:00
wl_buffer meson opt - also match options change in core meson build 2019-07-12 14:14:28 +01:00
wl_desktop_shell e - module icons ... the great flattening begins... (partly done) 2021-04-05 23:45:47 +01:00
wl_drm wl_drm: Fix formatting 2022-12-07 07:00:05 -05:00
wl_fb tree-wide: get rid of trailing whitespace (last part) 2020-05-14 14:17:19 +02:00
wl_text_input wl text input - handle out of mem and free half done struct 2019-08-06 17:42:42 +01:00
wl_weekeyboard tree-wide: get rid of trailing whitespace 2020-05-19 12:09:13 +02:00
wl_wl wl-wl: Remove commented out code and fix formatting 2020-04-20 11:58:36 -04:00
wl_x11 e wl - fix randr fully to not even init if managed 2020-11-10 11:37:09 +00:00
xkbswitch xkb config - fix segv on close advanced mode dialog 2022-01-21 16:10:38 +00:00
xwayland tree-wide: get rid of trailing whitespace (last part) 2020-05-14 14:17:19 +02:00
meson.build shot - make initial size fit as best as possible and be big 2021-12-07 12:52:12 +00:00