Page MenuHomePhabricator

eflete can delete your entire homedir
Open, Showstopper IssuesPublic

Description

This just happened to me today and I think it was something like this which caused it:

  1. project directory gets set to ~
  2. eflete detects project files already existing on startup
  3. eflete tries to delete "old project" which ends up being the entire homedir
zmike created this task.Jun 25 2018, 1:38 PM
zmike triaged this task as Showstopper Issues priority.
zmike added a comment.Jul 5 2018, 8:50 AM

If a project name isn't entered then it passes a null string and deletes the homedir.

zmike added a comment.Jul 5 2018, 8:56 AM
#0  0x00007ffff020ef54 in ecore_file_recursive_rm (dir=0x14d81a0 "/home/zmike/") at lib/ecore_file/ecore_file.c:326
#1  0x000000000045d293 in _exist_permission_popup_close_cb (data=0x195ce80, obj=0x400000145654, event_info=0x10)
    at ../../src/bin/ui/project_common.c:60
#2  0x00007ffff27ba9c0 in _eo_evas_smart_cb (data=0x165ad10, event=0x7fffffffd030)
    at lib/evas/canvas/evas_object_smart.c:78
#3  0x00007fffedef8000 in _event_callback_call (obj_id=0x400000145654, pd=0x101c5b0, desc=0x150c9f0, event_info=0x10, legacy_compare=1 '\001') at lib/eo/eo_base_class.c:1694
#4  0x00007fffedef8341 in _efl_object_event_callback_legacy_call (obj_id=0x400000145654, pd=0x101c5b0, desc=0x150c9f0, event_info=0x10) at lib/eo/eo_base_class.c:1767
#5  0x00007fffedef83e7 in efl_event_callback_legacy_call (obj=0x400000145654, desc=0x150c9f0, event_info=0x10)
    at lib/eo/eo_base_class.c:1770
#6  0x00007ffff27a8d54 in _efl_canvas_object_efl_object_event_callback_legacy_call (eo_obj=0x400000145654, obj=0x101c600, desc=0x150c9f0, event_info=0x10) at lib/evas/canvas/evas_object_main.c:1231
#7  0x00007fffedef83e7 in efl_event_callback_legacy_call (obj=0x400000145654, desc=0x150c9f0, event_info=0x10)
    at lib/eo/eo_base_class.c:1770
#8  0x00007ffff27bd2b4 in evas_object_smart_callback_call (eo_obj=0x400000145654, event=0x4ffd73 "POPUP_CLOSE_CB", event_info=0x10) at lib/evas/canvas/evas_object_smart.c:1043
#9  0x0000000000459438 in _popup_btn_cb (data=0x10, obj=0x40000015b679, ei=0x0) at ../../src/bin/ui/popup.c:103
#10 0x00007ffff27ba9c0 in _eo_evas_smart_cb (data=0xf2e990, event=0x7fffffffd320)
    at lib/evas/canvas/evas_object_smart.c:78
#11 0x00007fffedef8000 in _event_callback_call (obj_id=0x40000015b679, pd=0x11b6610, desc=0x7fffee361240 <_EFL_UI_EVENT_CLICKED>, event_info=0x0, legacy_compare=1 '\001') at lib/eo/eo_base_class.c:1694
#12 0x00007fffedef8341 in _efl_object_event_callback_legacy_call (obj_id=0x40000015b679, pd=0x11b6610, desc=0x7fffee361240 <_EFL_UI_EVENT_CLICKED>, event_info=0x0) at lib/eo/eo_base_class.c:1767
#13 0x00007fffedef83e7 in efl_event_callback_legacy_call (obj=0x40000015b679, desc=0x7fffee361240 <_EFL_UI_EVENT_CLICKED>, event_info=0x0) at lib/eo/eo_base_class.c:1770
#14 0x00007ffff27a8d54 in _efl_canvas_object_efl_object_event_callback_legacy_call (eo_obj=0x40000015b679, obj=0x11b6660, desc=0x7fffee361240 <_EFL_UI_EVENT_CLICKED>, event_info=0x0) at lib/evas/canvas/evas_object_main.c:1231
#15 0x00007fffedef83e7 in efl_event_callback_legacy_call (obj=0x40000015b679, desc=0x7fffee361240 <_EFL_UI_EVENT_CLICKED>, event_info=0x0) at lib/eo/eo_base_class.c:1770
#16 0x00007ffff78582d6 in _activate (obj=0x40000015b679) at lib/elementary/efl_ui_button.c:74
#17 0x00007ffff7858509 in _on_clicked_signal (data=0x40000015b679, obj=0x400000122e7a, emission=0xc43d7c "elm,action,click", source=0x7fffedcc4208 "") at lib/elementary/efl_ui_button.c:126
#18 0x00007ffff397f2b7 in edje_match_callback_exec_check_finals (ssp=0xccc560, matches=0xc6b7f0, signal_states=0xccc670, source_states=0xc743c0, sig=0xc43d7c "elm,action,click", source=0x7fffedcc4208 "", ed=0x12a5ec0, prop=0 '\000')
    at lib/edje/edje_match.c:556
