Installed Gnokii from the standard Ubuntu lucid repositories, however, it installed Gnokii 0.6.28. This was fine, but, upon testing came across an issue.
Notes: Phone Nokia 7250, Cable CA-42
Running in debug mode:
# gnokii –sendsms +MOBILE_NUMBER
….
debugging information
…
Please enter SMS text. End your input with <cr><control-D>:
would work fine to this stage. On entering a message it would some times work, or, it would sometimes error and crash.
One crash was:
Frame of type 0×02 (SMS handling) received!
SMSC Received
Please enter SMS text. End your input with <cr><control-D>:
test test test
*** glibc detected *** gnokii: free(): invalid next size (fast): 0x0866a950 ***
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6(+0x6b591)[0xb750d591]
/lib/tls/i686/cmov/libc.so.6(+0x6cde8)[0xb750ede8]
/lib/tls/i686/cmov/libc.so.6(cfree+0x6d)[0xb7511ecd]
/usr/lib/libgnokii.so.5(gn_char_def_alphabet+0xb3)[0xb77e6a43]
gnokii[0x805bb78]
gnokii[0x804b948]
gnokii[0x804bd5f]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe6)[0xb74b8bd6]
gnokii[0x804ab61]
======= Memory map: ========
….
So, every time trying to send the message “test test test” would result in this crash. However, sending “test test” or “test test test test” would work fine.
Another string that would error was: “yeah go on”
Frame of type 0×02 (SMS handling) received!
SMSC Received
Please enter SMS text. End your input with <cr><control-D>:
yeah go on
*** glibc detected *** gnokii: free(): invalid next size (fast): 0x095dcd28 ***
======= Backtrace: =========
….
Checking the Ubuntu mirrors had gnokii 0.6.29 available in: http://gb.archive.ubuntu.com/ubuntu/pool/universe/g/gnokii/
However, running “apt-get upgrade gnokii” would not upgrade this package. It appears that 0.6.29 gnokii is part of Ubuntu 10.10 (maverick). Luckily the following worked:
- Updated /etc/apt/sources.list; adding:
deb http://gb.archive.ubuntu.com/ubuntu/ maverick main restricted - Then ran:
apt-get install gnokii gnokii-cli gnokii-common gnokii-smsd gnokii-smsd-mysql - This prompted to install the later packages of gnokii and very little else. As the dependencies were the same and it didn’t want to install all over maverick we went ahead with the install.
- Removed the “maverick” repo from sources.list… otherwise, we could inadvertently install maverick packages on lucid and it would become a big mess.
After the install we tested 0.6.29 and it worked fine.
7 responses so far ↓
1 john // Jun 11, 2010 at 10:00 pm
smsd was seg faulting with: Jun 11 20:52:02 server kernel: [29985.244066] smsd[12905]: segfault at c ip b748d190 sp b6e696b8 error 4 in libc-2.11.1.so[b741f000+153000]
Compiled manually to see if it has the same problem.
2 Alan Kwiatkowski // Sep 16, 2010 at 12:07 pm
I tried your process, but apt-get keeps responding with everything “is already the newest version.” Is something missing? I tried apt-get update after I added the line to sources.list. Or did they change the maverick mirror?
Any thoughts will be appreciated.
Al
3 Alan Kwiatkowski // Sep 18, 2010 at 12:38 pm
I got this to work as follows:
1) used
deb http://lug.mtu.edu/ubuntu maverick main universe
in place of your addition. I’m not sure it was the new mirror or the “universe” vs. “restricted”.
2) I had to copy
/usr/lib/smsd/libsmsd_mysql.so
to
/usr/local/lib/smsd/libsmsd_mysql.so
I’ll also note that I tried to compile all the packages from source, but that resulted in an error attempting to access mysql.
Al
4 Imo // Sep 20, 2010 at 9:23 am
Hi Al,
Thanks for the update and glad to hear that you got it working. I think I had some similar issues which may have been caused by an earlier manual compilation of the package which left some libraries installed (or something like that).
When I used the mirror http://gb.archive.ubuntu.com/ubuntu/ it seemed to work fine and I believe it was from the official mirror list. Strange that it didn’t work for you.
Imo
5 Joren // Oct 28, 2010 at 6:01 pm
Thanks for the tip. It worked for me using this exact procedure:
1. Added this to sources.list
deb http://lug.mtu.edu/ubuntu maverick main universe
2. Updated the package index:
sudo apt-get update
3. Upgraded gnokii (and nothing else):
sudo apt-get upgrade gnokii gnokii-cli gnokii-common gnokii-smsd gnokii-smsd-mysql
4. Removed the new entry from the apt sources.list and refreshed the package index again:
sudo apt-get update
Result: a working gnokii on a stable system.
6 Joren // Oct 28, 2010 at 6:02 pm
Thanks for the tip. It worked for me using this exact procedure:
1. Added this to sources.list
deb http://lug.mtu.edu/ubuntu maverick main universe
2. Updated the package index:
sudo apt-get update
3. Upgraded gnokii (and nothing else):
sudo apt-get upgrade gnokii gnokii-cli gnokii-common gnokii-smsd gnokii-smsd-mysql
4. Removed the new entry from the apt sources.list and refreshed the package index again:
sudo apt-get update
Result: a working gnokii on a stable system.
7 Imo // Jan 27, 2011 at 8:05 am
Hi BC,
You maybe able to download the .deb files manually and install them with the dpkg command?
Leave a Comment