[nas] nasd SIGFPE

Tobias Diedrich ranma at gmx.at
Thu Mar 18 18:06:51 MST 2004


I can reproducably crash nasd:

|(gdb) r
|Starting program: /home/ranma/src/nas-1.6c/server/nasd 
|
|Program received signal SIGUSR1, User defined signal 1.
|0x40055081 in kill () from /lib/tls/libc.so.6
|(gdb) bt
|#0  0x40055081 in kill () from /lib/tls/libc.so.6
|#1  0x080597f7 in AuRequestElementNotifyEvent (kind=2, reason=1, el=0x8075a60)
|    at auevents.c:191
|#2  0x080528fb in checkForTriggeredActions (el=0x8075a60, processFlow=0, 
|    reason=1) at auutil.c:1051
|#3  0x08052d52 in AuChangeElementState (flow=0x80759f0, elementNum=255, 
|    newState=1, processFlow=0, reason=0) at auutil.c:1229
|#4  0x08052e0e in AuProcessStateChanges (numStates=0, states=0x80749a8, 
|    flows=0x8075c58) at auutil.c:1258
|#5  0x0804cfa3 in ProcAuSetElementStates (client=0x8074828)
|    at audispatch.c:1033
|#6  0x08058148 in Dispatch () at dispatch.c:197
|#7  0x08049abe in main (argc=1, argv=0xbffffa84) at main.c:184
|(gdb) c
|Continuing.
|
|Program received signal SIGFPE, Arithmetic exception.
|0x08054fb4 in doSetup (flowEl=0x8075a60, rateConverter=0x8075d04, 
|    globalRate=0, isInput=1) at auprocess.c:1228
     ^^^^^^^^^^^^
My client accidentally sets up a flow with rate 0 and so nasd goes
down...

|1228            flowEl->nextSample = isInput ? (elementRate << 16) / globalRate :

|(gdb) bt
|#0  0x08054fb4 in doSetup (flowEl=0x8075a60, rateConverter=0x8075d04, 
|    globalRate=0, isInput=1) at auprocess.c:1228
|#1  0x080551e6 in AuSetupCompiledFlow (fl=0x8075c58, rate=0)
|    at auprocess.c:1309
|#2  0x080526bc in AuProcessFlows (fl=0x80759f0) at auutil.c:955
|#3  0x080526e3 in AuProcessClockedFlows () at auutil.c:971
|#4  0x08052daa in AuChangeElementState (flow=0x80759f0, elementNum=255, 
|    newState=1, processFlow=1, reason=0) at auutil.c:1243
|#5  0x080528df in checkForTriggeredActions (el=0x8075a60, processFlow=1, 
|    reason=0) at auutil.c:1047
|#6  0x08052d6d in AuChangeElementState (flow=0x80759f0, elementNum=0, 
|    newState=1, processFlow=1, reason=0) at auutil.c:1232
|#7  0x0804d934 in ProcAuWriteElement (client=0x8074828) at audispatch.c:1358
|#8  0x08058148 in Dispatch () at dispatch.c:197
|#9  0x08049abe in main (argc=1, argv=0xbffffa84) at main.c:184
|(gdb) 

-- 
Tobias						PGP: http://9ac7e0bc.2ya.com
This mail is made of 100% recycled bits.




More information about the Nas mailing list