Remhash of pathname sometimes fails

Bug #1712944 reported by Jason Miller on 2017-08-25
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
SBCL
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.

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.

Jason Miller (aidenn0) wrote :

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

Michael Fiano (michael-fiano) wrote :

I can reproduce it on Linux with 1.3.20

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

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  Edit
Everyone can see this information.

Other bug subscribers