Modify

Ticket #444 (closed defect: fixed)

Opened 16 years ago

Last modified 16 years ago

Segfaults with bcfg2-repo-validate and bcfg2-build-reports (0.9.3 0.1)

Reported by: [email protected] Owned by: desai
Priority: major Milestone: Bcfg2 0.9.5 Release
Component: bcfg2-server Version: 0.9.x
Keywords: Cc: [email protected]

Description

Hi,

I a fisrt time user of bcfg2. Just install under Centos 4.4 with rpm:

bcfg2-server-0.9.3-0.1 bcfg2-0.9.3-0.1 python-lxml-1.1.2-1 libxslt-devel-1.1.11-1 libxml2-devel-2.6.16-6

The installation ran fine and I could test Cfg and Tcheetah successfully.

To scripts segaults:

  1. strace bcfg2-repo-validate

... open("/usr/share/bcfg2/schemas/report-configuration.xsd", O_RDONLY|O_LARGEFILE) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=2696, ...}) = 0 fstat64(3, {st_mode=S_IFREG|0644, st_size=2696, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7c98000 read(3, "<?xml version=\"1.0\"?>\n<xs:schema"..., 4096) = 2696 read(3, "", 4096) = 0 --- SIGSEGV (Segmentation fault) @ 0 (0) --- +++ killed by SIGSEGV +++ Process 10933 detached

  1. bcfg2-build-reports

open("/var/lib/bcfg2/etc/report-configuration.xml", O_RDONLY|O_LARGEFILE) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=659, ...}) = 0 fstat64(3, {st_mode=S_IFREG|0644, st_size=659, ...}) = 0 _llseek(3, 0, [0], SEEK_CUR) = 0 fstat64(3, {st_mode=S_IFREG|0644, st_size=659, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7c31000 _llseek(3, 0, [0], SEEK_CUR) = 0 read(3, "<Reports>\n<Reportname=\'core_stat"..., 4096) = 659 read(3, "", 4096) = 0 close(3) = 0 munmap(0xb7c31000, 4096) = 0 --- SIGSEGV (Segmentation fault) @ 0 (0) --- +++ killed by SIGSEGV +++ Process 10946 detached

Added a listing of the repo:

ls /var/lib/bcfg2 -lR /var/lib/bcfg2: total 44 drwxr-xr-x 2 root root 4096 May 23 08:18 Base drwxr-xr-x 2 root root 4096 May 23 13:10 Bundler drwxr-xr-x 3 root root 4096 May 23 09:48 Cfg drwxr-xr-x 2 root root 4096 May 24 07:14 etc drwxr-xr-x 2 root root 4096 May 23 08:18 Metadata drwxr-xr-x 2 root root 4096 May 23 08:18 Pkgmgr drwxr-xr-x 2 root root 4096 May 23 12:56 Probes drwxr-xr-x 2 root root 4096 May 23 08:18 Rules drwxr-xr-x 2 root root 4096 May 23 08:18 SSHbase drwxr-xr-x 2 root root 4096 May 23 08:18 Svcmgr drwxr-xr-x 3 root root 4096 May 23 13:15 TCheetah

/var/lib/bcfg2/Base: total 0

/var/lib/bcfg2/Bundler: total 8 -rw-r--r-- 1 root root 82 May 23 13:31 fstab.xml -rw-r--r-- 1 root root 80 May 23 09:45 motd.xml

/var/lib/bcfg2/Cfg: total 4 drwxr-xr-x 3 root root 4096 May 23 09:51 etc

/var/lib/bcfg2/Cfg/etc: total 4 drwxr-xr-x 2 root root 4096 May 23 09:51 motd

/var/lib/bcfg2/Cfg/etc/motd: total 4 -rw-r--r-- 1 root root 1956 May 23 10:06 motd

/var/lib/bcfg2/etc: total 92 -rw-r--r-- 1 root root 28 May 23 13:19 properties.xml -rw-r--r-- 1 root root 659 May 24 07:14 report-configuration.xml -rw-rw-rw- 1 root root 80629 May 24 06:56 statistics.xml

/var/lib/bcfg2/Metadata: total 8 -rw-r--r-- 1 root root 224 May 24 10:24 clients.xml -rw-r--r-- 1 root root 467 May 23 13:11 groups.xml

/var/lib/bcfg2/Pkgmgr: total 0

/var/lib/bcfg2/Probes: total 4 -rw-r--r-- 1 root root 82 May 23 13:49 fstab

/var/lib/bcfg2/Rules: total 0

/var/lib/bcfg2/SSHbase: total 0

/var/lib/bcfg2/Svcmgr: total 0

/var/lib/bcfg2/TCheetah: total 4 drwxr-xr-x 3 root root 4096 May 23 13:15 etc

/var/lib/bcfg2/TCheetah/etc: total 4 drwxr-xr-x 2 root root 4096 May 23 13:14 fstab

/var/lib/bcfg2/TCheetah/etc/fstab: total 8 -rw-r--r-- 1 root root 12 May 23 13:14 info -rw-r--r-- 1 root root 119 May 23 14:23 template

I followed the docs but I may have missed something.

regards,

Jean-Francois

Attachments

Change History

comment:1 Changed 16 years ago by desai

Your version of libxml2 needs to be upgraded; there are a few problems like this with versions <= 2.6.21 or so.

comment:2 Changed 16 years ago by desai

  • Status changed from assigned to closed
  • Resolution set to fixed
  • Milestone set to Bcfg2 0.9.5 Release

this turned out to be a libxml problem.

WARNING! You need to establish a session before you can create or edit tickets. Otherwise the ticket will get treated as spam.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.