Menu

#25 probable fix for segfault when talking to USB visor edge

open
nobody
None
5
2004-10-30
2004-10-30
David Monro
No

Hi,
I reliably get a segfault when attempting to create a
syncpair with my handspring visor edge (palmOS, usb
connection). This is true with the debian multisync
package (0.82-3) and also with a CVS snapshot I've just
built.

I set the port field to /dev/usb/tts/1, speed to 57600
(which matches the setting on the device), type to USB,
press the hotsync button on the device (until the
device is attempting to sync, the tty won't exist),
press the 'Get From Device' button and then multisync
segfaults.

I'm pretty certain this is the result of what looks to
me like a mistake on line 129 of
plugins/palm_sync/src/palm_sync.c:

case PILOT_DEVICE_USB_VISOR:
pf = PI_PF_NET;
break;

This does not seem right. If I change it to PI_PF_PADP
instead of PI_PF_NET it seems to pretty much work
(except that leaving it in auto mode, it connects the
first time I hit the hotsync button, but subsequent
times the device just times out trying to connect). It
is not clear to me if PADP is right though!

Cheers,

David

Discussion

  • David Monro

    David Monro - 2004-10-30
    • summary: probablt fix for segfault when talking to USB visor edge --> probable fix for segfault when talking to USB visor edge
     
  • David Monro

    David Monro - 2004-10-31

    Logged In: YES
    user_id=66266

    Hmm. Should this be PADP or DLP? Both seem to work fine, at
    least with my visor edge, which is the only device I have to
    test with.

     

Log in to post a comment.

MongoDB Logo MongoDB