baboom09 / sma-bluetooth

Automatically exported from code.google.com/p/sma-bluetooth
0 stars 0 forks source link

glibc detected *** ./smatool: double free or corruption (top): #66

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. execute smatool
2.
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Linux debian 3.2.0-1-686-pae #1 SMP Fri Feb 17 06:27:21 UTC 2012 i686 GNU/Linux

Please provide any additional information below.

Hello with the new version i can´t start

root@debian:/home/sma-bluetooth# ./smatool -v

 Error ! not all codes set
*** glibc detected *** ./smatool: double free or corruption (top): 0x09e80038 
***
======= Backtrace: =========
/lib/i386-linux-gnu/i686/cmov/libc.so.6(+0x6e221)[0xb73ec221]
/lib/i386-linux-gnu/i686/cmov/libc.so.6(+0x6fa88)[0xb73eda88]
/lib/i386-linux-gnu/i686/cmov/libc.so.6(cfree+0x6d)[0xb73f0b3d]
/lib/i386-linux-gnu/i686/cmov/libc.so.6(fclose+0x14a)[0xb73dc6da]
./smatool[0x804d827]
./smatool[0x804e855]
/lib/i386-linux-gnu/i686/cmov/libc.so.6(__libc_start_main+0xe6)[0xb7394e46]
./smatool[0x8049281]
======= Memory map: ========
08048000-08056000 r-xp 00000000 08:01 1271253    
/opt/lampp/htdocs/smatool/test/sma-bluetooth/smatool
08056000-08057000 rw-p 0000e000 08:01 1271253    
/opt/lampp/htdocs/smatool/test/sma-bluetooth/smatool
09e80000-09ea1000 rw-p 00000000 00:00 0          [heap]
b6bd5000-b6bf1000 r-xp 00000000 08:01 29958375   
/lib/i386-linux-gnu/libgcc_s.so.1
b6bf1000-b6bf2000 rw-p 0001b000 08:01 29958375   
/lib/i386-linux-gnu/libgcc_s.so.1
b6c00000-b6c21000 rw-p 00000000 00:00 0 
b6c21000-b6d00000 ---p 00000000 00:00 0 
b6d0d000-b6d11000 rw-p 00000000 00:00 0 
b6d11000-b6d21000 r-xp 00000000 08:01 52920921   
/usr/lib/i386-linux-gnu/libp11-kit.so.0.0.0
b6d21000-b6d22000 r--p 00010000 08:01 52920921   
/usr/lib/i386-linux-gnu/libp11-kit.so.0.0.0
b6d22000-b6d23000 rw-p 00011000 08:01 52920921   
/usr/lib/i386-linux-gnu/libp11-kit.so.0.0.0
b6d23000-b6d33000 r-xp 00000000 08:01 52921585   
/usr/lib/i386-linux-gnu/libtasn1.so.3.1.13
b6d33000-b6d34000 rw-p 0000f000 08:01 52921585   
/usr/lib/i386-linux-gnu/libtasn1.so.3.1.13
b6d34000-b6d37000 r-xp 00000000 08:01 29958157   
/lib/i386-linux-gnu/libgpg-error.so.0.8.0
b6d37000-b6d38000 rw-p 00002000 08:01 29958157   
/lib/i386-linux-gnu/libgpg-error.so.0.8.0
b6d38000-b6d3b000 r-xp 00000000 08:01 29958218   
/lib/i386-linux-gnu/libkeyutils.so.1.4
b6d3b000-b6d3c000 rw-p 00002000 08:01 29958218   
/lib/i386-linux-gnu/libkeyutils.so.1.4
b6d3c000-b6d3d000 rw-p 00000000 00:00 0 
b6d3d000-b6d44000 r-xp 00000000 08:01 52921577   
/usr/lib/i386-linux-gnu/libkrb5support.so.0.1
b6d44000-b6d45000 r--p 00006000 08:01 52921577   
/usr/lib/i386-linux-gnu/libkrb5support.so.0.1
b6d45000-b6d46000 rw-p 00007000 08:01 52921577   
/usr/lib/i386-linux-gnu/libkrb5support.so.0.1
b6d46000-b6d49000 r-xp 00000000 08:01 29958221   
/lib/i386-linux-gnu/libcom_err.so.2.1
b6d49000-b6d4a000 r--p 00002000 08:01 29958221   
/lib/i386-linux-gnu/libcom_err.so.2.1
b6d4a000-b6d4b000 rw-p 00003000 08:01 29958221   
/lib/i386-linux-gnu/libcom_err.so.2.1
b6d4b000-b6d71000 r-xp 00000000 08:01 52921573   
/usr/lib/i386-linux-gnu/libk5crypto.so.3.1
b6d71000-b6d72000 ---p 00026000 08:01 52921573   
/usr/lib/i386-linux-gnu/libk5crypto.so.3.1
b6d72000-b6d73000 r--p 00026000 08:01 52921573   
/usr/lib/i386-linux-gnu/libk5crypto.so.3.1
b6d73000-b6d74000 rw-p 00027000 08:01 52921573   
/usr/lib/i386-linux-gnu/libk5crypto.so.3.1
b6d74000-b6d75000 rw-p 00000000 00:00 0 
b6d75000-b6e40000 r-xp 00000000 08:01 52921575   
/usr/lib/i386-linux-gnu/libkrb5.so.3.3
b6e40000-b6e46000 r--p 000ca000 08:01 52921575   
/usr/lib/i386-linux-gnu/libkrb5.so.3.3
b6e46000-b6e47000 rw-p 000d0000 08:01 52921575   
/usr/lib/i386-linux-gnu/libkrb5.so.3.3
b6e47000-b6f09000 r-xp 00000000 08:01 52921581   
/usr/lib/i386-linux-gnu/libgnutls.so.26.21.9
b6f09000-b6f0e000 rw-p 000c1000 08:01 52921581   
/usr/lib/i386-linux-gnu/libgnutls.so.26.21.9
b6f0e000-b6f0f000 rw-p 00000000 00:00 0 
b6f0f000-b6f29000 r-xp 00000000 08:01 52920926   
/usr/lib/i386-linux-gnu/libsasl2.so.2.0.25
b6f29000-b6f2a000 r--p 00019000 08:01 52920926   
/usr/lib/i386-linux-gnu/libsasl2.so.2.0.25
b6f2a000-b6f2b000 rw-p 0001a000 08:01 52920926   
/usr/lib/i386-linux-gnu/libsasl2.so.2.0.25
b6f2b000-b6f3b000 r-xp 00000000 08:01 29958350   
/lib/i386-linux-gnu/i686/cmov/libresolv-2.13.so
b6f3b000-b6f3c000 r--p 00010000 08:01 29958350   
/lib/i386-linux-gnu/i686/cmov/libresolv-2.13.so
b6f3c000-b6f3d000 rw-p 00011000 08:01 29958350   
/lib/i386-linux-gnu/i686/cmov/libresolv-2.13.so
b6f3d000-b6f3f000 rw-p 00000000 00:00 0 
b6f3f000-b6fc1000 r-xp 00000000 08:01 29958471   
/lib/i386-linux-gnu/libgcrypt.so.11.7.0
b6fc1000-b6fc4000 rw-p 00081000 08:01 29958471   
/lib/i386-linux-gnu/libgcrypt.so.11.7.0
b6fc4000-b6fd7000 r-xp 00000000 08:01 29958358   
/lib/i386-linux-gnu/i686/cmov/libnsl-2.13.so
b6fd7000-b6fd8000 r--p 00012000 08:01 29958358   
/lib/i386-linux-gnu/i686/cmov/libnsl-2.13.so
b6fd8000-b6fd9000 rw-p 00013000 08:01 29958358   
/lib/i386-linux-gnu/i686/cmov/libnsl-2.13.so
b6fd9000-b6fdb000 rw-p 00000000 00:00 0 
b6fdb000-b6fe4000 r-xp 00000000 08:01 29958169   
/lib/i386-linux-gnu/i686/cmov/libcrypt-2.13.so
b6fe4000-b6fe5000 r--p 00008000 08:01 29958169   
/lib/i386-linux-gnu/i686/cmov/libcrypt-2.13.so
b6fe5000-b6fe6000 rw-p 00009000 08:01 29958169   
/lib/i386-linux-gnu/i686/cmov/libcrypt-2.13.so
b6fe6000-b700e000 rw-p 00000000 00:00 0 
b700e000-b7027000 r-xp 00000000 08:01 52922170   
/usr/lib/i386-linux-gnu/librtmp.so.0
b7027000-b7028000 rw-p 00018000 08:01 52922170   
/usr/lib/i386-linux-gnu/librtmp.so.0
b7028000-b702a000 r-xp 00000000 08:01 29958344   
/lib/i386-linux-gnu/i686/cmov/libdl-2.13.so
b702a000-b702b000 r--p 00001000 08:01 29958344   
/lib/i386-linux-gnu/i686/cmov/libdl-2.13.so
b702b000-b702c000 rw-p 00002000 08:01 29958344   
/lib/i386-linux-gnu/i686/cmov/libdl-2.13.so
b702c000-b7041000 r-xp 00000000 08:01 29958159   
/lib/i386-linux-gnu/i686/cmov/libpthread-2.13.so
b7041000-b7042000 r--p 00014000 08:01 29958159   
/lib/i386-linux-gnu/i686/cmov/libpthread-2.13.so
b7042000-b7043000 rw-p 00015000 08:01 29958159   
/lib/i386-linux-gnu/i686/cmov/libpthread-2.13.so
b7043000-b7045000 rw-p 00000000 00:00 0 
b7045000-b7080000 r-xp 00000000 08:01 52920733   
/usr/lib/i386-linux-gnu/libnspr4.so.0d
b7080000-b7081000 r--p 0003a000 08:01 52920733   
/usr/lib/i386-linux-gnu/libnspr4.so.0d
b7081000-b7082000 rw-p 0003b000 08:01 52920733   
/usr/lib/i386-linux-gnu/libnspr4.so.0d
b7082000-b7084000 rw-p 00000000 00:00 0 
b7084000-b7088000 r-xp 00000000 08:01 52920732   
/usr/lib/i386-linux-gnu/libplc4.so.0d
b7088000-b7089000 r--p 00003000 08:01 52920732   
/usr/lib/i386-linux-gnu/libplc4.so.0d
b7089000-b708a000 rw-p 00004000 08:01 52920732   
/usr/lib/i386-linux-gnu/libplc4.so.0d
b708a000-b708b000 rw-p 00000000 00:00 0 
b708b000-b708e000 r-xp 00000000 08:01 52921233   
/usr/lib/i386-linux-gnu/libplds4.so.0d
b708e000-b708f000 r--p 00002000 08:01 52921233   
/usr/lib/i386-linux-gnu/libplds4.so.0d
b708f000-b7090000 rw-p 00003000 08:01 52921233   
/usr/lib/i386-linux-gnu/libplds4.so.0d
b7090000-b70c9000 r-xp 00000000 08:01 52921239   
/usr/lib/i386-linux-gnu/libssl3.so.1d
b70c9000-b70cc000 rw-p 00038000 08:01 52921239   
/usr/lib/i386-linux-gnu/libssl3.so.1d
b70cc000-b70f4000 r-xp 00000000 08:01 52922433   
/usr/lib/i386-linux-gnu/libsmime3.so.1d
b70f4000-b70f6000 rw-p 00027000 08:01 52922433   
/usr/lib/i386-linux-gnu/libsmime3.so.1d
b70f6000-b7110000 r-xp 00000000 08:01 52921242   
/usr/lib/i386-linux-gnu/libnssutil3.so.1d
b7110000-b7114000 rw-p 00019000 08:01 52921242   
/usr/lib/i386-linux-gnu/libnssutil3.so.1d
b7114000-b723a000 r-xp 00000000 08:01 52922415   
/usr/lib/i386-linux-gnu/libnss3.so.1d
b723a000-b723e000 rw-p 00126000 08:01 52922415   
/usr/lib/i386-linux-gnu/libnss3.so.1d
b723e000-b723f000 rw-p 00000000 00:00 0 
b723f000-b7255000 r-xp 00000000 08:01 52920852   
/usr/lib/i386-linux-gnu/libz.so.1.2.6
b7255000-b7256000 rw-p 00015000 08:01 52920852   
/usr/lib/i386-linux-gnu/libz.so.1.2.6
b7256000-b7292000 r-xp 00000000 08:01 52921571   
/usr/lib/i386-linux-gnu/libgssapi_krb5.so.2.2
b7292000-b7293000 r--p 0003c000 08:01 52921571   
/usr/lib/i386-linux-gnu/libgssapi_krb5.so.2.2
b7293000-b7294000 rw-p 0003d000 08:01 52921571   
/usr/lib/i386-linux-gnu/libgssapi_krb5.so.2.2
b7294000-b729b000 r-xp 00000000 08:01 29958372   
/lib/i386-linux-gnu/i686/cmov/librt-2.13.so
b729b000-b729c000 r--p 00006000 08:01 29958372   
/lib/i386-linux-gnu/i686/cmov/librt-2.13.so
b729c000-b729d000 rw-p 00007000 08:01 29958372   
/lib/i386-linux-gnu/i686/cmov/librt-2.13.so
b729d000-b72eb000 r-xp 00000000 08:01 52920327   
/usr/lib/i386-linux-gnu/libldap_r-2.4.so.2.8.1
b72eb000-b72ec000 r--p 0004d000 08:01 52920327   
/usr/lib/i386-linux-gnu/libldap_r-2.4.so.2.8.1
b72ec000-b72ed000 rw-p 0004e000 08:01 52920327   
/usr/lib/i386-linux-gnu/libldap_r-2.4.so.2.8.1
b72ed000-b72ee000 rw-p 00000000 00:00 0 
b72ee000-b72fb000 r-xp 00000000 08:01 52921592   
/usr/lib/i386-linux-gnu/liblber-2.4.so.2.8.1
b72fb000-b72fc000 r--p 0000d000 08:01 52921592   
/usr/lib/i386-linux-gnu/liblber-2.4.so.2.8.1
b72fc000-b72fd000 rw-p 0000e000 08:01 52921592   
/usr/lib/i386-linux-gnu/liblber-2.4.so.2.8.1
b72fd000-b72fe000 rw-p 00000000 00:00 0 
b72fe000-b7324000 r-xp 00000000 08:01 52867650   /usr/lib/libssh2.so.1.0.1
b7324000-b7325000 rw-p 00025000 08:01 52867650   /usr/lib/libssh2.so.1.0.1
b7325000-b7357000 r-xp 00000000 08:01 52920696   
/usr/lib/i386-linux-gnu/libidn.so.11.6.6
b7357000-b7358000 rw-p 00032000 08:01 52920696   
/usr/lib/i386-linux-gnu/libidn.so.11.6.6
b7358000-b737c000 r-xp 00000000 08:01 29958356   
/lib/i386-linux-gnu/i686/cmov/libm-2.13.so
b737c000-b737d000 r--p 00023000 08:01 29958356   
/lib/i386-linux-gnu/i686/cmov/libm-2.13.so
b737d000-b737e000 rw-p 00024000 08:01 29958356   
/lib/i386-linux-gnu/i686/cmov/libm-2.13.so
b737e000-b74d4000 r-xp 00000000 08:01 29958363   
/lib/i386-linux-gnu/i686/cmov/libc-2.13.so
b74d4000-b74d5000 ---p 00156000 08:01 29958363   
/lib/i386-linux-gnu/i686/cmov/libc-2.13.so
b74d5000-b74d7000 r--p 00156000 08:01 29958363   
/lib/i386-linux-gnu/i686/cmov/libc-2.13.so
b74d7000-b74d8000 rw-p 00158000 08:01 29958363   
/lib/i386-linux-gnu/i686/cmov/libc-2.13.so
b74d8000-b74db000 rw-p 00000000 00:00 0 
b74db000-b7687000 r-xp 00000000 08:01 52865247   
/usr/lib/libmysqlclient.so.16.0.0
b7687000-b768b000 r--p 001ab000 08:01 52865247   
/usr/lib/libmysqlclient.so.16.0.0
b768b000-b76d0000 rw-p 001af000 08:01 52865247   
/usr/lib/libmysqlclient.so.16.0.0
b76d0000-b76d2000 rw-p 00000000 00:00 0 
b76d2000-b773a000 r-xp 00000000 08:01 52922390   
/usr/lib/i386-linux-gnu/libcurl-nss.so.4.2.0
b773a000-b773b000 ---p 00068000 08:01 52922390   
/usr/lib/i386-linux-gnu/libcurl-nss.so.4.2.0
b773b000-b773d000 r--p 00068000 08:01 52922390   
/usr/lib/i386-linux-gnu/libcurl-nss.so.4.2.0
b773d000-b773e000 rw-p 0006a000 08:01 52922390   
/usr/lib/i386-linux-gnu/libcurl-nss.so.4.2.0
b773e000-b7756000 r-xp 00000000 08:01 52921183   
/usr/lib/i386-linux-gnu/libbluetooth.so.3.11.5
b7756000-b7758000 rw-p 00018000 08:01 52921183   
/usr/lib/i386-linux-gnu/libbluetooth.so.3.11.5
b7765000-b7768000 rw-p 00000000 00:00 0 
b7768000-b7769000 r-xp 00000000 00:00 0          [vdso]
b7769000-b7784000 r-xp 00000000 08:01 37019671   /lib/i386-linux-gnu/ld-2.13.so
b7784000-b7785000 r--p 0001b000 08:01 37019671   /lib/i386-linux-gnu/ld-2.13.so
b7785000-b7786000 rw-p 0001c000 08:01 37019671   /lib/i386-linux-gnu/ld-2.13.so
bf84f000-bf870000 rw-p 00000000 00:00 0          [stack]
Abgebrochen

