ofono with local patches/modifications
Go to file
Anderson Lizardo 29401d8587 gdbus: Fix incorrect DBusConnection reference counting
Commit abfc2b0dd5c3e33abfdf1a815b16d492c1751c06 attempted to fix a crash
related to improper reference counting, but the main issue was that the
reference was taken only during the function call (which is usually
unnecessary for single thread), but still passed a pointer to
DBusConnection to a function that is called by the mainloop. This left a
window where the DBusConnection can be destroyed.

Fixes this crash on unit/test-gdbus-client:

==32642== Invalid read of size 4
==32642==    at 0x690D0A6: dbus_connection_ref (in
/lib/i386-linux-gnu/libdbus-1.so.3.7.6)
==32642==    by 0x804CEDB: message_dispatch (mainloop.c:73)
==32642==    by 0x684580E: g_timeout_dispatch (gmain.c:4450)
==32642==    by 0x6844A75: g_main_context_dispatch (gmain.c:3065)
==32642==    by 0x6844E14: g_main_context_iterate.isra.23 (gmain.c:3712)
==32642==    by 0x68452FA: g_main_loop_run (gmain.c:3906)
==32642==    by 0x804C7D3: client_connect_disconnect
(test-gdbus-client.c:188)
==32642==    by 0x6868DB2: g_test_run_suite_internal (gtestutils.c:2067)
==32642==    by 0x6868F8D: g_test_run_suite_internal (gtestutils.c:2138)
==32642==    by 0x6869320: g_test_run_suite (gtestutils.c:2189)
==32642==    by 0x686936B: g_test_run (gtestutils.c:1508)
==32642==    by 0x696D4D2: (below main) (libc-start.c:226)
==32642==  Address 0x709c6e4 is 140 bytes inside a block of size 144
free'd
==32642==    at 0x67E806C: free (in
/usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
==32642==    by 0x692D62E: dbus_free (in
/lib/i386-linux-gnu/libdbus-1.so.3.7.6)
==32642==    by 0x690E1C2: ??? (in
/lib/i386-linux-gnu/libdbus-1.so.3.7.6)
==32642==    by 0x804AAEC: destroy_context (test-gdbus-client.c:104)
==32642==    by 0x6868DB2: g_test_run_suite_internal (gtestutils.c:2067)
==32642==    by 0x6868F8D: g_test_run_suite_internal (gtestutils.c:2138)
==32642==    by 0x6869320: g_test_run_suite (gtestutils.c:2189)
==32642==    by 0x686936B: g_test_run (gtestutils.c:1508)
==32642==    by 0x696D4D2: (below main) (libc-start.c:226)
2014-02-18 23:13:53 -08:00
btio btio: Add BtIOMode enum to be used with BT_IO_OPT_MODE 2012-02-10 10:18:01 +01:00
doc git: Fixup messed up permissions 2013-12-21 13:39:54 -06:00
drivers git: Fixup messed up permissions 2013-12-21 13:39:54 -06:00
dundee dundee: return error if there is a connection procedure ongoing 2013-06-29 21:10:21 +02:00
examples gprs-provision: Fix crash if no SPN present 2011-12-02 12:53:44 -06:00
gatchat gatchat: Fix handling of WRITE_SCHEDULER_DEBUG 2014-01-19 16:48:04 -08:00
gdbus gdbus: Fix incorrect DBusConnection reference counting 2014-02-18 23:13:53 -08:00
gisi gisi: Remove includes of <glib/gtypes.h> 2012-03-19 16:12:12 -07:00
include include: Be more const-correct in ofono_dbus_* 2014-01-13 10:19:54 -06:00
plugins mbpi: Pop subparser stack after mmsc and mmsproxy 2014-02-07 08:56:44 -06:00
src include: Be more const-correct in ofono_dbus_* 2014-01-13 10:19:54 -06:00
test test: Add set-msisdn script 2013-09-12 13:17:39 -05:00
tools tools: Make two functions of stktest static 2012-12-15 21:53:56 +01:00
unit unit: Ignore errors about deprecated g_test_trap_fork 2013-12-21 13:27:36 -08:00
.gitignore gitignore: Ignore file generated by Automake 1.13 2013-05-22 21:38:48 -05:00
.mailmap mailmap: Fix up Michael's name 2012-05-01 12:40:09 +02:00
AUTHORS AUTHORS: Mention Krzysztof's contributions 2013-12-18 00:10:19 -06:00
COPYING Initial revision 2009-04-26 20:31:15 +02:00
ChangeLog Release 1.14 2013-12-22 13:03:11 -08: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: Remove unused dependency on USB library 2013-12-21 13:13:07 -08: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 BlueZ 5 support in dundee as done 2013-03-24 13:33:47 +01: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: Reorder default developer build options 2012-12-10 20:45:24 +01:00
configure.ac Release 1.14 2013-12-22 13:03:11 -08: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