Re: [pve-devel] [PATCH] enable debug package for pve-cluster

2015-02-10 Thread Dietmar Maurer
  Here are some more lines:
  pmxcfs[4156]: segfault at 21341873 ip 0041aa9c sp 
 
 # addr2line -e /usr/bin/pmxcfs 0041aa9c
 /home/dietmar/pve2-devel/pve-cluster/build/src/logger.c:167

I am unable to find the bug, so I need more infos. 
Do you think you can generate a core file?

___
pve-devel mailing list
pve-devel@pve.proxmox.com
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel


Re: [pve-devel] [PATCH] enable debug package for pve-cluster

2015-02-10 Thread Dietmar Maurer
 I hope so. I already prepared everything to get a core dump next time.
 
 Will report back if it happens again.

OK.

 Ps: what's about my other patches from last week?


Will try to look at them tomorrow.

___
pve-devel mailing list
pve-devel@pve.proxmox.com
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel


Re: [pve-devel] [PATCH] enable debug package for pve-cluster

2015-02-10 Thread Stefan Priebe - Profihost AG

Am 10.02.2015 um 17:42 schrieb Dietmar Maurer diet...@proxmox.com:

 Here are some more lines:
 pmxcfs[4156]: segfault at 21341873 ip 0041aa9c sp
 
 # addr2line -e /usr/bin/pmxcfs 0041aa9c
 /home/dietmar/pve2-devel/pve-cluster/build/src/logger.c:167
 
 I am unable to find the bug, so I need more infos. 
 Do you think you can generate a core file?
 

I hope so. I already prepared everything to get a core dump next time.

Will report back if it happens again.

Thanks!

Ps: what's about my other patches from last week?

Stefan

___
pve-devel mailing list
pve-devel@pve.proxmox.com
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel


Re: [pve-devel] [PATCH] enable debug package for pve-cluster

2015-02-09 Thread Michael Rasmussen
On Mon, 9 Feb 2015 19:07:31 +0100 (CET)
Dietmar Maurer diet...@proxmox.com wrote:

 
 So there must be something wrong with that clog data structure.
 Will dig deeper tomorrow.
 
Looks like an instance of the struct is freed to early so that the cast
fails.

-- 
Hilsen/Regards
Michael Rasmussen

Get my public GnuPG keys:
michael at rasmussen dot cc
http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0xD3C9A00E
mir at datanom dot net
http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0xE501F51C
mir at miras dot org
http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0xE3E80917
--
/usr/games/fortune -es says:
A thing is not necessarily true because a man dies for it.
-- Oscar Wilde, The Portrait of Mr. W. H.


pgp40v90Ukda6.pgp
Description: OpenPGP digital signature
___
pve-devel mailing list
pve-devel@pve.proxmox.com
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel


Re: [pve-devel] [PATCH] enable debug package for pve-cluster

2015-02-09 Thread Stefan Priebe


Am 09.02.2015 um 17:43 schrieb Dietmar Maurer:

I re-compiled the package with same compiler and libs, so maybe it
generate the same code. Running addr2line:

# addr2line -e /usr/bin/pmxcfs 0041a730
/home/dietmar/pve2-devel/pve-cluster/build/src/logger.c:314

what IP did you get at the second crash?



Here are some more lines:
pmxcfs[4156]: segfault at 21341873 ip 0041aa9c sp 
7f7057a3f930 error 4 in pmxcfs[40+25000]


pmxcfs[37420]: segfault at 634824b0 ip 0041aa9c sp 
7f865d60f930 error 4 in pmxcfs[40+25000]


pmxcfs[26353]: segfault at 630ce86c ip 0041a730 sp 
7fd9c146f3b8 error 4 in pmxcfs[40+25000]


pmxcfs[1972]: segfault at 6283b6ac ip 0041a730 sp 
7fd697c6f3b8 error 4 in pmxcfs[40+25000]


pmxcfs[4272]: segfault at 213c379f ip 0041a730 sp 
7f22b4c943b8 error 4 in pmxcfs[40+25000]


pmxcfs[4162]: segfault at 2196483f ip 0041a730 sp 
7f83afdc23b8 error 4 in pmxcfs[40+25000]


The ip is always:
41a730
or
41aa9c

Stefan
___
pve-devel mailing list
pve-devel@pve.proxmox.com
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel


[pve-devel] [PATCH] enable debug package for pve-cluster

2015-02-09 Thread Stefan Priebe

Signed-off-by: Stefan Priebe s.pri...@profihost.ag
---
 debian/control |5 +
 debian/rules   |6 ++
 2 files changed, 11 insertions(+)

diff --git a/debian/control b/debian/control
index b4375a6..1be793a 100644
--- a/debian/control
+++ b/debian/control
@@ -12,3 +12,8 @@ Description: Cluster Infrastructure for Proxmox Virtual 
Environment
  This package contains the Cluster Infrastructure for the Proxmox
  Virtual Environment, namely a distributed filesystem to store
  configuration data on all nodes.
+
+Package: pve-cluster-dbg
+Architecture: any
+Description: debug Cluster Infrastructure for Proxmox Virtual Environment
+
diff --git a/debian/rules b/debian/rules
index a433c17..8cae8e7 100755
--- a/debian/rules
+++ b/debian/rules
@@ -12,6 +12,8 @@ BUILDROOT := $(shell pwd)
 %:
dh $@
 
+override_dh_strip:
+   dh_strip --dbg-package=pve-cluster-dbg
 
 override_dh_auto_configure:
 
@@ -19,6 +21,10 @@ override_dh_auto_configure:
 
./configure --prefix=/usr
 
+override_dh_auto_install:
+
+   make -j1 install DESTDIR=../debian/pve-cluster
+
 override_dh_install:
 
dh_install
-- 
1.7.10.4

___
pve-devel mailing list
pve-devel@pve.proxmox.com
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel


[pve-devel] [PATCH] enable debug package for pve-cluster

2015-02-09 Thread Stefan Priebe

Signed-off-by: Stefan Priebe s.pri...@profihost.ag
---
 debian/control |5 +
 debian/rules   |6 ++
 2 files changed, 11 insertions(+)

diff --git a/debian/control b/debian/control
index b4375a6..1be793a 100644
--- a/debian/control
+++ b/debian/control
@@ -12,3 +12,8 @@ Description: Cluster Infrastructure for Proxmox Virtual 
Environment
  This package contains the Cluster Infrastructure for the Proxmox
  Virtual Environment, namely a distributed filesystem to store
  configuration data on all nodes.
+
+Package: pve-cluster-dbg
+Architecture: any
+Description: debug Cluster Infrastructure for Proxmox Virtual Environment
+
diff --git a/debian/rules b/debian/rules
index a433c17..8cae8e7 100755
--- a/debian/rules
+++ b/debian/rules
@@ -12,6 +12,8 @@ BUILDROOT := $(shell pwd)
 %:
dh $@
 
+override_dh_strip:
+   dh_strip --dbg-package=pve-cluster-dbg
 
 override_dh_auto_configure:
 
@@ -19,6 +21,10 @@ override_dh_auto_configure:
 
./configure --prefix=/usr
 
+override_dh_auto_install:
+
+   make -j1 install DESTDIR=../debian/pve-cluster
+
 override_dh_install:
 
dh_install
-- 
1.7.10.4

___
pve-devel mailing list
pve-devel@pve.proxmox.com
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel