Le 21.12.2007 01:33, Michal Čihař a écrit : > Can you please install libgammu3-dbg package and run whole command in > Valgrind?
The output in attached. Best regards, -- Nicolas
==18697== Memcheck, a memory error detector. ==18697== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al. ==18697== Using LibVEX rev 1804, a library for dynamic binary translation. ==18697== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP. ==18697== Using valgrind-3.3.0-Debian, a dynamic binary instrumentation framework. ==18697== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al. ==18697== For more details, rerun with: -v ==18697== ==18697== Conditional jump or move depends on uninitialised value(s) ==18697== at 0x433D65B: hci_send_req (in /usr/lib/libbluetooth.so.2.9.2) ==18697== by 0x433F6F8: hci_read_remote_name_with_clock_offset (in /usr/lib/libbluetooth.so.2.9.2) ==18697== by 0x433F798: hci_read_remote_name (in /usr/lib/libbluetooth.so.2.9.2) ==18697== by 0x40A464B: bluetooth_checkdevice (bluez.c:114) ==18697== by 0x40A4B26: bluetooth_findchannel (bluez.c:227) ==18697== by 0x40A4DB8: bluetooth_findrfchannel (bluetoth.c:48) ==18697== by 0x4069A79: GSM_InitConnection (gsmstate.c:413) ==18697== by 0x80604E2: GSM_Init (common.c:265) ==18697== by 0x806E3C7: BackupSMS (backup.c:1540) ==18697== by 0x8081CCE: ProcessParameters (gammu.c:929) ==18697== by 0x8083511: main (gammu.c:1174) ==18697== ==18697== Conditional jump or move depends on uninitialised value(s) ==18697== at 0x433D65D: hci_send_req (in /usr/lib/libbluetooth.so.2.9.2) ==18697== by 0x433F6F8: hci_read_remote_name_with_clock_offset (in /usr/lib/libbluetooth.so.2.9.2) ==18697== by 0x433F798: hci_read_remote_name (in /usr/lib/libbluetooth.so.2.9.2) ==18697== by 0x40A464B: bluetooth_checkdevice (bluez.c:114) ==18697== by 0x40A4B26: bluetooth_findchannel (bluez.c:227) ==18697== by 0x40A4DB8: bluetooth_findrfchannel (bluetoth.c:48) ==18697== by 0x4069A79: GSM_InitConnection (gsmstate.c:413) ==18697== by 0x80604E2: GSM_Init (common.c:265) ==18697== by 0x806E3C7: BackupSMS (backup.c:1540) ==18697== by 0x8081CCE: ProcessParameters (gammu.c:929) ==18697== by 0x8083511: main (gammu.c:1174) Delete each sms after backup? (yes/no/ALL/ONLY/NONE) NONE ==18697== ==18697== Conditional jump or move depends on uninitialised value(s) ==18697== at 0x44595E0: __strcat_chk (strcat_chk.c:41) ==18697== by 0x806E4D0: BackupSMS (string3.h:145) ==18697== by 0x8081CCE: ProcessParameters (gammu.c:929) ==18697== by 0x8083511: main (gammu.c:1174) Backup sms from folder "Inbox" (SIM)? (yes/no/ALL/ONLY/NONE) NO (always) Backup sms from folder "Outbox" (SIM)? (yes/no/ALL/ONLY/NONE) NO (always) Backup sms from folder "Inbox"? (yes/no/ALL/ONLY/NONE) NO (always) Backup sms from folder "Outbox"? (yes/no/ALL/ONLY/NONE) NO (always) ==18697== ==18697== Conditional jump or move depends on uninitialised value(s) ==18697== at 0x402628D: __memcpy_chk (mc_replace_strmem.c:721) ==18697== by 0x4071DAC: GetLineString (string3.h:52) ==18697== by 0x40B06D0: ATGEN_DispatchMessage (atgen.c:840) ==18697== by 0x40C4685: ATOBEX_DispatchMessage (atobex.c:238) ==18697== by 0x40A6853: AT_StateMachine (at.c:110) ==18697== by 0x4068652: GSM_ReadDevice (gsmstate.c:569) ==18697== by 0x40686AA: GSM_WaitForOnce (gsmstate.c:635) ==18697== by 0x406882F: GSM_WaitFor (gsmstate.c:676) ==18697== by 0x40ACFE1: ATGEN_GetSMSList (atgen.c:2515) ==18697== by 0x40B01BD: ATGEN_GetNextSMS (atgen.c:2570) ==18697== by 0x40C58B6: ATOBEX_GetNextSMS (atobex.c:336) ==18697== by 0x406EBC7: GSM_GetNextSMS (api.c:628) **18697** *** memcpy_chk: buffer overflow detected ***: program terminated ==18697== at 0x4026024: VALGRIND_PRINTF_BACKTRACE (valgrind.h:3695) ==18697== by 0x402637D: __memcpy_chk (mc_replace_strmem.c:721) ==18697== by 0x4071DAC: GetLineString (string3.h:52) ==18697== by 0x40B06D0: ATGEN_DispatchMessage (atgen.c:840) ==18697== by 0x40C4685: ATOBEX_DispatchMessage (atobex.c:238) ==18697== by 0x40A6853: AT_StateMachine (at.c:110) ==18697== by 0x4068652: GSM_ReadDevice (gsmstate.c:569) ==18697== by 0x40686AA: GSM_WaitForOnce (gsmstate.c:635) ==18697== by 0x406882F: GSM_WaitFor (gsmstate.c:676) ==18697== by 0x40ACFE1: ATGEN_GetSMSList (atgen.c:2515) ==18697== by 0x40B01BD: ATGEN_GetNextSMS (atgen.c:2570) ==18697== by 0x40C58B6: ATOBEX_GetNextSMS (atobex.c:336) ==18697== ==18697== ERROR SUMMARY: 56 errors from 4 contexts (suppressed: 27 from 1) ==18697== malloc/free: in use at exit: 3,390,595 bytes in 23 blocks. ==18697== malloc/free: 260,125 allocs, 260,102 frees, 33,351,186,707 bytes allocated. ==18697== For counts of detected errors, rerun with: -v ==18697== searching for pointers to 23 not-freed blocks. ==18697== checked 4,193,216 bytes. ==18697== ==18697== LEAK SUMMARY: ==18697== definitely lost: 0 bytes in 0 blocks. ==18697== possibly lost: 0 bytes in 0 blocks. ==18697== still reachable: 3,390,595 bytes in 23 blocks. ==18697== suppressed: 0 bytes in 0 blocks. ==18697== Rerun with --leak-check=full to see details of leaked memory.