severity 313234 important thanks dude Hello, I am perfectly able to reproduce this on my UP amd64. Please have a look at http://buildd.debian.org/fetch.php?&pkg=cdw&ver=0.2.3-3&arch=alpha&stamp=1101850554&file=log&as=raw There are 263 (two hundred sixty three) warnings about "cast to pointer from integer of different size". You know, they are allowed to be of different size, and on alpha (and amd64, but there is not build log there) this is indeed the case, as ints are 32bit quantities, while pointers are 64bit, so you will loose "precision" when blindly casting.
There are many resources about portable C programming, and the C
standard only says sizeof(pointer) >= sizeof(int), not "=".
For completeness sake, I rebuild cdw without stripping (on sarge) and
ran it inside gdb. You will find the gdb-log attached. It crashes
right in the first lines in the main routine.
As soon as amd64 becomes part of Etch, this will be RC. In fact, I
already believe it is RC, as it most likly will crash on alpha (and
other 64 bit archs) as well.
Please talk with your upstream and either declare this programm as
32bit only (with appropriate entries in debian/control) or assure that
there are no 32bit assumptions within the code. Until this has been
realized, you might ask the RM to remove cdw from testing.
If you want, I can ask on the alpha porters list to get a confirmation
that it crashes on alpha as well (but looking at the build logs, it
for sure does).
Greetings
Helge
P.S. I raised this to important as AMD64 is not yet part of Etch, as
soon as this will happen, I'll raise it further unless (which I hope)
it no longer crashes in the main routine and the build log looks much
less scary than now.
--
Dr. Helge Kreutzmann, Dipl.-Phys. [EMAIL PROTECTED]
gpg signed mail preferred
64bit GNU powered http://www.itp.uni-hannover.de/~kreutzm
Help keep free software "libre": http://www.ffii.de/
GNU gdb 6.3-debian
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "x86_64-linux"...Using host libthread_db library
"/lib/libthread_db.so.1".
(gdb) run
Starting program: /usr/bin/cdw
[Thread debugging using libthread_db enabled]
[New Thread 46912504344720 (LWP 7224)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 46912504344720 (LWP 7224)]
0x00002aaaab0c1ce6 in strnlen () from /lib/libc.so.6
(gdb) bt full
#0 0x00002aaaab0c1ce6 in strnlen () from /lib/libc.so.6
No symbol table info available.
#1 0x00002aaaab08fce5 in vfprintf () from /lib/libc.so.6
No symbol table info available.
#2 0x00002aaaab0af105 in vsprintf () from /lib/libc.so.6
No symbol table info available.
#3 0x00002aaaab09658a in sprintf () from /lib/libc.so.6
No symbol table info available.
#4 0x0000000000407938 in main (argc=-1430523904, argv=0x7fffffffdf48)
at /scr/build/debian/NEU-C/cdw-0.2.3/src/main.c:1094
command = "[EMAIL PROTECTED]@[EMAIL
PROTECTED](6\004«ª*\000\000PÞÿÿÿ\177\000\000ÀÞÿÿÿ\177\000\000t
«ªª*\000\000(6\004«ª*\000\000\000\000\000\000\000\000\000\000\001\000\000\000\000\000\000\000Xßÿÿÿ\177\000\000Hßÿÿÿ\177\000\000\001\000\000\000\000\000\000\000\216ÿw\001\000\000\000\000\030W«ª\001\000\000\0000󫪪*\000\000\000𫪪*\000\000
Þÿÿÿ\177\000\000\030W«ªª*\000\000(\035\005«ª*\000\000"...
buffer =
"\002\000\004«ª*\000\000\000\000\000\000\000\000\000\000ò\211«\a\000\000\000\000\\y\005«ª*\000\000P+\005«ª*\000\000xj\004«ª*\000\000\a\000\000\000\000\000\000\000À5\004«ª*\000\000(6\004«ª*\000\000\005\000\000\000\000\000\000"
fp = (FILE *) 0x7fffffffdf48
catfile = "03\004«ª*\000\000ðü«ªª*\000\000
Ýÿÿÿ\177\000\000s=¼ªª*\000\000\0307\004«ª*\000\000ú0«ªª*\000\000\002\000ÿÿÿ\177\000\000t
«ªª*\000\000\0307\004«ª*\000\000\\y\005«ª*\000\000P+\005«ª*\000\000xj\004«ª*\000\000\a\000\000\000\000\000\000\000À5\004«ª*\000\000È8\004«ª*\000\000\005\000\000\000\000\000\000\000\200Ýÿÿÿ\177\000\000(\035\005«ª*\000\000ò\211«\a\000\000\000\000Þr\005«ª*\000\000 Ýÿÿÿ\177\000\00003\004«ª*\000\000ÀÝÿÿÿ\177\000\000Þr\005«ª*\000\000È8\004«ª*\000\000"...
cdname = "àÜÿÿÿ\177\000\000P2¼ªª*\000\000D\005\236\004\000\000\000\000s"
category =
"\a\000\000\000\000\000\000\000À5\004«ª*\000\000\0307\004«ª*\000\000\005"
(gdb) quit
The program is running. Exit anyway? (y or n)
pgpPtdFPO0a0K.pgp
Description: PGP signature

