svn commit: r326574 - head/usr.bin/logger

Gleb Smirnoff glebius at FreeBSD.org
Wed Dec 6 04:40:54 UTC 2017


  Hi Cy,

On Tue, Dec 05, 2017 at 08:30:07PM -0800, Cy Schubert wrote:
C> Hi Gleb,
C> 
C> I'm getting a segfault here.
C> 
C> [New LWP 101396]
C> Core was generated by `logger -p daemon.notice -t local-dhclient(lagg0):4629
C> 2 dhclient-script for inter'.
C> Program terminated with signal SIGSEGV, Segmentation fault.
C> #0  0x0000000000402152 in main (argc=<optimized out>, argv=<optimized out>)
C>     at /opt/src/svn-current/usr.bin/logger/logger.c:186
C> 186			*strchr(hostname, '.') = '\0';
C> (gdb) bt
C> #0  0x0000000000402152 in main (argc=<optimized out>, argv=<optimized out>)
C>     at /opt/src/svn-current/usr.bin/logger/logger.c:186
C> (gdb) 

Mea culpa! Can you please test the attached patch?

-- 
Gleb Smirnoff
-------------- next part --------------
A non-text attachment was scrubbed...
Name: logger.diff
Type: text/x-diff
Size: 398 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/svn-src-head/attachments/20171205/f99ade7a/attachment.diff>


More information about the svn-src-head mailing list