[Bug 214338] devel/glib20: patch: new kqueue() backend for file monitoring

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Apr 7 04:43:29 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=214338

rozhuk.im at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #178938|0                           |1
        is obsolete|                            |

--- Comment #15 from rozhuk.im at gmail.com ---
Created attachment 181557
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=181557&action=edit
readdir_r() -> getdirentries()

After some system/ports updates during this months app start crash on standard
open dialog: (geany in this trace)
I fail to reproduce this in demo app, so I decide replace  readdir_r() to
getdirentries() and this helps.


#0  0x0000000803e856ea in thr_kill () from /lib/libc.so.7
#1  0x0000000803e856b4 in raise () from /lib/libc.so.7
#2  0x0000000803e85629 in abort () from /lib/libc.so.7
#3  0x000000080206641a in pthread_attr_getaffinity_np () from /lib/libthr.so.3
#4  0x00000008020601c1 in pthread_mutex_destroy () from /lib/libthr.so.3
#5  0x00000008020606bd in pthread_mutex_destroy () from /lib/libthr.so.3
#6  0x000000080205f8c9 in pthread_mutex_lock () from /lib/libthr.so.3
#7  0x0000000803ef89d2 in readdir_r () from /lib/libc.so.7
#8  0x0000000802f9666a in kqueue_file_mon_data_init (fmd=0x80f99b700) at
kqueue_fnm.c:262
#9  0x0000000802f96020 in kqueue_fnm_delay_call_process (kfnm=0x80f6f14e0,
forced_msg_cb=0) at kqueue_fnm.c:498
#10 0x0000000802f969fe in kqueue_fnm_proccess_events (kfnm=0x80f6f14e0,
cb_func=0x802f95e00 <kqueue_event_handler>) at kqueue_fnm.c:621
#11 0x0000000802f95de4 in g_kqueue_file_monitor_callback (fd=14,
condition=G_IO_IN, user_data=0x0) at gkqueuefilemonitor.c:92
#12 0x000000080393893a in g_unix_fd_source_dispatch (source=0x80cb6faf0,
callback=0x802f95db0 <g_kqueue_file_monitor_callback>, user_data=0x0) at
glib-unix.c:308
#13 0x00000008038d2be3 in g_main_dispatch (context=0x80ae41700) at gmain.c:3203
#14 0x00000008038d2a30 in g_main_context_dispatch (context=0x80ae41700) at
gmain.c:3856
#15 0x00000008038d2f7e in g_main_context_iterate (context=0x80ae41700, block=1,
dispatch=1, self=0x80b08b280) at gmain.c:3929
#16 0x00000008038d2ff3 in g_main_context_iteration (context=0x80ae41700,
may_block=1) at gmain.c:3990
#17 0x00000008038d498d in glib_worker_main (data=0x0) at gmain.c:5783
#18 0x000000080390ae9d in g_thread_proxy (data=0x80b08b280) at gthread.c:784
#19 0x0000000802058bd5 in pthread_create () from /lib/libthr.so.3
#20 0x0000000000000000 in ?? ()

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-gnome mailing list