Original issue reported on code.google.com by marco.ha...@googlemail.com on 17 Mar 2012 at 3:16

GoogleCodeExporter commented 8 years ago
Hello,

I had the same issue. It seems to appear since version 0.15. So try to compile 
the verson 0.14. 
BTW, my system:

D-LINK DNS-323 NAS, Firmware 1.10,
debnas installed (standallone debian installation  without fonz_fun_plug),
bluetooth of course.

Original comment by christop...@googlemail.com on 18 Apr 2012 at 9:28

GoogleCodeExporter commented 8 years ago
Same type of problem for me.

My system is:  NSLU2 running Debian (Linux nslu2 2.6.26-2-ixp4xx #1 Mon Sep 19 
09:19:39 UTC 2011 armv5tel GNU/Linux)

I'm stuck with version 0.14 too (happy with it BTW)

Cheers

Original comment by cardini....@gmail.com on 29 Apr 2012 at 9:19

GoogleCodeExporter commented 8 years ago
As already suggested here: 
http://code.google.com/p/sma-bluetooth/issues/detail?id=62

this command:  echo 3 > /proc/cpu/alignment

allow this version of the program to run without a crash.

Original comment by cardini....@gmail.com on 9 Jun 2012 at 10:23

GoogleCodeExporter commented 8 years ago
Additional info: I can also run version 0.17b in this way

Original comment by cardini....@gmail.com on 9 Jun 2012 at 10:29

GoogleCodeExporter commented 8 years ago
In issue 132 I've added a patch to solve this error.

Right after the error "Error ! not all codes set" appears, a filehandle was 
closed for the second time. That caused this error.

The error only appears when your inverter wasn't found in the invcode.in.

So you could reproduce the error always with:

./smatool -i XXXXXXXXXX

Original comment by jer...@vd-meer.net on 15 May 2014 at 9:15