Hi Thanks a lot!
On Sun, Dec 11, 2005 at 09:16:49AM +0100, Sebastien Koechlin wrote: > Package: vncserver > Version: 3.3.7-7 > Followup-For: Bug #276948 > > I compiled Xvnc using : > apt-get source vncserver > added -g in compile flags > run ./configure --with-x --with-installed-zlib > run make World in Xvnc directory > > I got: > > $ gdb ./Xvnc > 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 :2 > Starting program: /home/seb/build/vnc-3.3.7/Xvnc/programs/Xserver/Xvnc > :2 > > Program received signal SIGSEGV, Segmentation fault. > 0x0000002a95c8efd7 in strftime () from /lib/libc.so.6 > (gdb) bt > #0 0x0000002a95c8efd7 in strftime () from /lib/libc.so.6 > #1 0x000000000046ce9b in rfbLog () > #2 0x000000000046bead in InitOutput () > #3 0x0000000000403c57 in main () > (gdb) Well. I have looked at the code now... and ... the code seem actually to be pretty safe... /* * rfbLog prints a time-stamped message to the log file (stderr). */ void rfbLog(char *format, ...) { va_list args; char buf[256]; time_t clock; va_start(args, format); time(&clock); strftime(buf, 255, "%d/%m/%y %T ", localtime(&clock)); fprintf(stderr, buf); vfprintf(stderr, format, args); fflush(stderr); va_end(args); } Can it be some 32 vs 64 bit encoding errors here? I have no clue why it break here actually... Maybe some optimizing bug in the x86 gcc? Regards, // Ola > -- 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 > > -- --------------------- Ola Lundqvist --------------------------- / [EMAIL PROTECTED] Annebergsslingan 37 \ | [EMAIL PROTECTED] 654 65 KARLSTAD | | +46 (0)54-10 14 30 +46 (0)70-332 1551 | | http://www.opal.dhs.org UIN/icq: 4912500 | \ gpg/f.p.: 7090 A92B 18FE 7994 0C36 4FE4 18A1 B1CF 0FE5 3DD9 / --------------------------------------------------------------- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]