Closed alex2grad closed 2 weeks ago
I want to check a new feature "no longer need to select DEBUG_THREADS to use DETECT_DEADLOCKS" https://github.com/asterisk/asterisk/pull/334 But it seems it's not working
@gtjoseph could you please look at this?
@gtjoseph could you please look at this?
Yep. I'll check this afternoon
Confirmed. I've opened an internal issue for this.
@alex2grad Check the ADD_CFLAGS_TO_BUILDOPTS_H
option along with DETECT_DEADLOCKS
and see if that prevents the segfault. If it does, then I know what the issue is and will have a fix up shortly.
No segfault with menuselect/menuselect \ --disable res_calendar_caldav \ --disable CORE-SOUNDS-EN-GSM \ --disable MOH-OPSOUND-WAV \ --enable DETECT_DEADLOCKS \ --enable ADD_CFLAGS_TO_BUILDOPTS_H \ menuselect.makeopts
Severity
Trivial
Versions
18.22.0
Components/Modules
lock.c
Operating Environment
Slackware 15.0 x86_64
Frequency of Occurrence
Constant
Issue Description
If asterisk is compiled with DETECT_DEADLOCKS and without DEBUG_THREADS it's immediately crashes on startup.
CFLAGS="-g -Og -fPIC" \ CXXFLAGS="-g -Og -fPIC" \ ./configure \ --prefix=/usr \ --libdir=/usr/lib64 \ --sysconfdir=/etc \ --localstatedir=/var \ --mandir=/usr/man \ --with-pjproject-bundled \ --with-download-cache=/tmp/downloads \ --with-libedit=/usr \ --enable-dev-mode=yes \ --build=x86_64-slackware-linux
make menuselect.makeopts menuselect/menuselect \ --disable res_calendar_caldav \ --disable CORE-SOUNDS-EN-GSM \ --disable MOH-OPSOUND-WAV \ --enable DETECT_DEADLOCKS \ menuselect.makeopts
Relevant log output
Asterisk Issue Guidelines