Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#3899 segv: format {%llx} 0

obsolete: 8.5.0
closed-fixed
Don Porter
9
2008-01-10
2008-01-09
Anonymous
No

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)

Discussion

  • Jeffrey Hobbs
    Jeffrey Hobbs
    2008-01-09

    Logged In: YES
    user_id=72656
    Originator: NO

    Happens on Linux-2.4 and Windows as well.

     
  • Jeffrey Hobbs
    Jeffrey Hobbs
    2008-01-09

    • priority: 5 --> 9
     
  • Don Porter
    Don Porter
    2008-01-09

    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

     
  • Don Porter
    Don Porter
    2008-01-09

    • labels: 105657 --> 10. Objects
    • assigned_to: dkf --> dgp
     
  • Don Porter
    Don Porter
    2008-01-10

    Logged In: YES
    user_id=80530
    Originator: NO

    Fixed in HEAD

     
  • Don Porter
    Don Porter
    2008-01-10

    • status: open --> closed-fixed