Bug 122381 - net-mgmt/collectd in FreeBSD 7.0 i386 and sparc64 segfaults (memcpy libc)
Summary: net-mgmt/collectd in FreeBSD 7.0 i386 and sparc64 segfaults (memcpy libc)
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Pietro Cerutti
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-02 20:40 UTC by sylwester
Modified: 2008-09-09 15:00 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sylwester 2008-04-02 20:40:00 UTC
collectd 4.1.2 segfaults in FreeBSD 7.0

Recompiling collectd with debug-flags and debugging it with gdb:

Program received signal SIGSEGV, Segmentation fault.
0x00000000407c47ec in memcpy () from /lib/libc.so.7
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2008-04-03 23:20:55 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-ports-bugs

Make this a ports PR.
Comment 2 Daniel Roethlisberger 2008-05-05 16:46:02 UTC
This seems to happen with some (mis-)configurations and/or plugin
failures.  For instance, the CPU plugin seems to crash with more than
one CPU cores.  Try tweaking the configuration to find out which module
or which statement triggers the segmentation fault.

I will try to take care of segfaults when updating collectd to the
latest release, which I plan to do within the next few weeks.

-- 
Daniel Roethlisberger
http://daniel.roe.ch/
Comment 3 Pietro Cerutti freebsd_committer freebsd_triage 2008-09-05 16:40:38 UTC
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

This patch solves the problem on sparc64:
pcap_open_live segfaults inside libc's memcpy if pcap_device is NULL.

I haven't been able to reproduce it on i386, though.

http://www.gahr.ch/FreeBSD/patches/patch-src__dns.c

P.S. Maybe we should consider investigating why it fails on sparc64 but
not on i386 in the first case?


- --
Pietro Cerutti
gahr@FreeBSD.org

PGP Public Key:
http://gahr.ch/pgp

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (FreeBSD)

iEYEAREKAAYFAkjBUvUACgkQwMJqmJVx946luACePzBqtcF6dU0pCqTe3g1n4z4g
QLsAoK+KgxLN2p+Px3PrPQRgEBkp9BL0
=O5ya
-----END PGP SIGNATURE-----
Comment 4 Pietro Cerutti freebsd_committer freebsd_triage 2008-09-08 21:56:55 UTC
Responsible Changed
From-To: freebsd-ports-bugs->gahr

I'll take it.
Comment 5 dfilter service freebsd_committer freebsd_triage 2008-09-09 14:50:58 UTC
gahr        2008-09-09 13:50:49 UTC

  FreeBSD ports repository

  Added files:
    net-mgmt/collectd/files patch-src__dns.c 
  Log:
  - Unbreak on sparc64
  
  PR:             122381
  Approved by:    portmgr
  
  Revision  Changes    Path
  1.1       +18 -0     ports/net-mgmt/collectd/files/patch-src__dns.c (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 6 Pietro Cerutti freebsd_committer freebsd_triage 2008-09-09 14:52:24 UTC
State Changed
From-To: open->closed

Fixed. Thanks.