Package: vncserver
Version: 3.3.7-7
Followup-For: Bug #276948

Here is a warning from compilation:

-----
gcc -c -O0 -g -I. -I../../../../exports/include/X11 -I../../../../include/fonts 
-I../../../../exports/include/X11 -I../../cfb -I../../mfb -I../../mi 
-I../../include -I../../os -I../../../../.. -I../../../.. 
-I../../../../exports/include -Dlinux
-D__x86_64__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE 
-D_BSD_SOURCE -D_SVID_SOURCE
-D_GNU_SOURCE -DSHAPE -DGCCUSESGAS -DSTATIC_COLOR -DAVOID_GLYPHBLT -DPIXPRIV 
-D_XSERVER64
-DNDEBUG -DFUNCPROTO=15 -DNARROWPROTO -DDDXOSINIT -DSERVER_LOCK 
-DDDXOSFATALERROR -DDDXTIME
-DPART_NET -DXVNCRELEASE=\""3.3.7"\" init.c
init.c: In function `rfbLog': 
init.c:907: warning: assignment makes pointer from integer without a cast
-----

I changed code to call localtime() before for easier debugging.
Inside strftime, parameters seems really wrongs.

(gdb) break rfbLog
Breakpoint 1 at 0x4a2527: file init.c, line 905.
(gdb) run :2
The program being debugged has been started already.
Start it from the beginning? (y or n) y

Starting program: /home/seb/build/vnc-3.3.7/Xvnc/programs/Xserver/Xvnc
:2

Breakpoint 1, rfbLog (format=0x5b51d3 "Xvnc version %s - built %s\n") at
init.c:905
905         va_start(args, format);
(gdb) s
907         time(&clock); tp = localtime(&clock);
(gdb) n
908         strftime(buf, 255, "%d/%m/%y %T ", tp);
(gdb) s
strftime (s=0x7fbfffd1e0 " Óÿ¿\177", maxsize=182894109488, format=0x2a9566a000 
"", tp=0x1004503c4)
    at strftime.c:522
522     strftime.c: Aucun fichier ou répertoire de ce type.
    in strftime.c
(gdb) s
565     in strftime.c
(gdb) s
522     in strftime.c
(gdb) s
579     in strftime.c
(gdb) s

Program received signal SIGSEGV, Segmentation fault.
strftime (s=0x7fbfffd1e0 " Óÿ¿\177", maxsize=0, format=0x5b5a32 "%d/%m/%y %T ", 
tp=0x0)
    at strftime.c:579
579     in strftime.c
                

-- System Information:
Debian Release: 3.1
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.8-11-em64t-p4-smp
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)

Versions of packages vncserver depends on:
ii  dpkg               1.10.28               Package maintenance system for Deb
ii  libc6              2.3.2.ds1-22          GNU C Library: Shared libraries an
ii  libgcc1            1:3.4.3-13            GCC support library
ii  libice6            4.3.0.dfsg.1-14sarge1 Inter-Client Exchange library
ii  libsm6             4.3.0.dfsg.1-14sarge1 X Window System Session Management
ii  libstdc++5         1:3.3.5-13            The GNU Standard C++ Library v3
ii  libx11-6           4.3.0.dfsg.1-14sarge1 X Window System protocol client li
ii  libxext6           4.3.0.dfsg.1-14sarge1 X Window System miscellaneous exte
ii  perl               5.8.4-8               Larry Wall's Practical Extraction 
ii  vnc-common         3.3.7-7               Virtual network computing server s
ii  xbase-clients      4.3.0.dfsg.1-14sarge1 miscellaneous X clients
ii  xlibs              4.3.0.dfsg.1-14sarge1 X Keyboard Extension (XKB) configu
ii  xserver-common     4.3.0.dfsg.1-14sarge1 files and utilities common to all 
ii  zlib1g             1:1.2.2-4.sarge.2     compression library - runtime

-- no debconf information

Reply via email to