From: Dan Daniels Date: 2009-06-13T12:20:58+09:00 Subject: Re: win32-service Segmentation fault Daniel Berger wrote: >> Platform: Windows Server 2003, Standard Edition Build 3790 Service Pack >> >> Application Layer Gateway Service >> >> ice.rb:1100: [BUG] Segmentation fault >> ruby 1.8.6 (2007-09-24) [i386-mswin32] >> >> >> This application has requested the Runtime to terminate it in an >> unusual >> way. >> Please contact the application's support team for more information. > > That's odd. Line 1100 is actually pure Ruby code: > > binary_path = binary_path.unpack('Z*')[0] > > I wonder if you've found a bug. > > A few questions. > > What version of Ruby are you running? > One click or hand built? > What version of win32-service? > Does it always segfault at the same place? > > If it does segfault at the same place, can you open up your services > explorer window and see what the next one on the list is? > > Control Panel -> Administrative Tools -> Services > > Or, if you could step through the debugger, I'd love to see what the > 'binary_path' variable is set to when it dies. > > Regards, > > Dan One-click install, installed win32-service via gem install command just a few days ago. version 0.6.1-x86-mswin32-60. W:\>ruby -v ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32] BlackBerry MDS Connection Service is the next service in the list. Yes, it consistently stops exactly same place, even if the "puts s.display_name" line is commented out. Yesterday in testing different things, it seg faulted and listed string.rb as the culprit. I can't duplicate that today. Installing ruby-debug, new territory for me. I will post value of 'binary_path' variable soon. Oddly enough, from a Vista box it, the same *exact* script (against mps-bes1 also) goes past that service and gets near the end until it crashes in the same fashion. w:\>check_services_test.rb Application Experience Lookup Service Alerter Application Layer Gateway Service Application Management ASP.NET State Service RAS Asynchronous Media Driver Audio Stub Driver BlackBerry Attachment Service Background Intelligent Transfer Service BlackBerry Controller BlackBerry Database Consistency Service BlackBerry Dispatcher BlackBerry MDS Connection Service BlackBerry Policy Service BlackBerry Router BlackBerry Alert BlackBerry Synchronization Service Computer Browser Indexing Service ClipBook .NET Runtime Optimization Service v2.0.50727_X86 Microsoft AC Adapter Driver COM+ System Application Cryptographic Services Logical Disk Manager Administrative Service Logical Disk Manager Error Reporting Service COM+ Event System Fips Help and Support Human Interface Device Access HTTP HTTP SSL IIS Admin Service IMAPI CD-Burning COM Service IPv6 Windows Firewall Driver IP Traffic Filter Driver IP in IP Tunnel Driver IP Network Address Translator IR Enumerator Service Intersite Messaging Server License Logging Messenger NetMeeting Remote Desktop Sharing Message Queuing access control WebDav Client Redirector Microsoft Exchange Management Windows Installer Message Queuing Microsoft System Management BIOS Driver Remote Access NDIS TAPI Driver Remote Access NDIS WAN Driver NetBackup Client Service NetBackup SAN Client Fibre Transport Service Network DDE DSDM Network Connections Network Location Awareness (NLA) File Replication NT LM Security Support Provider Removable Storage OfficeScanNT RealTime Scan PDCOMP PDFRAME PDRELI PDRFRAME IPSEC Services WAN Miniport (PPTP) Protected Storage Direct Parallel Link Driver Remote Access Auto Connection Manager WAN Miniport (L2TP) Remote Access Connection Manager Remote Access PPPOE Driver Direct Parallel Terminal Server Device Redirector Driver RDPWD Remote Desktop Help Session Manager Routing and Remote Access Remote Registry Remote Procedure Call (RPC) Locator Resultant Set of Policy Provider Special Administration Console Helper Secdrv Secondary Logon Windows Firewall/Internet Connection Sharing (ICS) c:/ruby/lib/ruby/gems/1.8/gems/win32-service-0.6.1-x86-mswin32-60/lib/win32/serv ice.rb:1328: [BUG] Segmentation fault ruby 1.8.6 (2007-09-24) [i386-mswin32] This application has requested the Runtime to terminate it in an unusual way. -- Posted via http://www.ruby-forum.com/.