Hello,
thanks for the bug report. This problem should be fixed in the upstream git 
now. Please could you test it?
Ivana Hutarova Varekova

----- Original Message -----
> From: "James Braid" <jam...@loreland.org>
> To: libcg-devel@lists.sourceforge.net
> Sent: Thursday, March 14, 2013 10:32:06 PM
> Subject: [Libcg-devel] cgrules templates crashing
> 
> Hi, firstly, apologies if this is the wrong mailing list for this kind
> of question.
> 
> I'm attempting to use the new template functionality in
> cgrulesengd/cgrules.conf, but I can't past these crashes in the daemon
> when it starts up.
> 
> I'm using libcg from git, commit
> d9d799ce72f7a6bc4f5c408b05ed682387ce971e. This is running on top of RHEL
> 6.3.
> 
> I'm using the following config:
> 
> $ cat /etc/cgrules.conf
> #* cpu testing
> * cpu testing/%u/
> 
> $ cat /etc/cgconfig.conf
> mount {
>       cpuset  = /cgroup/cpuset;
>       cpu     = /cgroup/cpu;
>       cpuacct = /cgroup/cpuacct;
>       memory  = /cgroup/memory;
>       devices = /cgroup/devices;
>       freezer = /cgroup/freezer;
>       net_cls = /cgroup/net_cls;
>       blkio   = /cgroup/blkio;
> }
> 
> group testing {
>      cpu {
>               cpu.shares = "250";
>      }
> }
> 
> template testing/%u/ {
>       cpu {
>               cpu.shares = "250";
>       }
> }
> 
> Running cgrulesengd results in the following crash:
> 
> MALLOC_CHECK_=2 ./src/daemon/cgrulesengd -g cgred -d
> 
> (gdb) where
> #0  0x00007f5e264ee885 in raise () from /lib64/libc.so.6
> #1  0x00007f5e264f0065 in abort () from /lib64/libc.so.6
> #2  0x00007f5e265312c0 in malloc_printerr () from /lib64/libc.so.6
> #3  0x00007f5e26c7f219 in cgroup_free_controllers
> (cgroup=0x7f5e27261010) at wrapper.c:106
> #4  0x00007f5e26c7c6a9 in cgroup_free_config () at config.c:950
> #5  0x00007f5e26c7cb65 in cgroup_reload_cached_templates
> (pathname=0x7f5e26c80fd3 "/etc/cgconfig.conf")
>      at config.c:1441
> #6  0x00007f5e26c7cbbe in cgroup_config_create_template_group
> (cgroup=0x150edc0, template_name=0x14ff7d0 "testing/%u",
>      flags=0) at config.c:1530
> #7  0x00007f5e26c7c2f7 in cgroup_create_template_group (uid=0, gid=0,
> procname=0x14ff790 "/sbin/init", pid=1, flags=0)
>      at api.c:2795
> #8  cgroup_change_cgroup_flags (uid=0, gid=0, procname=0x14ff790
> "/sbin/init", pid=1, flags=0) at api.c:2983
> #9  0x00007f5e26c7c4bb in cgroup_change_all_cgroups () at api.c:3095
> #10 0x00000000004030fa in main (argc=<value optimized out>,
> argv=0x7fff1aa40e08) at cgrulesengd.c:1175
> 
> If I remove the trailing slashes from the template paths, I get a
> different crash:
> 
> #0  cgroup_create_template_group (uid=0, gid=0, procname=0x1eb3790
> "/sbin/init", pid=1, flags=0) at api.c:2816
> 2816          if (template_position[0] == '\0')
> (gdb) where
> #0  cgroup_create_template_group (uid=0, gid=0, procname=0x1eb3790
> "/sbin/init", pid=1, flags=0) at api.c:2816
> #1  cgroup_change_cgroup_flags (uid=0, gid=0, procname=0x1eb3790
> "/sbin/init", pid=1, flags=0) at api.c:2983
> #2  0x00007fa2dc5cf4bb in cgroup_change_all_cgroups () at api.c:3095
> #3  0x00000000004030fa in main (argc=<value optimized out>,
> argv=0x7fffedb3a8f8) at cgrulesengd.c:1175
> 
> Do I need any extra patches on top of current git to test this
> functionality?
> 
> Thanks, James
> 
> 
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_mar
> _______________________________________________
> Libcg-devel mailing list
> Libcg-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/libcg-devel
> 

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
_______________________________________________
Libcg-devel mailing list
Libcg-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libcg-devel

Reply via email to