valgrind -v --trace-children=yes echo "Loki" | gnokii --sendsms +919312085840 >& ~pbiswas/valtt.txt ==13963== Memcheck, a memory error detector ==13963== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al. ==13963== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info ==13963== Command: echo Loki ==13963== --13963-- Valgrind options: --13963-- -v --13963-- --trace-children=yes --13963-- Contents of /proc/version: --13963-- Linux version 3.0.0-23-generic (buildd@roseapple) (gcc version 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3) ) #39-Ubuntu SMP Thu Jul 19 19:18:53 UTC 2012 --13963-- Arch and hwcaps: X86, x86-sse1-sse2 --13963-- Page sizes: currently 4096, max supported 4096 --13963-- Valgrind library directory: /usr/local/lib/valgrind --13963-- Reading syms from /lib/i386-linux-gnu/ld-2.13.so (0x4000000) --13963-- Considering /lib/i386-linux-gnu/ld-2.13.so .. --13963-- .. CRC mismatch (computed a6c8b2f7 wanted 69f2d381) --13963-- Considering /usr/lib/debug/lib/i386-linux-gnu/ld-2.13.so .. --13963-- .. CRC is valid --13963-- Reading syms from /bin/echo (0x8048000) --13963-- Considering /bin/echo .. --13963-- .. CRC mismatch (computed 9f02f32f wanted a7969940) --13963-- object doesn't have a symbol table --13963-- Reading syms from /usr/local/lib/valgrind/memcheck-x86-linux (0x38000000) --13963-- object doesn't have a dynamic symbol table --13963-- Reading suppressions file: /usr/local/lib/valgrind/default.supp ==13963== embedded gdbserver: reading from /tmp/vgdb-pipe-from-vgdb-to-13963-by-root-on-??? ==13963== embedded gdbserver: writing to /tmp/vgdb-pipe-to-vgdb-from-13963-by-root-on-??? ==13963== embedded gdbserver: shared mem /tmp/vgdb-pipe-shared-mem-vgdb-13963-by-root-on-??? ==13963== ==13963== TO CONTROL THIS PROCESS USING vgdb (which you probably ==13963== don't want to do, unless you know exactly what you're doing, ==13963== or are doing some strange experiment): ==13963== /usr/local/lib/valgrind/../../bin/vgdb --pid=13963 ...command... ==13963== ==13963== TO DEBUG THIS PROCESS USING GDB: start GDB like this ==13963== /path/to/gdb echo ==13963== and then give GDB the following command ==13963== target remote | /usr/local/lib/valgrind/../../bin/vgdb --pid=13963 ==13963== --pid is optional if only one valgrind process is running ==13963== --13963-- REDIR: 0x4016d20 (strlen) redirected to 0x38056b04 (vgPlain_x86_linux_REDIR_FOR_strlen) --13963-- REDIR: 0x4016b60 (index) redirected to 0x38056adf (vgPlain_x86_linux_REDIR_FOR_index) --13963-- Reading syms from /usr/local/lib/valgrind/vgpreload_core-x86-linux.so (0x4023000) --13963-- Reading syms from /usr/local/lib/valgrind/vgpreload_memcheck-x86-linux.so (0x4026000) --13963-- Reading syms from /lib/i386-linux-gnu/libc-2.13.so (0x4046000) --13963-- Considering /lib/i386-linux-gnu/libc-2.13.so .. --13963-- .. CRC mismatch (computed 5d7f0723 wanted 3f8e3fd1) --13963-- Considering /usr/lib/debug/lib/i386-linux-gnu/libc-2.13.so .. --13963-- .. CRC is valid --13963-- REDIR: 0x40bd990 (rindex) redirected to 0x4029d40 (rindex) --13963-- REDIR: 0x40bd670 (__GI_strlen) redirected to 0x402a240 (__GI_strlen) --13963-- REDIR: 0x40bd060 (__GI_strcmp) redirected to 0x402aeb0 (__GI_strcmp) --13963-- REDIR: 0x40c3c10 (__GI_strncmp) redirected to 0x402a760 (__GI_strncmp) --13963-- REDIR: 0x40bcea0 (index) redirected to 0x4029e50 (index) --13963-- REDIR: 0x40bff00 (strchrnul) redirected to 0x402c7b0 (strchrnul) --13963-- REDIR: 0x40b9790 (malloc) redirected to 0x4029a47 (malloc) --13963-- REDIR: 0x40b9c40 (free) redirected to 0x4028dd3 (free) ==13963== ==13963== HEAP SUMMARY: ==13963== in use at exit: 0 bytes in 0 blocks ==13963== total heap usage: 32 allocs, 32 frees, 2,017 bytes allocated ==13963== ==13963== All heap blocks were freed -- no leaks are possible ==13963== ==13963== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 11 from 6) --13963-- --13963-- used_suppression: 11 U1004-ARM-_dl_relocate_object ==13963== ==13963== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 11 from 6) root@olive:/home/pbiswas/smtest/gnokii-0.6.31# more ~pbiswas/valtt.txt GNOKII Version 0.6.31 LOG: debug mask is 0x1 Config read from file /root/.gnokiirc. Cannot open logfile /root/.cache/gnokii/gnokii-errors WARNING: cannot open logfile, logs will be directed to stderr Lockfile /var/lock/LCK..A4:E7:31:B0:39:33 is stale. Overriding it... phone instance config: model = series40 port = A4:E7:31:B0:39:33 connection = bluetooth initlength = default serial_baudrate = 19200 serial_write_usleep = -1 handshake = software require_dcd = 0 smsc_timeout = 10 rfcomm_channel = 14 sm_retry = 0 Connecting Forcing rfcomm_channel = 14 for FBUS connection overrun: 1010 0 Serial device: opening device A4:E7:31:B0:39:33 Channel: 14 Channel: 14 Using channel: 14 Getting model... Message sent: 0x1b / 0x0006 00 01 00 07 01 00 | Message received: 0x1b / 0x003e 01 4a 00 08 00 01 58 38 00 31 56 20 30 36 2e 31 | J X8 1V 06.1 35 0a 32 35 2d 31 31 2d 31 31 0a 52 4d 2d 36 30 | 5 25-11-11 RM-60 37 0a 28 63 29 20 4e 6f 6b 69 61 20 20 20 20 20 | 7 (c) Nokia 20 20 20 20 20 20 20 0a 4d 48 00 00 00 00 | MH Received message type 1b model length: 6 Received model RM-607 Found model "RM-607" Message sent: 0x02 / 0x0006 00 01 00 14 01 00 | Message sent: 0x02 / 0x0006 00 01 00 14 01 00 | Message sent: 0x02 / 0x0006 00 01 00 14 01 00 | Cannot read the SMSC number from your phone. If the sms send will fail, please u se --smsc option explicitely giving the number. =====> ENTER gn_sms_send() enc_chars: 4 ext_chars: 0 total: 4 size of the input string: 4 bytes number of characters in the input string: 4 chars ++++++ About to hit send single++++++ =====> ENTER sms_send_single() General Data Coding Default Alphabet size: 4 offset: 0 encoded size: 4 rawsms length: 4 rawsms user data length: 4 dcs: 0x00 Length: 0x04 user_data_length: 0x04 ValidityIndicator: 2 user_data: CCF73A0D Input is 4 bytes long SMS is 4 octets long Sending Sending SMS...(54) Message sent: 0x02 / 0x0036 00 01 00 02 00 00 00 55 55 01 02 2c 11 00 00 00 | UU , 00 04 82 0c 01 08 0c 91 19 39 21 80 85 04 82 0c | 9! 02 01 00 00 00 00 00 00 00 00 80 08 04 04 cc f7 | 3a 0d 08 04 01 a9 | : Message received: 0x02 / 0x000a 01 9b 00 03 00 02 5c 00 00 00 | \ Received message type 02 Frame of type 0x02 (SMS handling) received! SMS sent (reference: 86) Send succeeded with reference 86! Serial device: closing device