#19 0x00007ffff397f7ec in edje_match_callback_exec (ssp=0xccc560, matches=0xc6b7f0, sig=0xc43d7c "elm,action,click", source=0x7fffedcc4208 "", ed=0x12a5ec0, prop=0 '\000') at lib/edje/edje_match.c:711
#20 0x00007ffff3988a09 in _edje_emit_cb (ed=0x12a5ec0, sig=0xc43d7c "elm,action,click", src=0x7fffedcc4208 "", data=0x14ce7a0, prop=0 '\000') at lib/edje/edje_program.c:1647
#21 0x00007ffff3988854 in _edje_emit_handle (ed=0x12a5ec0, sig=0xc43d7c "elm,action,click", src=0x7fffedcc4208 "", sdata=0x14ce7a0, prop=0 '\000') at lib/edje/edje_program.c:1589
#22 0x00007ffff3981edc in _edje_message_process (em=0x154bce0) at lib/edje/edje_message_queue.c:783
#23 0x00007ffff39822f4 in _edje_message_queue_process () at lib/edje/edje_message_queue.c:886
#24 0x00007ffff3980ede in _edje_job (data=0x0) at lib/edje/edje_message_queue.c:260
#25 0x00007fffee89a51f in _ecore_job_event_handler (data=0x0, type=14, ev=0x1a09720) at lib/ecore/ecore_job.c:98
#26 0x00007fffee8a0edd in _ecore_event_message_handler_efl_loop_message_handler_message_call (obj=0x40000000141f, pd=0x79bb50, message=0x4000000c8bde) at lib/ecore/ecore_event_message_handler.c:359
#27 0x00007fffee8ab5b1 in efl_loop_message_handler_message_call (obj=0x40000000141f, message=0x4000000c8bde)
    at lib/ecore/efl_loop_message_handler.eo.c:14
#28 0x00007fffee8a6229 in _efl_loop_message_process (obj=0x40000000001a, pd=0x791a60) at lib/ecore/efl_loop.c:633
#29 0x00007fffee8a641a in efl_loop_message_process (obj=0x40000000001a) at lib/ecore/efl_loop.c:663
#30 0x00007fffee89ea06 in _ecore_main_loop_iterate_internal (obj=0x40000000001a, pd=0x791a60, once_only=0)
    at lib/ecore/ecore_main.c:2450
#31 0x00007fffee89c107 in _ecore_main_loop_begin (obj=0x40000000001a, pd=0x791a60) at lib/ecore/ecore_main.c:1183
#32 0x00007fffee8a49f8 in _efl_loop_begin (obj=0x40000000001a, pd=0x791a60) at lib/ecore/efl_loop.c:83
#33 0x00007fffee8a710f in efl_loop_begin (obj=0x40000000001a) at lib/ecore/efl_loop.eo.c:28
#34 0x00007fffee89c281 in ecore_main_loop_begin () at lib/ecore/ecore_main.c:1266
#35 0x00007ffff797c68a in elm_run () at lib/elementary/elm_main.c:1273
#36 0x000000000041bf7e in elm_main (argc=1, argv=0x7fffffffdce8) at ../../src/bin/main.c:432
#37 0x000000000041c025 in main (argc=1, argv=0x7fffffffdce8) at ../../src/bin/main.c:446