Stuff…

I know I will forget.

Stuff… header image 2

Gnokii 0.6.28 install on Ubuntu 10.04.1 (lucid)

June 11th, 2010 · 1 Comment

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): 0×0866a950 ***
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6(+0×6b591)[0xb750d591]
/lib/tls/i686/cmov/libc.so.6(+0×6cde8)[0xb750ede8]
/lib/tls/i686/cmov/libc.so.6(cfree+0×6d)[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): 0×095dcd28 ***
======= 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:

  1. Updated /etc/apt/sources.list; adding:
    deb http://gb.archive.ubuntu.com/ubuntu/ maverick main restricted
  2. Then ran:
    apt-get install gnokii gnokii-cli gnokii-common gnokii-smsd gnokii-smsd-mysql
  3. 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.
  4. 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.

Tags: Linux · Networking · Operating System · Uncategorized

1 response 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.

Leave a Comment