Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2003-03-14
23:41 • Closed ticket [702622ffff]: format %lf 1 can crash Linux plus 7 other change... artifact: fb8cc2ed9c user: dkf
2003-03-13
00:08 • New ticket [702622ffff]. artifact: 4b46cd142d user: hobbs

format %lf 1 can crash Linux

Closed / Fixed702622ffffffffffffffffffffffffffffffffffCreated 24 years agoUpdated 24 years ago
Descriptionplain2003-03-13 00:08:00
It was reported and confirmed that
   format "%lf" 1
can crash some Linux machines.  The problem is that 
the 64-bit handling in 8.4 converts this to "%llf" as the 
specifier, which not all libc's appreciate.  Note that 
pedantically correct would be "%Lf", but %lld is what we 
want for ints, so I don't know how we will reconcile this.  
We could just trick it just for format to use 'L' in the long 
case of doubles only.
dkfplain2003-03-14 23:41:32
Logged In: YES 
user_id=79902

Whoever tracked this down did well to identify it, as it
leaves a complete mess on the stack.  Fixed in 8.4 and 8.5
Log in (anonymous is fine) to add a comment.