I've been trying to confirm the fix for this in r912, as stated in
the nodes for bug 49 (https://cfengine.com/bugtracker/view.php?id=49),
but am having some trouble. First, I'm running headlong into bug 89
(https://cfengine.com/bugtracker/view.php?id=89), which makes testing
a specific bundle problematic.
I've setup a separate stripped down set of promises, and using r924 I'm
still getting a segfault. I'd post a backtrace and coredump to the
bugtracker, but it is marked as resolved, so I can't make any additions.
That said, here's a bit of info from the backtrace:
(gdb) bt
#0 CopyRegularFile (source=0x7fffbaaded70 "/etc/fstab.cf-before-edit",
<blah, blah>
haveinsertselect = 0, havedeleteselect = 0, line_select = {startwith_from_list = 0x44c3f1, not_startwith_from_list = 0xda4bde0, match_from_list = 0xdb74de0, not_match_from_list = 0x0, contains_from_list = 0xda4bf00, not_contains_from_list = 0xda4bde0}, sourcetype = 0x445a18 "H\203?([]A\\A]A^A_?\213\005w?%", expandvars = 230128624, not_matching = 0, fwd_name = 0x4047e0 "SH\211?H\203?0H?D$(", bwd_name = 0x100000004 <Address 0x100000004 out of bounds>, associates = 0x0, represents = 0x0, rep_type = 0xda4bf00 "???\r", path_root = 0xda4bb30 "0??\r", web_root = 0x4 <Address 0x4 out of bounds>}, pp=0x0) at files_interfaces.c:1523
#1 0x0000000000421b7b in ArchiveToRepository (file=0x7ffff9333d80 "/etc/fstab.cf-before-edit", attr=
<blah>
?([]A\\A]A^A_?\213\005w?%", expandvars = 230128624, not_matching = 0, fwd_name = 0x4047e0 "SH\211?H\203?0H?D$(", bwd_name = 0x100000004 <Address 0x100000004 out of bounds>, associates = 0x0, represents = 0x0, rep_type = 0xda4bf00 "???\r", path_root = 0xda4bb30 "0??\r", web_root = 0x4 <Address 0x4 out of bounds>}, pp=0x0) at files_repository.c:119
#2 0x0000000000425503 in SaveItemListAsFile (liststart=0xdb8ad10, file=0x46281d
"/etc/fstab", a=
<blah>
\\A]A^A_?\213\005w?%", expandvars = 230128624, not_matching = 0, fwd_name = 0x4047e0 "SH\211?H\203?0H?D$(",
bwd_name = 0x100000004 <Address 0x100000004 out of bounds>, associates = 0x0, represents = 0x0, rep_type = 0xda4bf00
"???\r", path_root = 0xda4bb30 "0??\r", web_root = 0x4 <Address 0x4 out of bounds>}, pp=0x0) at
files_edit.c:245
#3 0x00000000004045f3 in DeleteTypeContext (type=<value optimized out>) at
agent.c:1118
#4 0x0000000000404ce3 in ScheduleAgentOperations (bp=0xda4bb30) at agent.c:813
#5 0x0000000000404ec6 in KeepPromiseBundles () at agent.c:765
#6 0x0000000000405a43 in KeepPromises () at agent.c:350
#7 0x0000000000405fbd in main (argc=4, argv=0x7ffff9336f58) at agent.c:141
On Mon, Feb 22, 2010 at 05:30:34AM -0500, Mark Burgess wrote:
Jesse,
I started a bug track on this on our system, but I am unable to reproduce the
error. It
works perfectly for me. Can you provide a gdb backtrace please and simple
reproducible
example that does not depend on your environment.
Jesse Becker wrote:
I'm getting a segfault from a storage action when using the 3.0.3
communitiy binaries.
I'm trying to mount an NFS share using this:
storage:
SGE.!SGEMasters::
"/opt/gridengine"
mount =>
nfs_p(${qmaster_host},${sge_top},'rw,bg,intr,tcp,rsize=32768,wsize=32768');
cf-agent blows up, but not before *removing* /etc/fstab completely.
This is usually a Bad Thing. However, it does create two new files:
/etc/fstab.cf-before-edit
/etc/fstab.cf-after-edit
These files both have the correct contents for their respective names.
--
Mark Burgess
-------------------------------------------------
Professor of Network and System Administration
Oslo University College, Norway
Personal Web: http://www.iu.hio.no/~mark
Office Telf : +47 22453272
-------------------------------------------------
--
Jesse Becker
NHGRI Linux support (Digicon Contractor)
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine