Your message dated Thu, 19 Apr 2012 19:47:29 +0000
with message-id <[email protected]>
and subject line Bug#666456: fixed in cmake 2.8.8-1
has caused the Debian Bug report #666456,
regarding Fwd: cmake: cpack -G ZIP segfaults on CP 6.0.3 souce, but not with -G
TGZ. Works for other software
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
666456: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=666456
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: cmake
Version: 2.8.7-4
Severity: normal
Dear Maintainer,
To reproduce this bug, please download this source code:
http://chipmunk-physics.net/release/ChipmunkLatest.tgz
I tested it on version 6.0.3. Unfortunately, I did not find a link for
persistent versions of the source code on the website. So it would be
good to download the source before it is updated.
Then apply the cpack.diff file, which enables the use of CPack.
then run:
cmake .
make
If I run this command, I get a .tar.gz bundle:
cpack -G TGZ
Those commands work for me.
If I run this command, desiring a .zip file bundle, I get a Segfault:
cpack -G ZIP
I've attached the valgrind output log to this email.
I tried running the same commands (minus the need to patch) on a version
of minetest 0.4 from 3/26/12, but did not get a segfault when trying to
build the ZIP file or the TGZ file.
https://github.com/celeron55/minetest/tarball/master
I hope this helps.
Thanks,
-Andrew
*** End of the template - remove these lines ***
-- System Information:
Debian Release: wheezy/sid
APT prefers testing
APT policy: (700, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 3.2.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages cmake depends on:
ii cmake-data 2.8.7-4
ii libarchive12 3.0.3-7
ii libc6 2.13-27
ii libcurl3-gnutls 7.24.0-1
ii libexpat1 2.1.0~beta3-2
ii libgcc1 1:4.6.3-1
ii libstdc++6 4.6.3-1
ii libxmlrpc-core-c3 1.16.33-3.1
ii procps 1:3.3.2-3
ii zlib1g 1:1.2.6.dfsg-2
cmake recommends no packages.
Versions of packages cmake suggests:
ii gcc 4:4.6.2-4
ii make 3.81-8.1
-- no debconf information
CPack: Create package using ZIP
CPack: Install projects
CPack: - Run preinstall target for: chipmunk
CPack: - Install project: chipmunk
CPack: Create package
rerun with -h for copyright info
==6859== Command: cpack -G ZIP
==6859==
==6859== Syscall param ioctl(generic) points to uninitialised byte(s)
==6859== at 0x5DC8957: ioctl (syscall-template.S:82)
==6859== by 0x507FB23: ??? (in
/usr/lib/x86_64-linux-gnu/libarchive.so.12.0.3)
==6859== by 0x507FE32: archive_read_disk_entry_from_file (in
/usr/lib/x86_64-linux-gnu/libarchive.so.12.0.3)
==6859== by 0x4AFB85: cmArchiveWrite::AddFile(char const*, unsigned long,
char const*) (in /usr/bin/cpack)
==6859== by 0x4AFD44: cmArchiveWrite::AddPath(char const*, unsigned long,
char const*) (in /usr/bin/cpack)
==6859== by 0x4AFFBF: cmArchiveWrite::Add(std::string, unsigned long, char
const*) (in /usr/bin/cpack)
==6859== by 0x4AE360: cmCPackArchiveGenerator::PackageFiles() (in
/usr/bin/cpack)
==6859== by 0x48AB4A: cmCPackGenerator::DoPackage() (in /usr/bin/cpack)
==6859== by 0x47FDCC: main (in /usr/bin/cpack)
==6859== Address 0x7feffd2c4 is on thread 1's stack
==6859==
==6859== Conditional jump or move depends on uninitialised value(s)
==6859== at 0x507FB51: ??? (in
/usr/lib/x86_64-linux-gnu/libarchive.so.12.0.3)
==6859== by 0x507FE32: archive_read_disk_entry_from_file (in
/usr/lib/x86_64-linux-gnu/libarchive.so.12.0.3)
==6859== by 0x4AFB85: cmArchiveWrite::AddFile(char const*, unsigned long,
char const*) (in /usr/bin/cpack)
==6859== by 0x4AFD44: cmArchiveWrite::AddPath(char const*, unsigned long,
char const*) (in /usr/bin/cpack)
==6859== by 0x4AFFBF: cmArchiveWrite::Add(std::string, unsigned long, char
const*) (in /usr/bin/cpack)
==6859== by 0x4AE360: cmCPackArchiveGenerator::PackageFiles() (in
/usr/bin/cpack)
==6859== by 0x48AB4A: cmCPackGenerator::DoPackage() (in /usr/bin/cpack)
==6859== by 0x47FDCC: main (in /usr/bin/cpack)
==6859==
==6859== Conditional jump or move depends on uninitialised value(s)
==6859== at 0x507FB6E: ??? (in
/usr/lib/x86_64-linux-gnu/libarchive.so.12.0.3)
==6859== by 0x507FE32: archive_read_disk_entry_from_file (in
/usr/lib/x86_64-linux-gnu/libarchive.so.12.0.3)
==6859== by 0x4AFB85: cmArchiveWrite::AddFile(char const*, unsigned long,
char const*) (in /usr/bin/cpack)
==6859== by 0x4AFD44: cmArchiveWrite::AddPath(char const*, unsigned long,
char const*) (in /usr/bin/cpack)
==6859== by 0x4AFFBF: cmArchiveWrite::Add(std::string, unsigned long, char
const*) (in /usr/bin/cpack)
==6859== by 0x4AE360: cmCPackArchiveGenerator::PackageFiles() (in
/usr/bin/cpack)
==6859== by 0x48AB4A: cmCPackGenerator::DoPackage() (in /usr/bin/cpack)
==6859== by 0x47FDCC: main (in /usr/bin/cpack)
==6859==
==6859== Conditional jump or move depends on uninitialised value(s)
==6859== at 0x507FBE3: ??? (in
/usr/lib/x86_64-linux-gnu/libarchive.so.12.0.3)
==6859== by 0x507FE32: archive_read_disk_entry_from_file (in
/usr/lib/x86_64-linux-gnu/libarchive.so.12.0.3)
==6859== by 0x4AFB85: cmArchiveWrite::AddFile(char const*, unsigned long,
char const*) (in /usr/bin/cpack)
==6859== by 0x4AFD44: cmArchiveWrite::AddPath(char const*, unsigned long,
char const*) (in /usr/bin/cpack)
==6859== by 0x4AFFBF: cmArchiveWrite::Add(std::string, unsigned long, char
const*) (in /usr/bin/cpack)
==6859== by 0x4AE360: cmCPackArchiveGenerator::PackageFiles() (in
/usr/bin/cpack)
==6859== by 0x48AB4A: cmCPackGenerator::DoPackage() (in /usr/bin/cpack)
==6859== by 0x47FDCC: main (in /usr/bin/cpack)
==6859==
==6859== Invalid read of size 1
==6859== at 0x40293A2: strlen (in
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==6859== by 0x4AF97B: cmArchiveWrite::AddData(char const*, unsigned long)
(in /usr/bin/cpack)
==6859== by 0x4AFCAC: cmArchiveWrite::AddFile(char const*, unsigned long,
char const*) (in /usr/bin/cpack)
==6859== by 0x4AFD44: cmArchiveWrite::AddPath(char const*, unsigned long,
char const*) (in /usr/bin/cpack)
==6859== by 0x4AFFBF: cmArchiveWrite::Add(std::string, unsigned long, char
const*) (in /usr/bin/cpack)
==6859== by 0x4AE360: cmCPackArchiveGenerator::PackageFiles() (in
/usr/bin/cpack)
==6859== by 0x48AB4A: cmCPackGenerator::DoPackage() (in /usr/bin/cpack)
==6859== by 0x47FDCC: main (in /usr/bin/cpack)
==6859== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==6859==
==6859==
==6859== Process terminating with default action of signal 11 (SIGSEGV)
==6859== Access not within mapped region at address 0x0
==6859== at 0x40293A2: strlen (in
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==6859== by 0x4AF97B: cmArchiveWrite::AddData(char const*, unsigned long)
(in /usr/bin/cpack)
==6859== by 0x4AFCAC: cmArchiveWrite::AddFile(char const*, unsigned long,
char const*) (in /usr/bin/cpack)
==6859== by 0x4AFD44: cmArchiveWrite::AddPath(char const*, unsigned long,
char const*) (in /usr/bin/cpack)
==6859== by 0x4AFFBF: cmArchiveWrite::Add(std::string, unsigned long, char
const*) (in /usr/bin/cpack)
==6859== by 0x4AE360: cmCPackArchiveGenerator::PackageFiles() (in
/usr/bin/cpack)
==6859== by 0x48AB4A: cmCPackGenerator::DoPackage() (in /usr/bin/cpack)
==6859== by 0x47FDCC: main (in /usr/bin/cpack)
==6859== If you believe this happened as a result of a stack
==6859== overflow in your program's main thread (unlikely but
==6859== possible), you can try to increase the size of the
==6859== main thread stack using the --main-stacksize= flag.
==6859== The main thread stack size used in this run was 8388608.
==6859==
==6859== HEAP SUMMARY:
==6859== in use at exit: 505,857 bytes in 4,932 blocks
==6859== total heap usage: 29,393 allocs, 24,461 frees, 12,674,210 bytes
allocated
==6859==
==6859== LEAK SUMMARY:
==6859== definitely lost: 120 bytes in 2 blocks
==6859== indirectly lost: 480 bytes in 20 blocks
==6859== possibly lost: 243,771 bytes in 2,783 blocks
==6859== still reachable: 261,486 bytes in 2,127 blocks
==6859== suppressed: 0 bytes in 0 blocks
==6859== Rerun with --leak-check=full to see details of leaked memory
==6859==
==6859== For counts of detected and suppressed errors, rerun with: -v
==6859== Use --track-origins=yes to see where uninitialised values come from
==6859== ERROR SUMMARY: 109 errors from 5 contexts (suppressed: 10 from 6)
diff -r -U 5 a/chipmunk/CMakeLists.txt b/chipmunk/CMakeLists.txt
--- a/Chipmunk-6.0.3/CMakeLists.txt 2011-12-16 02:03:45.000000000 -0500
+++ b/Chipmunk-6.0.3/CMakeLists.txt 2012-03-30 17:11:39.844319159 -0400
@@ -41,5 +41,7 @@
add_subdirectory(src)
if(BUILD_DEMOS)
add_subdirectory(Demo)
endif()
+
+include(CPack)
--- End Message ---
--- Begin Message ---
Source: cmake
Source-Version: 2.8.8-1
We believe that the bug you reported is fixed in the latest version of
cmake, which is due to be installed in the Debian FTP archive:
cmake-curses-gui_2.8.8-1_amd64.deb
to main/c/cmake/cmake-curses-gui_2.8.8-1_amd64.deb
cmake-data_2.8.8-1_all.deb
to main/c/cmake/cmake-data_2.8.8-1_all.deb
cmake-dbg_2.8.8-1_amd64.deb
to main/c/cmake/cmake-dbg_2.8.8-1_amd64.deb
cmake-doc_2.8.8-1_all.deb
to main/c/cmake/cmake-doc_2.8.8-1_all.deb
cmake-qt-gui_2.8.8-1_amd64.deb
to main/c/cmake/cmake-qt-gui_2.8.8-1_amd64.deb
cmake_2.8.8-1.debian.tar.gz
to main/c/cmake/cmake_2.8.8-1.debian.tar.gz
cmake_2.8.8-1.dsc
to main/c/cmake/cmake_2.8.8-1.dsc
cmake_2.8.8-1_amd64.deb
to main/c/cmake/cmake_2.8.8-1_amd64.deb
cmake_2.8.8.orig.tar.gz
to main/c/cmake/cmake_2.8.8.orig.tar.gz
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Modestas Vainius <[email protected]> (supplier of updated cmake package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Thu, 19 Apr 2012 22:32:10 +0300
Source: cmake
Binary: cmake cmake-data cmake-curses-gui cmake-qt-gui cmake-doc cmake-dbg
Architecture: source amd64 all
Version: 2.8.8-1
Distribution: unstable
Urgency: low
Maintainer: Modestas Vainius <[email protected]>
Changed-By: Modestas Vainius <[email protected]>
Description:
cmake - cross-platform, open-source make system
cmake-curses-gui - curses based user interface for CMake (ccmake)
cmake-data - CMake data files (modules, templates and documentation)
cmake-dbg - debugging symbols for CMake
cmake-doc - extended documentation in various formats for CMake
cmake-qt-gui - Qt4 based user interface for CMake (cmake-gui)
Closes: 666456
Changes:
cmake (2.8.8-1) unstable; urgency=low
.
* New upstream release:
- do not segfault when adding symbols to ZIP. (Closes: #666456)
Fixed by upstream commit: 768cf9183
* Remove patches merged/backported from upstream:
- backport_findpython_fixes.diff
- backport_findruby_improvements.diff
- backport_support_cxxtest4.diff
- manpage_fixes.diff
- mipsel_is_little_endian.diff
- paths_in_regex_espace_metachars.diff
* Refresh FindBoost_add_-lpthread_#563479.diff patch.
* Readd manpage_fixes.diff patch with new man page fixes.
Checksums-Sha1:
6660fbdaf5333876eeac25ca3d3151229c48adf8 1663 cmake_2.8.8-1.dsc
a74dfc3e0a0d7f857ac5dda03bb99ebf07676da1 5691656 cmake_2.8.8.orig.tar.gz
39b904dd3fc9b8ea3f06414981aef6c24a7dd24e 24580 cmake_2.8.8-1.debian.tar.gz
fee793f03f8e21a7757fccbdd2c211e657ec042f 4686020 cmake_2.8.8-1_amd64.deb
e9618c62faa574afc3d2e3963837a68caa42931f 1342874 cmake-data_2.8.8-1_all.deb
0363f7721c758064ff51ca0f556db571bddbe0fd 1373576
cmake-curses-gui_2.8.8-1_amd64.deb
8049f66c8de4c6279629bf43214438a87249b733 1443558 cmake-qt-gui_2.8.8-1_amd64.deb
01c1023cf92ca1bfb0e332d81180edbb2341ab25 1782970 cmake-doc_2.8.8-1_all.deb
9c6dfe54f1b1f314c9e33891db073fca899a604f 67634318 cmake-dbg_2.8.8-1_amd64.deb
Checksums-Sha256:
f2c60a557ae77212304a58937969ef21807ebeb70a4f9a8627f51e5a7e1f6d63 1663
cmake_2.8.8-1.dsc
2b59897864d6220ff20aa8eac64cac8994e004898a1c0f899c8cb4d7b7570b46 5691656
cmake_2.8.8.orig.tar.gz
e5d24023e309492114e91d2453e32d8ba70f0c9cceeb50c8fadd489e4fb79abe 24580
cmake_2.8.8-1.debian.tar.gz
3cd7f45c2b1763b73f72299d0c4147cd688d7e95630dc80045a503272cd397bb 4686020
cmake_2.8.8-1_amd64.deb
877eb13d90eff3b8d2fbc297a2bf5fba1a15394d754750635d2fc5dfdf29e3a4 1342874
cmake-data_2.8.8-1_all.deb
568dba46a84a25c196135508f2cbdfb41d83ddd382160b94d1b0b4ee48a8346e 1373576
cmake-curses-gui_2.8.8-1_amd64.deb
5d1838353576391547104edb0beecf3523618349c3c374313ff126c3e7ad8dbb 1443558
cmake-qt-gui_2.8.8-1_amd64.deb
cf5a8ea33c997630123c202b40bb130c0b561a3b5c08ed4f28030358e63c085f 1782970
cmake-doc_2.8.8-1_all.deb
0cc57dbc87c7c83280cffedff4458bae7d618253e75bdfcb9112b0a64e5a85c0 67634318
cmake-dbg_2.8.8-1_amd64.deb
Files:
bf0a48d4b2843f493ba3ba126f42e269 1663 devel optional cmake_2.8.8-1.dsc
ba74b22c788a0c8547976b880cd02b17 5691656 devel optional cmake_2.8.8.orig.tar.gz
cb3af6df56d837624d5a0fa7022532a5 24580 devel optional
cmake_2.8.8-1.debian.tar.gz
8c2440e3c04faa9c2438daafa7ade21d 4686020 devel optional cmake_2.8.8-1_amd64.deb
b43319a0f3323b468d03ee0298a05ae1 1342874 devel optional
cmake-data_2.8.8-1_all.deb
876188033372286acddcf0f6b2517eb8 1373576 devel optional
cmake-curses-gui_2.8.8-1_amd64.deb
c2dbb6dec3ddd48f8faeb671e1fa4289 1443558 devel optional
cmake-qt-gui_2.8.8-1_amd64.deb
591c1dd08d535b2532f78153f993eae2 1782970 doc optional cmake-doc_2.8.8-1_all.deb
e48cdf9c6f11b1b0de559ba835db70a5 67634318 debug extra
cmake-dbg_2.8.8-1_amd64.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iEYEARECAAYFAk+QadcACgkQHO9JRnPq4hSX3ACfSQsZRBq+Dz+HpPhV5UPb/gJF
UFgAn3g8YEhhzQRYXet7GFCmC3FBwHvw
=abnF
-----END PGP SIGNATURE-----
--- End Message ---