#569605 srg segfaults when given invalid options

Package:
srg
Source:
srg
Description:
Fast, Flexible and Detailed log analysis for the Squid Proxy
Submitter:
"v.nix.is"
Date:
2010-02-12 20:42:05 UTC
Severity:
normal
#569605#5
Date:
2010-02-12 20:38:41 UTC
From:
To:
Running srg like this makes it segfault:

    /usr/bin/srg -C /etc/srg/srg.conf -m 31 -f 2010-02-11 -t 2010-02-11 -o /var/cache/srg_reports/daily /var/log/squid/access.log

Here's the GDB output:

(gdb) run -C /etc/srg/srg.conf -m 31 -f 2010-02-11 -t 2010-02-11 -o /var/cache/srg_reports/daily /var/log/squid/access.log
Starting program: /usr/bin/srg -C /etc/srg/srg.conf -m 31 -f 2010-02-11 -t 2010-02-11 -o /var/cache/srg_reports/daily /var/log/squid/access.log
error: syntax error
Expected configuration directive

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff73bd9e5 in inet_aton () from /lib/libc.so.6
(gdb) bt
#0  0x00007ffff73bd9e5 in inet_aton () from /lib/libc.so.6
#1  0x000000000040340d in ?? ()
#2  0x0000000000407bc1 in ?? ()
#3  0x00007ffff7303abd in __libc_start_main () from /lib/libc.so.6
#4  0x0000000000402349 in ?? ()
#5  0x00007fffffffe0c8 in ?? ()
#6  0x000000000000001c in ?? ()
#7  0x000000000000000c in ?? ()
#8  0x00007fffffffe394 in ?? ()
#9  0x00007fffffffe3a1 in ?? ()
#10 0x00007fffffffe3a4 in ?? ()
#11 0x00007fffffffe3b6 in ?? ()
#12 0x00007fffffffe3b9 in ?? ()
#13 0x00007fffffffe3bc in ?? ()
#14 0x00007fffffffe3bf in ?? ()
#15 0x00007fffffffe3ca in ?? ()
#16 0x00007fffffffe3cd in ?? ()
#17 0x00007fffffffe3d8 in ?? ()
#18 0x00007fffffffe3db in ?? ()
#19 0x00007fffffffe3f8 in ?? ()
#20 0x0000000000000000 in ?? ()
(gdb)