[Bug 225863] Regression between 10 & 11, Freeswitch hangs when exiting

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug 225863] Regression between 10 & 11, Freeswitch hangs when exiting

bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=225863

            Bug ID: 225863
           Summary: Regression between 10 & 11, Freeswitch hangs when
                    exiting
           Product: Base System
           Version: 11.1-STABLE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: threads
          Assignee: [hidden email]
          Reporter: [hidden email]

Created attachment 190575
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=190575&action=edit
backtrace

Freeswitch, a multiprotocol softswitch (http://freewitch.org) runs on
FreeBSD and a port is available (net/freeswitch/)

Freeswitch runs fine on any 10.x installation, issueing the shutdown
command from cli makes the application exit cleanly.

On any 11.x installation, issueing the shutdown command from cli makes
the application hang.

FreeBSD version is :
FreeBSD newsrv.interne.associated-bears.org 11.1-STABLE FreeBSD 11.1-STABLE #0
r327876M: Sat Jan 13 16:19:26 CET 2018    
[hidden email]:/usr/obj/usr/src/sys/SE7525GP2  amd64

Generic or custom kernel behave the same.

On Freeswitch side, 1.6.19 (net/freeswitch) and also git branches master
& v1.6 show the same issue.

I've reproduced the issue on the latest v1.6, the backtrace of stuck
process shows the following :
#0  0x00000008030ea91c in _umtx_op_err () from /lib/libthr.so.3
#1  0x00000008030e6f97 in join_common (pthread=0x807ed7700,
thread_return=0x7fffffffb658, abstime=0x0) at
/usr/src/lib/libthr/thread/thr_join.c:125
#2  0x0000000800f01421 in apr_thread_join (retval=0x7fffffffb68c,
thd=0x8059e9658) at threadproc/unix/thread.c:234
#3  0x0000000800cd889e in do_shutdown (module=0x2, shutdown=<optimized out>,
unload=SWITCH_TRUE, fail_if_busy=(unknown: 1523667750), err=<optimized out>) at
src/switch_loadable_module.c:2031
#4  0x0000000800cdb84a in switch_loadable_module_shutdown () at
src/switch_loadable_module.c:2083
#5  0x0000000800c9d92c in switch_core_destroy () at src/switch_core.c:2940
#6  0x0000000000403b2b in main (argc=<optimized out>, argv=0x7fffffffe988) at
src/switch.c:1210

It seems the issue lies in thread handling.

I've attached :
- the output of a Freeswitch related script used to gather relevant
  information.
- source files showing in bt

Thank for help.

√Čric Masson

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-threads
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

[Bug 225863] Regression between 10 & 11, Freeswitch hangs when exiting

bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=225863

[hidden email] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #190576|text/x-csrc                 |text/plain
          mime type|                            |

--- Comment #1 from [hidden email] ---
Created attachment 190576
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=190576&action=edit
apr thread

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-threads
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

[Bug 225863] Regression between 10 & 11, Freeswitch hangs when exiting

bugzilla-noreply
In reply to this post by bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=225863

[hidden email] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #190577|text/x-csrc                 |text/plain
          mime type|                            |

--- Comment #2 from [hidden email] ---
Created attachment 190577
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=190577&action=edit
switch_loadable_module.c

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-threads
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

[Bug 225863] Regression between 10 & 11, Freeswitch hangs when exiting

bugzilla-noreply
In reply to this post by bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=225863

[hidden email] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #190578|text/x-csrc                 |text/plain
          mime type|                            |

--- Comment #3 from [hidden email] ---
Created attachment 190578
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=190578&action=edit
switch_core.c

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-threads
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

[Bug 225863] Regression between 10 & 11, Freeswitch hangs when exiting

bugzilla-noreply
In reply to this post by bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=225863

[hidden email] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #190579|text/x-csrc                 |text/plain
          mime type|                            |

--- Comment #4 from [hidden email] ---
Created attachment 190579
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=190579&action=edit
switch.c

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-threads
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

[Bug 225863] Regression between 10 & 11, Freeswitch hangs when exiting

bugzilla-noreply
In reply to this post by bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=225863

[hidden email] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #190576|0                           |1
        is obsolete|                            |
 Attachment #190580|text/x-csrc                 |text/plain
          mime type|                            |

--- Comment #5 from [hidden email] ---
Created attachment 190580
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=190580&action=edit
thread.c

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-threads
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

[Bug 225863] Regression between 10 & 11, Freeswitch hangs when exiting

bugzilla-noreply
In reply to this post by bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=225863

Mark Linimon <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |regression

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-threads
To unsubscribe, send any mail to "[hidden email]"