[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[coldsync-hackers] Sony-Clié-770c
Hi,
I just bought the Sony clié 770c (which should not be different of the
760) and tried to sync with coldsync. My ~/.coldsyncrc look like :
,----
| listen serial {
| protocol: simple;
| device: /dev/ttyUSB0;
| }
|
| pda "Sony" {
| snum: ######;
| username: "Chmouel Boudjnah";
| userid: 501;
| default;
| }
|
`----
when i attempt to coldsync i get :
,----
| chmou@giants|coldsync-2.3.0/src| ./coldsync
| Please press the HotSync button.
| ##### Bad response ID: expected 0x92, got 0x93.
| Error: Can't get system info.
| zsh: segmentation fault (core dumped) ./coldsync
`----
and the backtrace following :
,----
| chmou@giants|coldsync-2.3.0/src| gdb ./coldsync core
| GNU gdb 5.1
| Copyright 2001 Free Software Foundation, Inc.
| GDB is free software, covered by the GNU General Public License, and you are
| welcome to change it and/or distribute copies of it under certain conditions.
| Type "show copying" to see the conditions.
| There is absolutely no warranty for GDB. Type "show warranty" for details.
| This GDB was configured as "i386-mandrake-linux"...
| Core was generated by `./coldsync'.
| Program terminated with signal 11, Segmentation fault.
| Reading symbols from /usr/lib/libstdc++-libc6.2-2.so.3...done.
| Loaded symbols for /usr/lib/libstdc++-libc6.2-2.so.3
| Reading symbols from /lib/libm.so.6...done.
| Loaded symbols for /lib/libm.so.6
| Reading symbols from /lib/libc.so.6...done.
| Loaded symbols for /lib/libc.so.6
| Reading symbols from /lib/ld-linux.so.2...bdone.
| Loaded symbols for /lib/ld-linux.so.2
| Reading symbols from /lib/libnss_files.so.2...done.
| Loaded symbols for /lib/libnss_files.so.2
| #0 0x4011cd10 in strncasecmp () from /lib/libc.so.6
| (gdb) bt
| #0 0x4011cd10 in strncasecmp () from /lib/libc.so.6
| #1 0x08055a99 in find_pda_block (palm=0x80a6768, check_user=True)
| at config.c:1442
| #2 0x0804cad2 in run_mode_Standalone (argc=0, argv=0xbffffa58)
| at coldsync.c:572
| #3 0x0804c60e in main (argc=0, argv=0xbffffa58) at coldsync.c:329
| #4 0x400b06a0 in __libc_start_main () from /lib/libc.so.6
`----
accoring to log it look like p_snum is NULL which is the bug i should
hit in the code :
src/config.c:
/* See if this pda_block has a serial number and if so,
* whether it matches the one we read off of the Palm.
* Palms with pre-3.0 ROMs don't have serial numbers. They
* can be represented in the .coldsyncrc file with
* snum "";
* This does mean that you shouldn't have more than one
* pda_block with an empty string.
*/
/* XXX - Bug: I've gotten a core dump here, where p_snum ==
* NULL.
*/
after patching it with :
--- ./src/config.c.chmou Sun Dec 9 20:51:22 2001
+++ ./src/config.c Tue Dec 18 13:57:58 2001
@@ -1438,7 +1438,7 @@
/* XXX - Bug: I've gotten a core dump here, where p_snum ==
* NULL.
*/
- if ((cur->snum != NULL) &&
+ if ((cur->snum != NULL && p_snum !=NULL) &&
(strncasecmp(cur->snum, p_snum, SNUM_MAX)
!= 0))
{
i still get a coredump in :
(gdb) bt
#0 0x0804c9de in run_mode_Standalone (argc=0, argv=0xbffffa58) at coldsync.c:621
#1 0x0804c57c in main (argc=1, argv=0xbffffa54) at coldsync.c:329
#2 0x400b06a0 in __libc_start_main () from /lib/libc.so.6
any idea ?
This message was sent through the coldsync-hackers mailing list. To remove
yourself from this mailing list, send a message to majordomo@thedotin.net
with the words "unsubscribe coldsync-hackers" in the message body. For more
information on Coldsync, send mail to coldsync-hackers-owner@thedotin.net.