[techtalk] bind problem...and a sendmail one, too

Nicole Zimmerman colby at wsu.edu
Sun Nov 14 18:27:33 EST 1999


Groovy. :o)

Jeff Dike wrote:
> 
> > I had it dump it's stats, memstats, and database, but I can't seem to
> > decipher WHAT address "is already in use".
> 
> I get a chance to plug one of my favorite utilities...strace :-).
> 
> run strace -p <cron pid> -f -e trace=network
> 
> and look for something returning EADDRINUSE or 98.  Then look at the
> arguments, and if it was a socket operation, then look at the arguments to the
> previous operations on that socket, especially bind.

Is there something I am missing here? Here's what I have:

crond.pid (according to /var/run/crond.pid) is 328

[root at ghettoBOX run]# strace -p 328 -f -e trace=network
about to attach 148
[pid 14160] recv(59, "\211\302\203\372\377t\t\205\322t"..., 0,
0x804ff70) = 14162
[pid 14161] recv(134545456, "\211\302\203\372\377t\t\205\322t"..., 0,
0x8050030) = 14164
[pid 14161] --- SIGCHLD (Child exited) ---
[pid 14161] recv(-1073744108, "\211\303\203\373\377t\t\205\333t"...,
3221223888, MSG_PEEK|0x60) = 14165
[pid 14160] --- SIGCHLD (Child exited) ---
[pid   328] --- SIGCHLD (Child exited) ---
[pid 14161] --- SIGCHLD (Child exited) ---
--- SIGCHLD (Child exited) ---
[pid 14168] recv(60,  <unfinished ...>
[pid 14169] recv(134545456,  <unfinished ...>
[pid 14168] <... recv resumed> "\211\302\203\372\377t\t\205\322t"..., 0,
0x804ff70) = 14170
[pid 14169] <... recv resumed> "\211\302\203\372\377t\t\205\322t"..., 0,
0x8050030) = 14171
[pid 14168] --- SIGCHLD (Child exited) ---
[pid   328] --- SIGCHLD (Child exited) ---
[pid 14169] --- SIGCHLD (Child exited) ---
[pid 14169] recv(-1073744108, "\211\303\203\373\377t\t\205\333t"...,
3221223888, MSG_PEEK|0x60) = 14173
[pid 14169] --- SIGCHLD (Child exited) ---
--- SIGCHLD (Child exited) ---
[pid 14176] recv(59, "\211\302\203\372\377t\t\205\322t"..., 0,
0x804ff70) = 14178
[pid 14177] recv(134545456,  <unfinished ...>
[pid 14181] recv(134545472,  <unfinished ...>
[pid 14177] <... recv resumed> "\211\302\203\372\377t\t\205\322t"..., 0,
0x8050030) = 14180
[pid 14181] <... recv resumed> "\211\302\203\372\377t\t\205\322t"..., 0,
0x8050040) = 14182
[pid 14176] --- SIGCHLD (Child exited) ---
[pid   328] --- SIGCHLD (Child exited) ---
[pid 14181] --- SIGCHLD (Child exited) ---
[pid 14181] recv(-1073744108, "\211\303\203\373\377t\t\205\333t"...,
3221223888, MSG_PEEK|0x60) = 14183
[pid 14177] --- SIGCHLD (Child exited) ---
[pid 14181] --- SIGCHLD (Child exited) ---
--- SIGCHLD (Child exited) ---
--- SIGCHLD (Child exited) ---
[pid 14185] recv(60, "\211\302\203\372\377t\t\205\322t"..., 0,
0x804ff70) = 14187
[pid 14186] recv(134545456, "\211\302\203\372\377t\t\205\322t"..., 0,
0x8050030) = 14189
[pid 14186] --- SIGCHLD (Child exited) ---
[pid 14186] recv(-1073744108, "\211\303\203\373\377t\t\205\333t"...,
3221223888, MSG_PEEK|0x60) = 14190
[pid 14185] --- SIGCHLD (Child exited) ---
[pid   328] --- SIGCHLD (Child exited) ---
[pid 14186] --- SIGCHLD (Child exited) ---
--- SIGCHLD (Child exited) ---
[pid 14193] recv(60, "\211\302\203\372\377t\t\205\322t"..., 0,
0x804ff70) = 14195
[pid 14194] recv(134545456, "\211\302\203\372\377t\t\205\322t"..., 0,
0x8050030) = 14197
[pid 14194] --- SIGCHLD (Child exited) ---
[pid 14194] recv(-1073744108,  <unfinished ...>
[pid 14193] --- SIGCHLD (Child exited) ---
[pid   328] --- SIGCHLD (Child exited) ---
[pid 14194] <... recv resumed> "\211\303\203\373\377t\t\205\333t"...,
3221223888, MSG_PEEK|0x60) = 14198
[pid 14194] --- SIGCHLD (Child exited) ---
--- SIGCHLD (Child exited) ---
[pid 14200] recv(60, "\211\302\203\372\377t\t\205\322t"..., 0,
0x804ff70) = 14202
[pid 14201] recv(134545456, "\211\302\203\372\377t\t\205\322t"..., 0,
0x8050030) = 14204
[pid 14200] --- SIGCHLD (Child exited) ---
[pid   328] --- SIGCHLD (Child exited) ---
[pid 14201] --- SIGCHLD (Child exited) ---
[pid 14201] recv(-1073744108, "\211\303\203\373\377t\t\205\333t"...,
3221223888, MSG_PEEK|0x60) = 14205
[pid 14201] --- SIGCHLD (Child exited) ---
--- SIGCHLD (Child exited) ---

and so on... divided by -- SIGCHLD (Child exited) --- every one minute

the outputs are all very similar... i've been watching for a while now
:o)

i don't know anything about strace, so if i am missing something, i
wouldn't know

-nicole

************
techtalk at linuxchix.org   http://www.linuxchix.org




More information about the Techtalk mailing list