Bug#593018: libsysactivity: FTBFS: tests failed

2010-08-16 Thread Carlos Olmedo Escobar
The library was copying the swap structures badly. Attached is a patch
file that fixes the issue.

Thanks.
--- ./memory.c	2010-08-16 16:28:21.623394753 +0200
+++ ProgramaciĆ³n/workspace/libsysactivity/src/Linux/memory.c	2010-08-16 16:18:16.863387894 +0200
@@ -157,12 +157,12 @@
 
 	*written = 0;
 	int i;
-	for (i = 0; i < dst_size; i++) {
-		if (fgets(line_buffer, sizeof line_buffer, file_swaps) == NULL)
-			return EIO;
+	for (i = 0; fgets(line_buffer, sizeof line_buffer, file_swaps) != NULL; i++) {
+		if (i >= dst_size)
+			return ENOMEM;
 
 		errno = 0;
-		parse_swap(dst, line_buffer);
+		parse_swap(&dst[i], line_buffer);
 		if (errno != 0)
 			return ENOSYS;
 


Bug#593018: libsysactivity: FTBFS: tests failed

2010-08-15 Thread Lucas Nussbaum
On 15/08/10 at 12:31 +0200, Niels Thykier wrote:
> On 2010-08-15 09:55, Lucas Nussbaum wrote:
> > Source: libsysactivity
> > Version: 0.5.4-2
> > Severity: serious
> > Tags: squeeze sid
> > User: debian...@lists.debian.org
> > Usertags: qa-ftbfs-20100815 qa-ftbfs
> > Justification: FTBFS on amd64
> > 
> > Hi,
> > 
> > During a rebuild of all packages in sid, your package failed to build on
> > amd64.
> > 
> > Relevant part:
> [...]
> > 
> > The full build log is available from:
> >
> > http://people.debian.org/~lucas/logs/2010/08/15/libsysactivity_0.5.4-2_lsid64.buildlog
> > 
> > A list of current common problems and possible solutions is available at 
> > http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!
> > 
> > About the archive rebuild: The rebuild was done on about 50 AMD64 nodes
> > of the Grid'5000 platform, using a clean chroot.  Internet was not
> > accessible from the build systems.
> > 
> 
> Hi
> 
> It appears I did not enable output from tests and I cannot reproduce it
> my own chroot. Can you please apply this patch and rebuild so I can see
> the error it gives?

Start 2: memory

2: Test command: /tmp/libsysactivity-0.5.4/build/test/memory
2: Test timeout computed to be: 9.99988e+06
2: swap name: /dev/sda1, type: partition, total: 0, free: 0
2: 
2: number of swaps: 2
2: swap number 0
2: swap name: /dev/sda5, type: partition, total: 0, free: 0
2: 
2: swap number 1
2: swap name: , type: file, total: 0, free: 0
2: 
2: 
2: ERROR: The length of the swap name is zero
2/4 Test #2: memory ...***Failed0.00 sec

# cat /proc/swaps 
FilenameTypeSizeUsedPriority
/dev/sda1   partition   3911788 0   -1
/dev/sda5   partition   296929352   0   
-2

# cat /proc/meminfo 
MemTotal: 16475436 kB
MemFree:  15050644 kB
Buffers: 58376 kB
Cached: 981448 kB
SwapCached:  0 kB
Active: 224404 kB
Inactive:   823564 kB
SwapTotal:300841140 kB
SwapFree: 300841140 kB
Dirty:   0 kB
Writeback:   0 kB
AnonPages:8160 kB
Mapped:  10292 kB
Slab:85900 kB
SReclaimable:52388 kB
SUnreclaim:  33512 kB
PageTables:   1356 kB
NFS_Unstable:0 kB
Bounce:  0 kB
WritebackTmp:0 kB
CommitLimit:  309078856 kB
Committed_AS:   424632 kB
VmallocTotal: 34359738367 kB
VmallocUsed:220924 kB
VmallocChunk: 34359517423 kB
HugePages_Total: 0
HugePages_Free:  0
HugePages_Rsvd:  0
HugePages_Surp:  0
Hugepagesize: 2048 kB

# uname -a
Linux griffon-91.nancy.grid5000.fr 2.6.26-2-amd64 #1 SMP Tue Mar 9 22:29:32 UTC 
2010 x86_64 GNU/Linux
-- 
| Lucas Nussbaum
| lu...@lucas-nussbaum.net   http://www.lucas-nussbaum.net/ |
| jabber: lu...@nussbaum.fr GPG: 1024D/023B3F4F |



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#593018: libsysactivity: FTBFS: tests failed

2010-08-15 Thread Niels Thykier
On 2010-08-15 09:55, Lucas Nussbaum wrote:
> Source: libsysactivity
> Version: 0.5.4-2
> Severity: serious
> Tags: squeeze sid
> User: debian...@lists.debian.org
> Usertags: qa-ftbfs-20100815 qa-ftbfs
> Justification: FTBFS on amd64
> 
> Hi,
> 
> During a rebuild of all packages in sid, your package failed to build on
> amd64.
> 
> Relevant part:
[...]
> 
> The full build log is available from:
>
> http://people.debian.org/~lucas/logs/2010/08/15/libsysactivity_0.5.4-2_lsid64.buildlog
> 
> A list of current common problems and possible solutions is available at 
> http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!
> 
> About the archive rebuild: The rebuild was done on about 50 AMD64 nodes
> of the Grid'5000 platform, using a clean chroot.  Internet was not
> accessible from the build systems.
> 

Hi

It appears I did not enable output from tests and I cannot reproduce it
my own chroot. Can you please apply this patch and rebuild so I can see
the error it gives?

~Niels



verbosity.patch
Description: application/wine-extension-patch


signature.asc
Description: OpenPGP digital signature


Bug#593018: libsysactivity: FTBFS: tests failed

2010-08-15 Thread Lucas Nussbaum
Source: libsysactivity
Version: 0.5.4-2
Severity: serious
Tags: squeeze sid
User: debian...@lists.debian.org
Usertags: qa-ftbfs-20100815 qa-ftbfs
Justification: FTBFS on amd64

Hi,

During a rebuild of all packages in sid, your package failed to build on
amd64.

Relevant part:
> make[4]: Entering directory 
> `/build/user-libsysactivity_0.5.4-2-amd64-HiGnzN/libsysactivity-0.5.4/build'
> /usr/bin/cmake -E cmake_progress_report 
> /build/user-libsysactivity_0.5.4-2-amd64-HiGnzN/libsysactivity-0.5.4/build/CMakeFiles
>  5
> [100%] Building C object test/CMakeFiles/process.dir/test_process.c.o
> cd 
> /build/user-libsysactivity_0.5.4-2-amd64-HiGnzN/libsysactivity-0.5.4/build/test
>  && /usr/bin/gcc   -g -O2 -O2 -g 
> -I/build/user-libsysactivity_0.5.4-2-amd64-HiGnzN/libsysactivity-0.5.4/test/../src/Linux
>  
> -I/build/user-libsysactivity_0.5.4-2-amd64-HiGnzN/libsysactivity-0.5.4/test/../src/common
>-Wall -fvisibility=hidden -o CMakeFiles/process.dir/test_process.c.o   -c 
> /build/user-libsysactivity_0.5.4-2-amd64-HiGnzN/libsysactivity-0.5.4/test/test_process.c
> /build/user-libsysactivity_0.5.4-2-amd64-HiGnzN/libsysactivity-0.5.4/test/test_process.c:
>  In function 'test_process_info':
> /build/user-libsysactivity_0.5.4-2-amd64-HiGnzN/libsysactivity-0.5.4/test/test_process.c:119:
>  warning: too few arguments for format
> Linking C executable process
> cd 
> /build/user-libsysactivity_0.5.4-2-amd64-HiGnzN/libsysactivity-0.5.4/build/test
>  && /usr/bin/cmake -E cmake_link_script CMakeFiles/process.dir/link.txt 
> --verbose=1
> /usr/bin/gcc  -g -O2 -O2 -g  -Wl,--no-undefined -Wl,--as-needed 
> CMakeFiles/process.dir/test_process.c.o  -o process -rdynamic 
> ../src/Linux/libsysactivity.so.0.5.4 -lpthread 
> make[4]: Leaving directory 
> `/build/user-libsysactivity_0.5.4-2-amd64-HiGnzN/libsysactivity-0.5.4/build'
> /usr/bin/cmake -E cmake_progress_report 
> /build/user-libsysactivity_0.5.4-2-amd64-HiGnzN/libsysactivity-0.5.4/build/CMakeFiles
>   5
> [100%] Built target process
> make[3]: Leaving directory 
> `/build/user-libsysactivity_0.5.4-2-amd64-HiGnzN/libsysactivity-0.5.4/build'
> /usr/bin/cmake -E cmake_progress_start 
> /build/user-libsysactivity_0.5.4-2-amd64-HiGnzN/libsysactivity-0.5.4/build/CMakeFiles
>  0
> make[2]: Leaving directory 
> `/build/user-libsysactivity_0.5.4-2-amd64-HiGnzN/libsysactivity-0.5.4/build'
> cd build && 
> LD_LIBRARY_PATH="/build/user-libsysactivity_0.5.4-2-amd64-HiGnzN/libsysactivity-0.5.4/build/src/Linux"
>  ctest --force-new-ctest-process -E "^data_storage\$"
> ERROR: ld.so: object 'libfakeroot-sysv.so' from LD_PRELOAD cannot be 
> preloaded: ignored.
> Test project 
> /build/user-libsysactivity_0.5.4-2-amd64-HiGnzN/libsysactivity-0.5.4/build
> Start 1: cpu
> 1/4 Test #1: cpu ..   Passed8.10 sec
> Start 2: memory
> 2/4 Test #2: memory ...***Failed0.00 sec
> Start 3: network
> 3/4 Test #3: network ..   Passed6.50 sec
> Start 4: process
> Errors while running CTest
> 4/4 Test #4: process ..   Passed6.56 sec
> 
> 75% tests passed, 1 tests failed out of 4
> 
> Total Test time (real) =  21.17 sec
> 
> The following tests FAILED:
> 2 - memory (Failed)
> make[1]: *** [override_dh_auto_test] Error 8

The full build log is available from:
   
http://people.debian.org/~lucas/logs/2010/08/15/libsysactivity_0.5.4-2_lsid64.buildlog

A list of current common problems and possible solutions is available at 
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

About the archive rebuild: The rebuild was done on about 50 AMD64 nodes
of the Grid'5000 platform, using a clean chroot.  Internet was not
accessible from the build systems.

-- 
| Lucas Nussbaum
| lu...@lucas-nussbaum.net   http://www.lucas-nussbaum.net/ |
| jabber: lu...@nussbaum.fr GPG: 1024D/023B3F4F |



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org