Hi Rainer,

I launched the rsyslog using valgrind: /opt/valgrind/bin/valgrind
/usr/sbin/rsyslogd -n
and then send a message using logger. This is what it dumps:

==31904== Memcheck, a memory error detector
==31904== Copyright (C) 2002-2012, and GNU GPL'd, by Julian Seward et al.
==31904== Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyright info
==31904== Command: /usr/sbin/rsyslogd -n
==31904==
rsyslogd: Could no open output pipe '/dev/xconsole': No such file or
directory [try http://www.rsyslog.com/e/2039 ]
==31904== Thread 2:
==31904== Jump to the invalid address stated on the next line
==31904==    at 0x0: ???
==31904==    by 0x6ECA6E1: MsgSetInputName (in /usr/lib/rsyslog/imuxsock.so)
==31904==    by 0x6EC1EE4: ??? (in /usr/lib/rsyslog/imuxsock.so)
==31904==    by 0x6EC2BD2: ??? (in /usr/lib/rsyslog/imuxsock.so)
==31904==    by 0x450F2E: ??? (in /usr/sbin/rsyslogd)
==31904==    by 0x504E9C9: start_thread (pthread_create.c:300)
==31904==    by 0x640021C: clone (clone.S:112)
==31904==  Address 0x0 is not stack'd, malloc'd or (recently) free'd
==31904==
==31904==
==31904== Process terminating with default action of signal 11 (SIGSEGV)
==31904==  Bad permissions for mapped region at address 0x0
==31904==    at 0x0: ???
==31904==    by 0x6ECA6E1: MsgSetInputName (in /usr/lib/rsyslog/imuxsock.so)
==31904==    by 0x6EC1EE4: ??? (in /usr/lib/rsyslog/imuxsock.so)
==31904==    by 0x6EC2BD2: ??? (in /usr/lib/rsyslog/imuxsock.so)
==31904==    by 0x450F2E: ??? (in /usr/sbin/rsyslogd)
==31904==    by 0x504E9C9: start_thread (pthread_create.c:300)
==31904==    by 0x640021C: clone (clone.S:112)
==31904==
==31904== HEAP SUMMARY:
==31904==     in use at exit: 201,203 bytes in 1,569 blocks
==31904==   total heap usage: 2,228 allocs, 659 frees, 289,130 bytes
allocated
==31904==
==31904== LEAK SUMMARY:
==31904==    definitely lost: 0 bytes in 0 blocks
==31904==    indirectly lost: 0 bytes in 0 blocks
==31904==      possibly lost: 864 bytes in 3 blocks
==31904==    still reachable: 200,339 bytes in 1,566 blocks
==31904==         suppressed: 0 bytes in 0 blocks
==31904== Rerun with --leak-check=full to see details of leaked memory
==31904==
==31904== For counts of detected and suppressed errors, rerun with: -v
==31904== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 13 from 7)
==31904== could not unlink /tmp/vgdb-pipe-from-vgdb-to-31904-by-root-on-???
==31904== could not unlink /tmp/vgdb-pipe-to-vgdb-from-31904-by-root-on-???
==31904== could not unlink
/tmp/vgdb-pipe-shared-mem-vgdb-31904-by-root-on-???
Killed


Thanks,
Xavi



On 21 February 2013 11:18, Rainer Gerhards <[email protected]> wrote:

> On Thu, 2013-02-21 at 11:14 +0100, Xavier Fustero wrote:
> > Hi,
> >
> > I would like to ask if there is any Ubuntu expert here who could help me
> on
> > creating the rsyslog package to have rsyslog 7.2.5 running in my Ubuntu
> > 10.04.
> >
> > I have created several packages:
> >
> > json-c_0.9-1_amd64.deb
> > libee_0.4.1-1_amd64.deb
> > libestr_0.1.4-1_amd64.deb
> > liblognorm_0.3.5-1_amd64.deb
> > librelp_1.0.1-1_amd64.deb
> > rsyslog_7.2.5-1_amd64.deb
> >
> > Then I have 2 scenarios where one is working and the other no.
> >
> >
> >    - *Scenario1:*
> >
> >
> > I have installed all above packages except rsyslog_7.2.5-1_amd64.deb.
> Then
> > I have installed any extra required package, downloaded the rsyslog and
> > compiled it in this box:
> >
> > apt-get install uuid-dev
> >
> > cd rsyslog-7.2.5
> >
> > ./configure --libdir=/usr/lib --includedir=/usr/include
> > --enable-gssapi-krb5 --enable-kmsg --enable-debug --enable-memcheck
> > --enable-diagtools --enable-usertools --enable-mysql
> --enable-elasticsearch
> > --enable-gnutls --enable-mmnormalize --enable-mmjsonparse --enable-relp
> > --enable-imfile --enable-imptcp --enable-impstats --enable-pmlastmsg
> >
> > This seems to be working for me. If I launch the rsyslog by hand
> > /usr/local/sbin/rsyslogd the PrivDrop also seems to be working fine. It
> > takes a while for the root process to disappear but it does.
> >
> >
> >
> >    - *Scenario 2*
> >
> >
> > This is the desired scenario as I am building server through templates
> and
> > I would like just to install packages at boot time.
> > I have installed all above packages. I don't know why but my rsyslog
> > package produces a segmentation fault every time I send a message. I have
> > created it according the above configuration parameters.
> >
> > But when I launch it in debug mode I get the last line when I get a
> message:
> >
> > ...
> > 6250.465837291:7fbc779ce700: regular consumer finished, iret=4, szlog
> > 0 sz phys 0
> > 6250.465841734:7fbc779ce700: main Q:Reg/w0: worker IDLE, waiting for
> work.
> > 6253.511342997:7fbc799d2700: Message from UNIX socket: #3
> > Segmentation fault
> >
> can you run this under valgrind? It hopefully points to the actual
> proiblem location. Make sure symbols are not stripped during
> compile/link.
>
> Rainer
> > I might miss something during the package creation because I am not able
> to
> > make a solid package for the rsyslog.
> > Does anyone have any hint on how to fix this?
> >
> > Thanks a log,
> > Xavi
> > _______________________________________________
> > rsyslog mailing list
> > http://lists.adiscon.net/mailman/listinfo/rsyslog
> > http://www.rsyslog.com/professional-services/
> > What's up with rsyslog? Follow https://twitter.com/rgerhards
> > NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad
> of sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you
> DON'T LIKE THAT.
>
> _______________________________________________
> rsyslog mailing list
> http://lists.adiscon.net/mailman/listinfo/rsyslog
> http://www.rsyslog.com/professional-services/
> What's up with rsyslog? Follow https://twitter.com/rgerhards
> NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad
> of sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you
> DON'T LIKE THAT.
>
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of 
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE 
THAT.

Reply via email to