[PATCH] logging.c: log_parse_category_mask(), skip log category name... (was: Re: GPRS and PDP Context)

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.

Nico Golde openbsc at ngolde.de
Fri Sep 21 15:56:07 UTC 2012


Hi,
* ☎ <Max.Suraev at fairwaves.ru> [2012-09-21 15:12]:
> 21.09.2012 09:24, Harald Welte пишет:
> >
> > It should be -d DGPRS, but I suggest you rather configure logging for
> > stdout or for your given telnet session via VTY.
> >
> > I suggest to enable debug for NS, BSSGP, LLC, (G)MM
> Sadly with latest libosmocore from git I got segfault in log_parse_category_mask()
> with osmo-sgsn --debug=DNS:DGPRS:DNS:DBSSGP:DLLC:DMM:DGMM

This seems to be caused by a bug in libosmocore. I'm 
actually surprised that nobody encountered this crash 
before. The reason is that log_parse_category_mask() checks 
for osmo_log_info->cat[i].name being NULL after passing the 
pointer to strlen.

Attached is a patch to fix this.

Cheers
Nico


More information about the OpenBSC mailing list