Your message dated Mon, 06 Oct 2008 04:17:04 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#340179: fixed in gsmlib 1.10-13
has caused the Debian Bug report #340179,
regarding gsm-utils: gsmsmsstore device existence check causes problems with
RFCOMM devices
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [EMAIL PROTECTED]
immediately.)
--
340179: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=340179
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Package: gsm-utils
Version: 1.10-7
Severity: normal
Tags: patch
Hi there.
I'm using gsmlib over a Bluetooth RFCOMM serial device to talk to my
phone. RFCOMM serial devices are a little touchy about being close()d
and immediately re-open()d - the open() succeeds, but other syscalls on
the returned filehandle will fail with -EIO. If a sleep(1) is inserted
between the close() and open() then the problem goes away. Inserting a
sleep() /after/ the open() doesn't work, however long you sleep for - I
reckon all other syscalls on the filehandle fail, and you need a new
filehandle to proceed, but ICBW. Presumably this is something to do
with the previous Bluetooth connection being in the process of being
torn down when we try to establish the new one, but why it stays broken
for the lifetime of the filehandle escapes me.
gsmsmsstore manages to uncover this timing issue because it opens and
closes the device through iostreams to check it exists right before
opening it for serial IO. The serial ioctls then fail, and gsmsmsstore
exits with an error. For the benefit of Googlers, the message is:
gsmsmsstore[ERROR]: clearing DTR failed (errno: 5/Input/output error)
This makes gsmsmsstore rather unusable with RFCOMM devices.
So, a patch is attached that uses gsm_util.cc's "isFile()" to test
for device existence instead, which uses stat() internally instead of
open and close and therefore steps around the problem. I think the
file existence check was broken (exception was discarded) and rather
inelegant, and is probably redundant (think we call isFile() later on
pretty much everything), but anyway...
Cheers,
Isaac Wilcox
-- System Information:
Debian Release: testing/unstable
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.14-zak
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Versions of packages gsm-utils depends on:
ii adduser 3.77 Add and remove users and
ii libc6 2.3.5-6 GNU C Library: Shared
ii libgcc1 1:4.0.2-4 GCC support library
ii libgsmme1c2 1.10-7 GSM mobile phone access
ii libstdc++6 4.0.2-4 The GNU Standard C++
gsm-utils recommends no packages.
-- no debconf information
--- gsmlib-1.10/apps/gsmsmsstore.cc.orig 2002-05-14 20:38:12.000000000 +0100
+++ gsmlib-1.10/apps/gsmsmsstore.cc 2005-11-21 15:46:15.000000000 +0000
@@ -292,19 +292,14 @@
sourceStore = new SortedSMSStore(sourceMeTa->getSMSStore(storeName));
}
- // make sure destination file exists
+ // make sure destination file exists if specified
+ // Use isFile() for its exception-throwing properties, and discard
+ // return value cos we don't care (yet) whether it's a device or a
+ // regular file.
if (destination != "")
- {
- try
- {
- ofstream f(destination.c_str(), ios::out | ios::app | ios::binary);
- }
- catch (exception)
- {
- }
- }
+ isFile(destination);
- // start accessing destination destination store or file
+ // start accessing destination store or file
if (operation == CopyOp || operation == BackupOp || operation == AddOp ||
operation == DeleteOp)
if (destination == "-")
--- End Message ---
--- Begin Message ---
Source: gsmlib
Source-Version: 1.10-13
We believe that the bug you reported is fixed in the latest version of
gsmlib, which is due to be installed in the Debian FTP archive:
gsm-utils_1.10-13_i386.deb
to pool/main/g/gsmlib/gsm-utils_1.10-13_i386.deb
gsmlib_1.10-13.diff.gz
to pool/main/g/gsmlib/gsmlib_1.10-13.diff.gz
gsmlib_1.10-13.dsc
to pool/main/g/gsmlib/gsmlib_1.10-13.dsc
libgsmme-dev_1.10-13_i386.deb
to pool/main/g/gsmlib/libgsmme-dev_1.10-13_i386.deb
libgsmme1c2a_1.10-13_i386.deb
to pool/main/g/gsmlib/libgsmme1c2a_1.10-13_i386.deb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Mark Purcell <[EMAIL PROTECTED]> (supplier of updated gsmlib package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Mon, 06 Oct 2008 15:01:49 +1100
Source: gsmlib
Binary: libgsmme-dev libgsmme1c2a gsm-utils
Architecture: source i386
Version: 1.10-13
Distribution: unstable
Urgency: low
Maintainer: Mark Purcell <[EMAIL PROTECTED]>
Changed-By: Mark Purcell <[EMAIL PROTECTED]>
Description:
gsm-utils - GSM mobile phone access applications
libgsmme-dev - Header files and static libraries for gsmlib
libgsmme1c2a - GSM mobile phone access library
Closes: 340179 346240 377448 413341 459396 464981 474093
Changes:
gsmlib (1.10-13) unstable; urgency=low
.
* Ack NMU, Thanks Michael, Christoph & Petter
* debian/control add Homepage:
* Update debian/copyright; gsm-lib/COPYING actually specifies LGPL:
- fixes lintian:copyright-without-copyright-notice
* Update manpages fixes lintian:hyphen-used-as-minus-sign
* Update debian/gsm-utils.init
- fixes lintian:init.d-script-missing-lsb-short-description
* Bug fixes from ubuntu
- Don't install contrib/gsm-utils.init dh_installinit debian/gsm-utils.init
- Create /var/run/gsm-utils
* Add case 'L' to apps/gsmsmsd.cc - thks to Andrew Suffield
- syslog support does not work (Closes: #346240)
* gsm-utils.init really call restart with --stop first
- init script calls --start twice (Closes: #377448)
* Explictly set /bin/bash: gsmsmsspool & gsmsmsrequeue
- bashism in /bin/sh script (Closes: #464981)
- gsmsmsrequeue contains bashism or function error (Closes: #459396)
* Patch apps/gsmsmsstore.cc - thks Isaac Wilcox
- gsmsmsstore device existence check causes problems with RFCOMM
devices (Closes: #340179)
* Only start gsmsmsd if set in /etc/default/gsm-utils. crontab -> examples
- gsmsmsd should be optional / start only if told so in
/etc/default/gsm-utils (Closes: #474093)
* Apply patch from Stefan Katerkamp & Jacob Nevins
- Gsmsendsms fails with SonyEricsson W880 (fix included) (Closes:
#413341)
Checksums-Sha1:
ed065b75e353511d2c01b05e25ee021f0702c51e 1015 gsmlib_1.10-13.dsc
81b493213dd8580a54121e94ef35ebcef30635c7 459399 gsmlib_1.10-13.diff.gz
43769a2b2a8dd6592b280cbf4a928bd045d87b2e 262614 libgsmme-dev_1.10-13_i386.deb
6dde763c5fa073997e5569530ad72dbf76c31394 214386 libgsmme1c2a_1.10-13_i386.deb
8f25b83e9d941a207aaeda42db910307865c9337 152906 gsm-utils_1.10-13_i386.deb
Checksums-Sha256:
55eadfd5d199737bff855557e4e08121fb31d85ef172c96560c725e80f94712f 1015
gsmlib_1.10-13.dsc
a846d1b1e343f8cc55835250e810c064b9afe532f26b43e2895fcf0141ca4a0d 459399
gsmlib_1.10-13.diff.gz
b4c286ec36454299a0d7a3db0427625a6d811ce215de6697a6d5550dc698eec3 262614
libgsmme-dev_1.10-13_i386.deb
8ac7cba238263a46217c65be493653d3a66f52ba9772760374271cd3835f7653 214386
libgsmme1c2a_1.10-13_i386.deb
ccc21145c21882720bb04b82231cee2efbe34ddc5cf7c3997852ce21de256525 152906
gsm-utils_1.10-13_i386.deb
Files:
91dd61daaa2ef927f1fb913777176212 1015 comm extra gsmlib_1.10-13.dsc
579b3e77193f469e3edf9ed493a7ba4a 459399 comm extra gsmlib_1.10-13.diff.gz
0ecf2ef731a04b1120393df156b08167 262614 libdevel extra
libgsmme-dev_1.10-13_i386.deb
7825aff84117d8a88f813724e2200202 214386 libs extra
libgsmme1c2a_1.10-13_i386.deb
f1b0fe4b142834b914367335aa9abc1b 152906 comm extra gsm-utils_1.10-13_i386.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAkjpjqEACgkQoCzanz0IthJ1SQCfSqin8zv2DVZ8uWfBDK7sDtYi
5SsAnjzMNao3WnPJ2HjazT5KYiv7MEjb
=9PSC
-----END PGP SIGNATURE-----
--- End Message ---