I have a very strange and uncommon problem.
I have Ruby version 1.9 from 13 oct 2006 on Windows XP.
I use some complex library from Ruby (large .dll + C extension I’ve
to talk to DLL from Ruby).
All works well, but when I try using the library together with
have segmentation faults.
The code looks like:
Net::HTTP.get_response ‘192.168.1.1’, ‘/index.html’
The segfault appeared on second line, in the deeps in SomeLibrary.dll
If I not using Net::HTTP calls in first line (instead, I read something
local file) - all works good.
SomeLibrary’s author debugged the case and said “somebody shoot my
HEAP[ruby.exe]: HEAP: Free Heap block 33a6e48 modified at 33a6e74 after
I’ve debugged (through dumb commenting/uncommenting lines) that the
seems to be inside socket.readline inside HTTPResponse.read_status_line
(net/http.rb, line 2017). Unfortuately, just now I have no advanced
debugging tools to say something more concrete about who and how shoots
What can I do with this? I’d be happy to any advices!
(If it is important, SomeLibrary == HTMLayout, custom HTML layouting
It doesn’t use IE or Firefox, but it may use some Windows socket and
API - can the problem lay here?)