Subject: Hang accessing ucom
To: None <current-users@NetBSD.org>
From: Thomas Klausner <wiz@NetBSD.org>
List: current-users
Date: 06/24/2007 21:21:42
--XStn23h1fwudRqtG
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Hi!

I wanted to use wip/libopensync-plugin-moto's mototool[1] to talk to my
Motorola phone under NetBSD-4.99.20/amd64.

It's recognized as:
umodem0 at uhub2 port 4 configuration 1 interface 0
umodem0: Motorola Inc. Motorola Phone (L7), rev 1.10/0.01, addr 3, iclass 2/2
umodem0: data interface 1, has CM over data, has no break
umodem0: status change notification available
ucom0 at umodem0

When I start mototool on /dev/ttyU0, it just hangs.
The kdump output until I press CTRL-C is:
  8865      1 python2.4 GIO   fd 3 read 32 bytes
       "_calendar_open:
                    self"
  8865      1 python2.4 RET   read 16384/0x4000
  8865      1 python2.4 CALL  write(2,0x7f7ffdbc3684,4)
  8865      1 python2.4 GIO   fd 2 wrote 4 bytes
       "    "
  8865      1 python2.4 RET   write 4
  8865      1 python2.4 CALL  write(2,0x7f7fffffd62c,0x27)
  8865      1 python2.4 GIO   fd 2 wrote 39 bytes
       "self.__fd = os.open(device, os.O_RDWR)
       "
  8865      1 python2.4 RET   write 39/0x27
  8865      1 python2.4 CALL  close(3)
  8865      1 python2.4 RET   close 0
  8865      1 python2.4 CALL  write(2,0x50a714,0x11)
  8865      1 python2.4 GIO   fd 2 wrote 17 bytes
       "KeyboardInterrupt"

Any ideas?
Any suggestions how to debug this?
 Thomas

[1] Its dependency py-libopensync-plugin needs a python-enabled
comms/libopensync; patch attached.
 

--XStn23h1fwudRqtG
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="libopensync-python.diff"

Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/comms/libopensync/Makefile,v
retrieving revision 1.2
diff -u -r1.2 Makefile
--- Makefile	25 May 2007 10:47:53 -0000	1.2
+++ Makefile	24 Jun 2007 19:11:28 -0000
@@ -15,13 +15,18 @@
 USE_LIBTOOL=	yes
 GNU_CONFIGURE=	yes
 
-CONFIGURE_ARGS+=	--disable-python
+#CONFIGURE_ARGS+=	--disable-python
+CONFIGURE_ARGS+=	--enable-python
 
 DISTURL=${MASTER_SITES}${DISTNAME}${EXTRACT_SUFX}?format=raw
 pre-fetch:
 	${TEST} -f ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} || \
 	(cd ${DISTDIR} && ${FETCH_CMD} -o ${DISTNAME}${EXTRACT_SUFX} ${DISTURL:Q})
 
+PY_PATCHPLIST=	yes
+PLIST_SRC=	PLIST.python PLIST
+.include "../../lang/python/extension.mk"
+.include "../../devel/swig/buildlink3.mk"
 .include "../../databases/sqlite3/buildlink3.mk"
 .include "../../devel/glib2/buildlink3.mk"
 .include "../../textproc/libxml2/buildlink3.mk"
Index: PLIST.python
===================================================================
RCS file: PLIST.python
diff -N PLIST.python
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ PLIST.python	24 Jun 2007 19:11:28 -0000
@@ -0,0 +1,7 @@
+@comment $NetBSD$
+${PYSITELIB}/_opensync.a
+${PYSITELIB}/_opensync.la
+${PYSITELIB}/_opensync.so
+${PYSITELIB}/opensync.py
+${PYSITELIB}/opensync.pyc
+${PYSITELIB}/opensync.pyo

--XStn23h1fwudRqtG--