Rainer Gerhards wrote: > Michael, > > I still could not reproduce, but it may be because the memory layout is very > important. But I think I found the root cause: I seem to have some problems > with basic math ;) > > Please go to ./plugins/imudp/imudp.c in line 101: > > http://git.adiscon.com/?p=rsyslog.git;a=blob;f=plugins/imudp/imudp.c;h=3cdd8d > d64574ebc978b1243030b61a53e32053a3;hb=debian_lenny#l101 > > And replace > > if((tmpSocks = malloc(sizeof(int) * 1 + newSocks[0] + udpLstnSocks[0])) == > NULL) { > > with > > if((tmpSocks = malloc(sizeof(int) * (1 + newSocks[0] + udpLstnSocks[0]))) == > NULL) { > > Note the parenthesis ;) > > Please let me know the result. >
Hm, current v3-stable (b47d95286bd78282c57fdc200f81d17b187a45dd) does indeed not seem to crash anymore. What I noticed though, is a bit weird behaviour on shutdown If I run rsyslogd -c3 -dn and hit STRG+C, I get .... 2485.250790961:main thread: Unloading module lmnet 2485.250849069:main thread: Clean shutdown completed, bye /var/log/acpid.log/var/log/ConsoleKit.log/var/log/NetworkManager.log/var/log/powersaved.log/var/log/auth.log/var/log/syslog/var/log/daemon.log/var/log/kern.log/var/log/lpr.log/var/log/mail.log/var/log/user.log/var/log/mail.info/var/log/mail.warn/var/log/mail.err/var/log/news/news.crit/var/log/news/news.err/var/log/news/news.notice/var/log/debug/var/log/messages/dev/xconsole Why is rsyslog now printing all the log file names after shutdown? Michael -- Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth?
signature.asc
Description: OpenPGP digital signature

