https://bugzilla.redhat.com/show_bug.cgi?id=1319288
Bug ID: 1319288
Summary: segv in libpcp during discovery error processing
Product: Fedora
Version: rawhide
Component: pcp
Assignee: nathans@xxxxxxxxxx
Reporter: fche@xxxxxxxxxx
QA Contact: extras-qa@xxxxxxxxxxxxxxxxx
CC: brolley@xxxxxxxxxx, fche@xxxxxxxxxx, lberk@xxxxxxxxxx,
mgoodwin@xxxxxxxxxx, nathans@xxxxxxxxxx,
pcp@xxxxxxxxxxx, scox@xxxxxxxxxx, zcerza@xxxxxxxxxx
with pcp 3.11.0
bash% ulimit -n 20
bash% pmfind -m probe=192.168.1.0/24,maxThreads=256
Segmentation fault.
A backtrace shows:
Core was generated by `pmfind -m probe=192.168.1.0/24,maxThreads=255'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 __pmconfig (formatter=formatter@entry=0x2b67588de180 <posix_formatter>,
fatal=fatal@entry=0)
at config.c:185
185 PM_INIT_LOCKS();
(gdb) bt
#0 __pmconfig (formatter=formatter@entry=0x2b67588de180 <posix_formatter>,
fatal=fatal@entry=0)
at config.c:185
#1 0x00002b67588de6b5 in pmgetconfig (name=name@entry=0x2b67589023d0
"PCP_TMPFILE_DIR",
fatal=fatal@entry=0) at config.c:251
#2 0x00002b67588de88f in pmGetOptionalConfig (name=name@entry=0x2b67589023d0
"PCP_TMPFILE_DIR")
at config.c:288
#3 0x00002b67588c65e4 in vpmprintf (msg=0x2b6758902775 "[%.19s] %s(%d) %s: ",
arg=arg@entry=0x2b67586f33e0) at util.c:1352
#4 0x00002b67588c8b69 in pmprintf (msg=msg@entry=0x2b6758902775 "[%.19s]
%s(%d) %s: ")
at util.c:1421
#5 0x00002b67588c92ff in __pmNotifyErr (priority=priority@entry=4,
message=message@entry=0x2b67589095c0 "__pmProbeDiscoverServices: Unable to
create socket for address %s") at util.c:150
#6 0x00002b67588f623d in attemptConnections (arg=0x7ffc67379d90) at
probe.c:150
#7 0x00002b6759fde555 in start_thread (arg=0x2b67586f4700) at
pthread_create.c:333
#8 0x00002b6758c23ded in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:109
There is apparently a race condition in the PM_INIT_LOCKS facility. Continuing
analysis.
Note that fixing bug #1229494 would have corrected this, by eschewing all that
pmgetconfig etc. effort.
--
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug
https://bugzilla.redhat.com/token.cgi?t=ykw7uQVg41&a=cc_unsubscribe
|