[collectd] collectd 4.2.4 network issues with Solaris 8

Florian Forster octo at verplant.org
Wed Feb 13 21:34:37 CET 2008


Hi Eric,

On Tue, Feb 12, 2008 at 11:37:16AM -0500, Eric LeBlanc wrote:
> I got three errors that I easily fixed by modifing the source code:

thanks for the hints/fixes, I'll apply them shortly. :)

> The parameter of isspace() function *really* want an integer on
> Solaris...  It seems that we must cast explicitly.

Okay, weird, but what the heck, it doesn't break anything ;)

> unixsock.c: In function `us_handle_client':
> unixsock.c:615: warning: control reaches end of non-void function

It's a bit of a catch-22 really - if you add a `return (NULL);' there
other compilers (the Sun CC for example) complain that ``a statement is
never reached''.. *sigh* 

> Here the output of the pstack of the core file:
> =====================================================================
> [xxxxx1 at rootasp]: pstack core
> -----------------  lwp# 4 / thread# 5  --------------------
>  ffffffff79d024c4 write_part_number (ffffffff786090c0, ffffffff786090c8, 1, 
> 47b1c628, 8, ff0000) + c8
>  ffffffff79d04694 add_to_buffer (ffffffff79e068a8, 400, ffffffff79e06680, 
> ffffffff79e06cb8, 10012bb90, ffffffff786092b0) + 108
>  ffffffff79d04ba0 network_write (10012bb90, ffffffff786092b0, 0, 
> ffffffff7aa014d0, 0, 0) + d8
>  000000010000c9cc ???????? (ffffffff7aa01ab8, ffffffff786092b0, 
> ffffffffffffffff, 0, 6466, ffffffff7860938c)
>  ffffffff7aa014d0 df_submit (ffffffff786098f0, 100181520, ffffffffffffffff, 0, 
> 2f000001, ffffffff786098f0) + 1dc
>  ffffffff7aa01890 df_read (0, 0, ffffffff7d720000, 0, 0, 0) + 3ac
>  000000010000b1c4 ???????? (0, ffffffff7d5093a1, 0, 0, 0, 1000)
>  ffffffff7d61ecd8 _thread_start (0, 0, 0, 0, 0, 0) + 40

Since all other processes are either sleeping or waiting on some mutex
it's likely that the problem is in the network plugin, but I'm afraid I
can hardly tell what's going on here. Would you re-compile with
``--enable-debug'' to get backtrace with debugging sumbols? Also adding
`-O0' to the CFLAGS would help - the `write_part_number' originally only
has four arguments, apparently the compiler is passing something else on
the stack here..

> If needed, I can provide you a core file.

Sure, go ahead - though I doubt I can use it much.. But it's worth a try
;)

Regards,
-octo
-- 
Florian octo Forster
Hacker in training
GnuPG: 0x91523C3D
http://verplant.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20080213/1c1698c3/attachment.pgp 


More information about the collectd mailing list