buggnokii - Bugs: bug #23550, smsd crashes, sometimes when an...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #23550: smsd crashes, sometimes when an SMS is received

Submitted by:  dtashev
Submitted on:  Thu 12 Jun 2008 11:05:10 AM UTC  
Votes:  10  
 
Category: smsdSeverity: 3 - Normal
Item Group: major malfunctionStatus: Ready For Test
Privacy: PublicAssigned to: Jan Derfinak <ja>
Open/Closed: Closed

Mon 17 Nov 2008 07:27:44 PM UTC, comment #3:

Today I commited a fix for double free error to CVS. Thanks to Paul Praet.

Jan Derfinak <ja>
Project MemberIn charge of this item.
Sat 08 Nov 2008 02:23:58 PM UTC, comment #2:

I have the same issue...

Paul Praet <spetsnaz>
Thu 12 Jun 2008 11:56:14 AM UTC, comment #1:

Oh, I was lucky to get smsd stable for now using bluetooth.
Yes, yes, yes. Thanks dear developers!

I have used this guide:
http://www.developershome.com/sms/gnokiiExamples.asp
Plus, do not forget to play with: System->Preferences->Bluetooth and hciscan.

I will success story later if it is still stable. In the config I have set:

port = /dev/rfcomm0
model = AT
connection = serial
rfcomm_channel = 1

dtashev
Thu 12 Jun 2008 11:05:10 AM UTC, original submission:

1. VERSIONS: gnokii, smsd, libgnokii version used
-- GNOKII Version 0.6.26
-- smsd - version 1.4.2 from gnokii 0.6.26
-- "ldconfig -v | grep libgnokii", reports "libgnokii.so.3 -> libgnokii.so.3.9.0"

2. DESCRIPTION: bug description (expected behaviour, behaviour seen)
-- Gnokii works fine
-- Gnokii-smsd is not working fine. Sometimes when an SMS is received, the program prints error messages and stops.

-- Also it is kind of strange that "connection=dlr3p" is seen on the screen, although connection=dku5 is specified in the configuration file gnokiirc.
-- Also in the database, sometimes empty SMSes are stored, but please do not troubleshoot this separate and minor problem for now.

3. LOG: debug log (for gnokii debug = on, for smsd/xgnokii xdebug = on)
-- The program output is attached: "gnokii_log_2008.06.12.1334.txt". Here are a few lines from the crash log:
--------BEGIN----------------------------
Deleting SMS...
Error: Invalid type of memory.
*** glibc detected *** smsd: double free or corruption (!prev): 0x080923c0 ***
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6[0xb7d3da85]
/lib/tls/i686/cmov/libc.so.6(cfree+0x90)[0xb7d414f0]
smsd[0x804b5a6]
smsd[0x804b019]
/lib/tls/i686/cmov/libpthread.so.0[0xb7e264fb]
/lib/tls/i686/cmov/libc.so.6(clone+0x5e)[0xb7da8e5e]
======= Memory map: ========
08048000-0804d000 r-xp 00000000 08:08 229810 /usr/local/bin/smsd
0804d000-0804e000 rw-p 00004000 08:08 229810 /usr/local/bin/smsd
0804e000-080fb000 rw-p 0804e000 00:00 0 [heap]
...
--------END------------------------------

4. HW: hardware details (phone, cable with usb ids)
-- Phone: Nokia 6021, V 04.10 07-09-05, RM-94
-- Cable: CA-42, "lsusb" reports: "Bus 001 Device 003: ID 0ea0:6858 Ours Technology, Inc.". Driver: "oti6858".
-- PC: IBM R60e, Ubuntu 8.04 + all updates (including universe).

5. REPRODUCIBILITY: steps to reproduce the problem
-- Install Ubuntu 8.04 and allow all "Downloadable from the Internet" sources from System->Administration->Software Sources
-- Update your system and reboot. "uname -a" reports kernel: "2.6.24-16-generic".
-- apt-get install gcc g++ automake gettext mysql-server libglib2.0-dev libmysqlclient15-dev
-- download gnokii 0.6.26
-- tar -zxvf gnokii and cd to gnokii
-- ./configure
-- make
-- make install
-- verify the gnokii --version and smsd --version
-- configure gnokii as per the attached configuration file
-- configure smsd as per http://www.x11.net/wiki/index.php/Setting_up_an_SMS_Gateway
-- Execute: smsd -u root -p password -d smsgw -c localhost -m mysql
-- The problem is reproduced only sometimes. The content of the SMS doesn't seem to matter (I send 5 digits only each time).

6. Additional troubleshooting notes:
-- During the tests additionally a DKU-5 cable was tested (lsusb reports 6547:0232, driver is ark3116).

Thank you!

dtashev

 

Attached Files
file #15833:  gnokiirc added by dtashev (8KiB - application/octet-stream - log and config)
file #15834:  gnokii_log_2008.06.12.1334.txt added by dtashev (347KiB - text/plain - log and config)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by pkot (Updated the item)
  • -unavailable- added by agron12 (Voted in favor of this item)
  • -unavailable- added by ja (Posted a comment)
  • -unavailable- added by spetsnaz (Posted a comment)
  • -unavailable- added by dtashev (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 10 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 8 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 08 Apr 2010 09:01:14 PM UTCpkotOpen/ClosedOpen=>Closed
    Wed 21 Oct 2009 03:09:34 PM UTCagron12Carbon-Copy-=>Added agron12
    Mon 17 Nov 2008 07:27:44 PM UTCjaStatusNone=>Ready For Test
      Assigned toNone=>ja
    Thu 12 Jun 2008 11:06:17 AM UTCdtashevCarbon-CopyRemoved -unavailable-=>-
    Thu 12 Jun 2008 11:05:10 AM UTCdtashevAttached File-=>Added gnokiirc, #15833
      Attached File-=>Added gnokii_log_2008.06.12.1334.txt, #15834
      Carbon-Copy-=>Added -unavailable-

    Back to the top


    Powered by Savane 3.1-cleanup1