-
And finally:
this is a quick and ugly patch, that allocates a char[256] array named stringbuffer and copies the format string into it, before passing it down to vfprintf.
I don't know if this breaks something (it surely does, my C skill are not only lame but also very rusty), but this way, no more segfaults on the way.
(gdb) br print
Breakpoint 1 at 0x400ad0: file madfuload.c, line...
2008-03-02 10:53:49 UTC in USB MIDI Firmware Loaders
-
Forget my last comment!
If I specify the right filenames and devices pathes, it seems to be working. Unfortunately, I have absolutely no feedback as madfuload segfaults whenever it wants to print something on the screen. But since I am currently listening to music over the Transit USB, it must have been working somehow...
2008-03-02 10:14:51 UTC in USB MIDI Firmware Loaders
-
Forgot to mention, that it even does not work, if I specify the corrent files and device paths. :-)
2008-03-02 09:49:04 UTC in USB MIDI Firmware Loaders
-
On my AMD64 system, madfuload segaults when trying to download the firmware to an M-Audio transit (ma006100.bin).
$: uname -a
Linux Xerxes 2.6.17.3 #1 Wed Nov 1 22:32:51 CET 2006 x86_64 GNU/Linux
$: lsusb
Bus 005 Device 007: ID 0763:2006 Midiman
Bus 005 Device 003: ID 046d:c408 Logitech, Inc. Marble Mouse (4-button)
Bus 003 Device 002: ID 041e:3f08 Creative Technology, Ltd...
2008-03-02 09:47:26 UTC in USB MIDI Firmware Loaders