ofono with local patches/modifications
Go to file
Johan Hedberg 5033e06844 gdbus: Fix crash when getting disconnected from the bus
When getting disconnected from the bus sometimes (maybe always?)
dbus_watch_handle() can cause the "info" context to be free'd meaning
that we should not try to access it after the call. The only member we
need access to is the connection pointer and as the code already has a
ref() call for it it's only natural to solve the issue by adding a local
variable not dependent on "info".

The backtrace of the crash fixed looks as follows:

 Invalid read of size 8
   at 0x121085: watch_func (mainloop.c:105)
   by 0x4C72694: g_main_context_dispatch (gmain.c:2539)
   by 0x4C729C7: g_main_context_iterate.isra.23 (gmain.c:3146)
   by 0x4C72DC1: g_main_loop_run (gmain.c:3340)
   by 0x120541: main (main.c:551)
 Address 0x5bbcd90 is 16 bytes inside a block of size 24 free'd
   at 0x4A079AE: free (vg_replace_malloc.c:427)
   by 0x4C7837E: g_free (gmem.c:252)
   by 0x4F708BF: dbus_watch_set_data (dbus-watch.c:614)
   by 0x4F70938: _dbus_watch_unref (dbus-watch.c:132)
   by 0x4F6E9A7: _dbus_transport_handle_watch (dbus-transport.c:884)
   by 0x4F59AFB: _dbus_connection_handle_watch (dbus-connection.c:1497)
   by 0x4F70AF9: dbus_watch_handle (dbus-watch.c:683)
   by 0x121084: watch_func (mainloop.c:103)
   by 0x4C72694: g_main_context_dispatch (gmain.c:2539)
   by 0x4C729C7: g_main_context_iterate.isra.23 (gmain.c:3146)
   by 0x4C72DC1: g_main_loop_run (gmain.c:3340)
   by 0x120541: main (main.c:551)
2012-10-31 16:18:41 -05:00
btio btio: Add BtIOMode enum to be used with BT_IO_OPT_MODE 2012-02-10 10:18:01 +01:00
doc doc: Update hardware support information 2012-10-31 09:31:05 -07:00
drivers isimodem: Fix style issues in previous commit 2012-09-11 23:30:25 -05:00
dundee systemd: prevent duplicate logging messages in journal 2012-10-25 16:28:38 -07:00
examples gprs-provision: Fix crash if no SPN present 2011-12-02 12:53:44 -06:00
gatchat gatchat: Print error message if opening tun failes 2012-08-30 17:06:09 -05:00
gdbus gdbus: Fix crash when getting disconnected from the bus 2012-10-31 16:18:41 -05:00
gisi gisi: Remove includes of <glib/gtypes.h> 2012-03-19 16:12:12 -07:00
include sim: add function to get password type 2012-08-16 00:58:56 -05:00
plugins udevng: Fix MBM detection 2012-10-16 10:02:12 -05:00
src stk: Tweak the concept of continuous tones 2012-10-31 16:14:27 -05:00
test test: iconId value is not a printable character 2012-09-11 23:27:14 -05:00
tools stktest: Add Play Tone test sequence 3.1-3.4 2012-10-31 16:14:27 -05:00
unit unit: Move Play Tone 3.1-3.4 test data 2012-10-31 16:14:27 -05:00
.gitignore .gitignore: Update with stktest 2012-10-03 09:10:42 -05:00
.mailmap mailmap: Fix up Michael's name 2012-05-01 12:40:09 +02:00
AUTHORS AUTHORS: Mention August's contributions 2012-08-16 01:00:57 -05:00
COPYING Initial revision 2009-04-26 20:31:15 +02:00
ChangeLog Release 1.11 2012-09-11 16:05:26 +02:00
HACKING HACKING: Add ofono.conf file copy command required 2010-12-02 08:13:20 -06:00
INSTALL Initial revision 2009-04-26 20:31:15 +02:00
Makefile.am build: Add stk-test-data.h to stktest sources 2012-10-03 09:11:13 -05:00
NEWS Initial revision 2009-04-26 20:31:15 +02:00
README README: add information about mailing list and site 2012-07-02 11:04:31 -05:00
TODO TODO: Mark Handsfree interface task as done 2012-01-18 13:28:31 -06:00
acinclude.m4 Revert "build: Use -Wshadow compiler option" 2012-07-16 10:12:45 -03:00
bootstrap bootstrap: autoconf must run before automake 2009-12-10 15:55:49 +01:00
bootstrap-configure build: Remove dependency on libcap-ng 2012-05-29 08:17:01 +02:00
configure.ac Release 1.11 2012-09-11 16:05:26 +02:00
ofono.pc.in build: Support for pkg-config 2011-01-31 10:44:56 +01:00

README

oFono - Open Source Telephony
*****************************

Copyright (C) 2008-2011  Intel Corporation. All rights reserved.


Compilation and installation
============================

In order to compile telephony stack you need following software packages:
	- GCC compiler
	- GLib library
	- D-Bus library

To configure run:
	./configure --prefix=/usr --mandir=/usr/share/man \
				--sysconfdir=/etc --localstatedir=/var

Configure automatically searches for all required components and packages.

To compile and install run:
	make && make install


Kernel Dependencies
===================

In order to have the PPP stack working in oFono you need to enable CONFIG_TUN
(Universal TUN/TAP device driver support) in your kernel .config.

Information
===========

Mailing list:
	ofono@ofono.org

For additional information about the project visit oFono web site:
	http://www.ofono.org