Page MenuHomePhabricator

Double free on exit
Open, Showstopper IssuesPublic

Description

Using Debian Sid/unstable with *enlightenment* 0.23.1-5, starting it from a tty with enlightenment_start (Wayland is used), it seems to start fine. Then opening uxterm (Xwayland), and starting Enlightenment again from there (enlightenment_start), another Enlightenment DE is started in a window. Exiting this new started Enlightenment, it crashes with a double free error.

Please find the full backtrace of all threads attached (

).

#0  0xb7f0dc85 in __kernel_vsyscall ()
#1  0xb6d908b2 in __libc_signal_restore_set (set=0xbfdf02cc) at ../sysdeps/unix/sysv/linux/internal-signals.h:84
#2  __GI_raise (sig=6) at ../sysdeps/unix/sysv/linux/raise.c:48
#3  0xb6d793d7 in __GI_abort () at abort.c:100
#4  0xb6dd3a3c in __libc_message (action=<optimized out>, fmt=<optimized out>) at ../sysdeps/posix/libc_fatal.c:181
#5  0xb6ddbb2d in malloc_printerr (str=str@entry=0x6dc44b98 <error: Cannot access memory at address 0x6dc44b98>) at malloc.c:5339
#6  0xb6ddd82d in _int_free (av=0xb6f3c740 <main_arena>, p=0x29239a8, have_lock=have_lock@entry=0) at malloc.c:4201
#7  0xb6de0750 in __GI___libc_free (mem=0x29239b0) at malloc.c:3125
#8  0xb7d84fc6 in _eina_share_common_del_head (head=0x29239b0, p_bucket=0x26edb4c) at ../src/lib/eina/eina_share_common.c:450
#9  eina_share_common_del (share=0x26d6e30, str=0x29239d8 "Enlightenment: WL-WL") at ../src/lib/eina/eina_share_common.c:863
#10 0xb7d8c852 in eina_stringshare_del (str=0x29239d8 "Enlightenment: WL-WL") at ../src/lib/eina/eina_stringshare.c:568
#11 0xb70856f1 in ecore_wl2_window_free () at /usr/lib/i386-linux-gnu/libecore_wl2.so.1
#12 0xb477556a in  () at /usr/lib/i386-linux-gnu/ecore_evas/engines/wayland/v-1.23/module.so
#13 0xb71efeab in _ecore_evas_free () at /usr/lib/i386-linux-gnu/libecore_evas.so.1
#14 0xb71f0179 in ecore_evas_free () at /usr/lib/i386-linux-gnu/libecore_evas.so.1
#15 0x004f4701 in _e_comp_free (c=0x28946e0) at ../src/bin/e_comp.c:848
#16 0x005945fb in e_object_free (obj=obj@entry=0x28946e0) at ../src/bin/e_object.c:119
#17 0x00594833 in e_object_free (obj=0x28946e0) at ../src/bin/e_object.c:153
#18 e_object_unref (obj=0x28946e0) at ../src/bin/e_object.c:153
#19 0x0059492e in e_object_del (obj=<optimized out>) at ../src/bin/e_object.c:60
#20 0x004f6eed in e_comp_shutdown () at ../src/bin/e_comp.c:1405
#21 0x00586c37 in _e_main_screens_shutdown () at ../src/bin/e_main.c:1671
#22 0x005870e3 in _e_main_shutdown (errcode=0) at ../src/bin/e_main.c:1158
#23 0x004cddf7 in main (argc=<optimized out>, argv=<optimized out>) at ../src/bin/e_main.c:1110
pmenzel created this task.May 6 2020, 5:59 AM
ProhtMeyhet triaged this task as Showstopper Issues priority.Thu, Oct 8, 9:56 AM
ProhtMeyhet added projects: enlightenment-git, Restricted Project.

Yes ... this can cause a problem ... IF YOU WANT to do ANOTHER x11 ... do that

The more you do, the tougher it gets....

#8 is where it broke down.....

devilhorns added a comment.EditedThu, Oct 8, 8:53 PM

I can see #11 went clean.....So the problem is likely 8 or less...

Window free. strngshare del....What now ?

"#11 0xb70856f1 in ecore_wl2_window_free () at /usr/lib/i386-linux-gnu/libecore_wl2.so.1" ....

This tells me that the Ecore_Wl2 window is doing what it should.....Close....

", another Enlightenment DE is started in a window." ... <--- This is basically E-Wl running with an X window....Close That window,, what you THink gonna happen ???