sb-sprof doesn't work on Windows.

Bug #1274943 reported by srt19170@gmail.com
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SBCL
Triaged
Low
Unassigned

Bug Description

When I attempt to use the statistical profiler on Windows, I get the error:

; Evaluation aborted on #<UNDEFINED-FUNCTION UNIX-SETITIMER {1002B4DC33}>.

I'm running "SBCL 1.1.4.0.mswin.1288-90ab477".

If I download the 1.1.12 Windows executable and attempt to profile, I get a different error:

The variable SB-UNIX:SIGPROF is unbound.

The manual suggests that statistical profiling works on Windows. Is that incorrect, or is there some problem in the way I'm trying to use it?

uname -a
MINGW32_NT-6.1 xxxxxx 1.0.18(0.48/3/2) 2012-11-21 22:34 i686 Msys

*FEATURES*

(:ALIEN-CALLBACKS :ANSI-CL :ASH-RIGHT-VOPS :C-STACK-IS-CONTROL-STACK
 :COMMON-LISP :COMPARE-AND-SWAP-VOPS :CYCLE-COUNTER :GENCGC
 :IEEE-FLOATING-POINT :INLINE-CONSTANTS :LINKAGE-TABLE :LITTLE-ENDIAN
 :MEMORY-BARRIER-VOPS :MULTIPLY-HIGH-VOPS :OS-PROVIDES-DLOPEN
 :OS-PROVIDES-DLOPEN :OS-PROVIDES-PUTWC :PACKAGE-LOCAL-NICKNAMES
 :RAW-INSTANCE-INIT-VOPS :SB-DOC :SB-DYNAMIC-CORE :SB-EVAL :SB-FUTEX :SB-LDB
 :SB-PACKAGE-LOCKS :SB-QSHOW :SB-SAFEPOINT :SB-SAFEPOINT-STRICTLY
 :SB-SOURCE-LOCATIONS :SB-TEST :SB-THREAD :SB-THRUPTION :SB-UNICODE :SB-WTIMER
 :SBCL :STACK-ALLOCATABLE-CLOSURES :STACK-ALLOCATABLE-FIXED-OBJECTS
 :STACK-ALLOCATABLE-LISTS :STACK-ALLOCATABLE-VECTORS
 :STACK-GROWS-DOWNWARD-NOT-UPWARD :UNWIND-TO-FRAME-AND-CALL-VOP :WIN32 :X86)

Revision history for this message
Stas Boukarev (stassats) wrote :

The manual doesn't suggest that. sb-sprof was never ported to windows.

summary: - Statistical Profiler Crashes (Windows)
+ sb-sprof doesn't work on Windows.
tags: added: os-windows sb-sprof
Changed in sbcl:
status: New → Triaged
importance: Undecided → Low
Revision history for this message
srt19170@gmail.com (srt19170) wrote :

From the manual:

>> This module is known not to work consistently on the Alpha platform [...] However, it should work on other platforms

I took "other platforms" to include Windows. If that's not the case, perhaps the manual could be updated to state more explicitly where the module is supported.

Thanks.

Revision history for this message
David Lichteblau (david-lichteblau) wrote :

Minor clarification for users who might not be aware of the SBCL/win32 forking situation:

sb-prof was ported to windows, but that patch hasn't been merged into SBCL proper yet.

Shouldn't be hard to do, patches encouraged. You might want to start by taking a look at https://github.com/akovalenko/sbcl-win32-threads/commit/c90e4369ed6bc8c6fa6902078c17fc68973e484a as well as any followup- changes to the same code.

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.