(gdb) thread 1
[Switching to thread 1 (process 11534)]#0 sanitizeMessage
(pMsg=0x7f312c001530) at parser.c:222
222 if(pszMsg[iSrc] == '\0') { /* guard against \0
characters... */
(gdb) print sanitizeMessage::pszMsg
$10 = (uchar *) 0x7f312c001658 ""
(gdb) print sanitizeMessage::szSanBuf
$11 =
"?Z\224J\\002\\010\\031\\025*8\\006+?\\007?\204\\011\\002\\010\\031\\025*8\\006+?\\007?\204\\011g
rcpt '[email protected]'\\012f3b021455:
to=<mailmosmelter.diginsite.lay=2+16sm-mta[23076]smeter00, mailer=ug 25
21:42:56v0."...
(gdb) print sanitizeMessage::pMsg
$12 = (msg_t *) 0x7f312c001530
(gdb) print *sanitizeMessage::pMsg # note the asterisk!
Invalid character '#' in expression.
(gdb) print *sanitizeMessage::pMsg
$13 = {objData = {pObjInfo = 0xa1bd10, pszName = 0x0}, flowCtlType =
eFLOWCTL_NO_DELAY, mut = {__data = {
__lock = 775043377, __count = 775435825, __owner = 775042098, __nusers =
3617329, __kind = 15, __spins = 0,
__list = {__prev = 0x0, __next = 0x1faa1}},
__size = "192.168.242.127\000\017", '\0' <repeats 15 times>,
"??\001\000\000\000\000", __align = 3330471509296822577},
bDoLock = 0 '\0', bParseHOSTNAME = 1 '\001', iRefCount = 1, iSeverity = -1,
iFacility = -1, offAfterPRI = 0,
offMSG = -1, iProtocolVersion = 0, msgFlags = 48, iLenRawMsg = 0, iLenMSG =
0, iLenTAG = 0, iLenHOSTNAME = 0,
pszRawMsg = 0x7f312c001658 "", pszHOSTNAME = 0x0, pszRcvdAt3164 = 0x0,
pszRcvdAt3339 = 0x0, pszRcvdAt_MySQL = 0x0,
pszRcvdAt_PgSQL = 0x0, pszTIMESTAMP3164 = 0x0, pszTIMESTAMP3339 = 0x0,
pszTIMESTAMP_MySQL = 0x0,
pszTIMESTAMP_PgSQL = 0x0, pCSProgName = 0x0, pCSStrucData = 0x0, pCSAPPNAME
= 0x0, pCSPROCID = 0x0, pCSMSGID = 0x0,
pInputName = 0xa313b0, pRcvFrom = 0x7f312c0012f0, pRcvFromIP = 0x0, pRuleset
= 0x0, ttGenTime = 1251236576, tRcvdAt = {
timeType = 2 '\002', month = 8 '\b', day = 25 '\031', hour = 21 '\025',
minute = 42 '*', second = 56 '8',
secfracPrecision = 6 '\006', OffsetMinute = 0 '\0', OffsetHour = 0 '\0',
OffsetMode = 43 '+', year = 2009,
secfrac = 647276}, tTIMESTAMP = {timeType = 2 '\002', month = 8 '\b', day
= 25 '\031', hour = 21 '\025',
minute = 42 '*', second = 56 '8', secfracPrecision = 6 '\006',
OffsetMinute = 0 '\0', OffsetHour = 0 '\0',
OffsetMode = 43 '+', year = 2009, secfrac = 647276},
szRawMsg = '\0' <repeats 24 times>,
"?Z\224J\000\000\000\000\002\b\031\025*8\006\000\000+?\a?\204\t\000\002\b\031\025*8\006\000\000+?\a?\204\t\000g
rcpt '[email protected]'\n\000f3b02", szHOSTNAME = "1455:
to=<mailmosmelter\000.diginsi",
TAG = {pszTAG = 0x0, szBuf =
"\000\000\000\000\000\000\000\000lay=2+16sm-mta[23076]sme"},
pszTimestamp3164 = "\000ter\00000, mailer=", pszTimestamp3339 = "\000ug 25
21:42:56\000v0.88.5[3586]:\000y-",
pszTIMESTAMP_SecFrac = "\000ip-dr.", pszRcvdAt_SecFrac = "\000iginsi"}
(gdb) print sanitizeMessage::iMaxLine
$14 = <value optimized out>
(gdb) print sanitizeMessage::maxDest
$15 = 0
(gdb) print sanitizeMessage::iSrc
$16 = 129448
(gdb) print sanitizeMessage::iDst
$17 = 821
(gdb) print sanitizeMessage::pDst
$18 = (
uchar *) 0x40ba8e60
"?Z\224J\\002\\010\\031\\025*8\\006+?\\007?\204\\011\\002\\010\\031\\025*8\\006+?\\007?\204\\011g
rcpt '[email protected]'\\012f3b021455:
to=<mailmosmelter.diginsite.lay=2+16sm-mta[23076]smeter00, mailer=ug 25
21:42:56v0."...
On Wed, 26 Aug 2009, Rainer Gerhards wrote:
> Date: Wed, 26 Aug 2009 11:50:04 +0200
> From: Rainer Gerhards <[email protected]>
> Reply-To: rsyslog-users <[email protected]>
> To: rsyslog-users <[email protected]>
> Subject: Re: [rsyslog] abort in 4.2.1
>
> David,
>
> one more thing. If you still have the core file, could you start up gdb again
> and then do
>
> (gdb) thread 1
> (gdb) print sanitizeMessage::pszMsg
> (gdb) print sanitizeMessage::szSanBuf
> (gdb) print sanitizeMessage::pMsg
> (gdb) print *sanitizeMessage::pMsg # note the asterisk!
> (gdb) print sanitizeMessage::iMaxLine
> (gdb) print sanitizeMessage::maxDest
>
> The following ones likely will yield to no result as they are usually
> optimized out (moved into registers):
> (gdb) print sanitizeMessage::iSrc
> (gdb) print sanitizeMessage::iDst
> (gdb) print sanitizeMessage::pDst
>
> That will tell me if the pointers are ok, and what they actually point to.
> Based on the addresses I see, I guess that the message object pointer
> provided is already invalid. But it is hard to verify without the context...
>
> Rainer
> _______________________________________________
> rsyslog mailing list
> http://lists.adiscon.net/mailman/listinfo/rsyslog
> http://www.rsyslog.com
>
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com