Segmentation fault
Marko Saukko
marko.saukko at gmail.com
Thu Aug 6 22:15:35 PDT 2009
Hi Denis,
Something changed as the segfault is different. With adding and removing
the modem like previously showed it now results to one of the following
segmentation faults.
Program received signal SIGSEGV, Segmentation fault.
0x0000013c in ?? ()
(gdb) where
#0 0x0000013c in ?? ()
#1 0xb7e382b6 in ?? () from /usr/lib/libglib-2.0.so.0
#2 0xb7e37b88 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#3 0xb7e3b0eb in ?? () from /usr/lib/libglib-2.0.so.0
#4 0xb7e3b5ba in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#5 0x0804d345 in main (argc=3, argv=0xabcdef) at main.c:148
(gdb)
Program received signal SIGSEGV, Segmentation fault.
update_network_operator_list_init (user_data=0x8e67500) at network.c:806
806 if (netreg->flags &
NETWORK_REGISTRATION_FLAG_REQUESTING_OPLIST)
(gdb) where
#0 update_network_operator_list_init (user_data=0x8e67500) at network.c:806
#1 0xb7f172b6 in ?? () from /usr/lib/libglib-2.0.so.0
#2 0xb7f16b88 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#3 0xb7f1a0eb in ?? () from /usr/lib/libglib-2.0.so.0
#4 0xb7f1a5ba in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#5 0x0804d345 in main (argc=3, argv=0xabcdef) at main.c:148
(gdb)
Here is a small script which can be used to test this. With Nokia E51 it
always segfaults before the 100 is reached. Sometimes it is able to do
sequence multiple times and sometimes only create-destroy-create is enough.
#!/bin/sh
if [ ! $1 ]; then
echo "Usage example: $0 dev:/dev/ttyACM0"
return;
fi
for i in `seq 1 100`; do
dbus-send --print-reply --system --dest=org.ofono /\
org.ofono.at.Manager.Create string:"$1" string:"at"
dbus-send --print-reply --system --dest=org.ofono /\
org.ofono.at.Manager.Destroy objpath:"/modem$i"
done
Regards,
Marko
More information about the ofono
mailing list