Re: ZoomFloppy with OpenCBM / VICE

From: Nate Lawson <>
Date: Thu, 6 Dec 2012 11:30:55 -0800
Message-Id: <>
On Dec 6, 2012, at 11:26 AM, Nate Lawson wrote:

> On Dec 6, 2012, at 4:57 AM, wrote:
>> On 6 gru 2012, at 11:28, Uffe Jakobsen <> wrote:
>>> I just did a quick test of ZoomFloppy, OpenCBM and VICE on FreeBSD 9.1 (that was what I had available) and it shows a similar problem:
>>> VICE coredump and a somewhat similar call stack trace caused by/in libusb
>>> It definitely needs more debugging.
>> Thank you Uffe for help, test and report. At least I know that it is not only mine / osx case. While the crash is in the libusb and should probably be fixed there (I mean the lib code shouldn't crash even if abused ;-) it seems to be the VICE's fault to trigger the bug by some erroneous call or something. i think so because the OpenCBM tools seem to work all fine.
> I've tested the Windows OpenCBM with VICE in the past, and it worked ok. Given that the problem is in libusb, I'd expect there is some difference between the Windows and FreeBSD/Mac libusb.
> Perhaps VICE is not calling a proper initialization function so an invalid handle is being passed to the xum1541 plugin reset routine?

Sorry to follow up so quickly, but it could also be a 64-bit problem. The area reserved for the OpenCBM CBM_FILE HANDLE object may not be treated properly by VICE. It needs to compile to an intptr_t (64-bit or 32-bit addresses, depending on platform). If VICE assumes it's an int or does casting, that could be the problem.


       Message was sent through the cbm-hackers mailing list
Received on 2012-12-06 20:01:02

Archive generated by hypermail 2.2.0.