[OpenSIPS-Devel] [ opensips-Bugs-3003933 ] mode=debug issues
SourceForge.net
noreply at sourceforge.net
Wed May 26 10:57:00 CEST 2010
Bugs item #3003933, was opened at 2010-05-19 11:35
Message generated for change (Comment added) made by bogdan_iancu
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=3003933&group_id=232389
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: core
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: mode=debug issues
Initial Comment:
Hi there,
I've been running into a segfault at pkg_malloc somewhere. While trying to get more info through a debug build, I noticed that setting mode=debug does not work properly. I've played around with some compile-time options and have the following remarks:
(1) mode=debug *disables* the -g flag. Fixed in osips16x-mode-debug-fix.patch
(2) When setting CFLAGS="-DDBG_QM_MALLOC" I got a "module compile flags mismatch" for several modules(*). This is caused by early includes of header files that add headers. I've moved the #include of sr_module.h up to fix this in osips16x-sr-module-order.patch.
Regards,
Walter Doekes
OSSO B.V.
(*) E.g.: May 18 21:37:26 sip1 opensips: ERROR:core:version_control: module compile flags mismatch for usrloc #012core: STATS: Off, USE_IPV6, USE_TCP, DISABLE_NAGLE, USE_MCAST, SHM_MEM, SHM_MMAP, PKG_MALLOC, F_MALLOC, DBG_QM_MALLOC, FAST_LOCK-ADA
PTIVE_WAIT #012module: STATS: Off, USE_IPV6, USE_TCP, DISABLE_NAGLE, USE_MCAST, SHM_MEM, SHM_MMAP, PKG_MALLOC, F_MALLOC, DBG_QM_MALLOC, DBG_F_MALLOC, FAST_LOCK-ADAPTIVE_WAIT <-- notice the extra DBG_F_MALLOC that got added there through db.h which eventually includes mem.h which sets it.
----------------------------------------------------------------------
>Comment By: Bogdan-Andrei Iancu (bogdan_iancu)
Date: 2010-05-26 11:57
Message:
Hi Walter - patch applied . Thank you.
Regards,
Bogdan
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=3003933&group_id=232389
More information about the Devel
mailing list