Remhash of pathname sometimes fails

Bug #1712944 reported by Jason Miller
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
SBCL
Fix Released
Undecided
Unassigned

Bug Description

sbcl 1.3.18 on windows x64 only (have not tested 32-bit x86 windows)
put this in any file and load it:

(let* ((map (make-hash-table :test 'equalp))
       (key #P"some/path/"))
  (setf (gethash key map) "my-value")
  (format t "Printing: ~A~%" key)
  (print (remhash key map))
  (print (hash-table-count map)))

Output is surprisingly:

Printing: some/path/

NIL
1

Removing the format statement causes the remhash to succeed.

Revision history for this message
Jason Miller (aidenn0) wrote :

Oh, I confirmed that this reproduces under wine, so no need to fire up a real windows box to look at it.

Revision history for this message
Jason Miller (aidenn0) wrote :

And pillton reports that it reproduces on OSX 10.10.5, so this may not be windows specific.

Revision history for this message
Michael Fiano (michael-fiano) wrote :

I can reproduce it on Linux with 1.3.20

Revision history for this message
Jason Miller (aidenn0) wrote :

It does not reproduce on Linux with 1.3.17 which narrows it down to between 1.3.17 and 1.3.18; this places suspicion on https://github.com/sbcl/sbcl/commit/58602640ed7040d9f75c7fe28f058a0b2755c6c0 though I haven't bisected yet

Revision history for this message
Christophe Rhodes (csr21-cantab) wrote : Re: [Bug 1712944] [NEW] Remhash of pathname sometimes fails

Jason Miller <email address hidden> writes:

> Removing the format statement causes the remhash to succeed.

I've pushed a fix as 585853373a4b43aba7ac740f1fe50bd622f673eb.

Thank you,

Christophe

Changed in sbcl:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.