segv: format {%llx} 0
Closed / Fixed1867855fffffffffffffffffffffffffffffffffCreated 19 years agoUpdated 19 years ago
Descriptionplain2008-01-09 19:09:52
This is on an Ubuntu (gutsy) system using the binary
ActiveTcl 8.5.0 installation.
bash$ uname -a
Linux rvml 2.6.22-14-generic #1 SMP Sun Oct 14 23:05:12 GMT 2007 i686 GNU/Linux
bash$ /opt/ActiveTcl-8.5/bin/tclsh8.5
% info patchlevel
8.5.0
% format {%llx} 1
1
% format {%llx} 0
Segmentation fault (core dumped)
hobbsplain2008-01-10 03:15:10
Logged In: YES user_id=72656 Originator: NO Happens on Linux-2.4 and Windows as well.
dgpplain2008-01-10 04:55:50
Logged In: YES
user_id=80530
Originator: NO
Program received signal SIGSEGV, Segmentation fault.
0x0808d2ba in Tcl_AppendFormatToObj (interp=0x8f968d0, appendObj=0x8fac598,
format=0x8fc505c "", objc=1, objv=0x8f96f74)
at /home/dgp/cvs/tcl/unix/../generic/tclStringObj.c:2153
2153 bytes[numDigits] = '0' + digitOffset;
(gdb) bt
#0 0x0808d2ba in Tcl_AppendFormatToObj (interp=0x8f968d0,
appendObj=0x8fac598, format=0x8fc505c "", objc=1, objv=0x8f96f74)
at /home/dgp/cvs/tcl/unix/../generic/tclStringObj.c:2153
#1 0x0808d865 in Tcl_Format (interp=0x8f968d0, format=0x8fc5058 "%llx",
objc=1, objv=0x8f96f74)
at /home/dgp/cvs/tcl/unix/../generic/tclStringObj.c:2309
...
(gdb) print numDigits
$2 = -35109
dgpplain2008-01-10 23:09:36
Logged In: YES user_id=80530 Originator: NO Fixed in HEAD
Log in (anonymous is fine) to add a comment.