Arduino crash javy przy właczonym modemie 3g/umts


(foreste) #1

Witam

mam nie typowy błąd z z arduino i modemem 3g/umts

jak jestem połaczony java zalicza crash

[foreste@dom arduino-1.0.3]$ arduino

Experimental: JNI_OnLoad called.

Stable Library

=========================================

Native lib Version = RXTX-2.1-7

Java lib Version = RXTX-2.1-7

***buffer overflow detected*** : java terminated

======= Backtrace: =========

/usr/lib/libc.so.6(__fortify_fail+0x37)[0x7ff1a2502e77]

/usr/lib/libc.so.6(+0xf9080)[0x7ff1a2501080]

/usr/lib/libc.so.6(+0xf85a9)[0x7ff1a25005a9]

/usr/lib/libc.so.6(_IO_default_xsputn+0x89)[0x7ff1a247e189]

/usr/lib/libc.so.6(_IO_vfprintf+0x4303)[0x7ff1a24525b3]

/usr/lib/libc.so.6(__vsprintf_chk+0x88)[0x7ff1a2500638]

/usr/lib/libc.so.6(__sprintf_chk+0x7d)[0x7ff1a250058d]

/usr/share/arduino/lib/librxtxSerial.so(fhs_lock+0x17a)[0x7ff1512d40ba]

/usr/share/arduino/lib/librxtxSerial.so(Java_gnu_io_RXTXCommDriver_testRead+0x65)[0x7ff1512d4dc5]

[0x7ff199011f90]

======= Memory map: ========

00400000-00401000 r-xp 00000000 08:05 1321602 /opt/java/bin/java

00600000-00601000 rw-p 00000000 08:05 1321602 /opt/java/bin/java

012fa000-0131b000 rw-p 00000000 00:00 0 [heap]

dba00000-dcec0000 rw-p 00000000 00:00 0 

dcec0000-e0c00000 rw-p 00000000 00:00 0 

e0c00000-e20e0000 rw-p 00000000 00:00 0 

e20e0000-f5960000 rw-p 00000000 00:00 0 

f5960000-f63c0000 rw-p 00000000 00:00 0 

f63c0000-100000000 rw-p 00000000 00:00 0 

7ff144000000-7ff144021000 rw-p 00000000 00:00 0 

7ff144021000-7ff148000000 ---p 00000000 00:00 0 

7ff148000000-7ff148021000 rw-p 00000000 00:00 0 

7ff148021000-7ff14c000000 ---p 00000000 00:00 0 

7ff14c000000-7ff14c021000 rw-p 00000000 00:00 0 

7ff14c021000-7ff150000000 ---p 00000000 00:00 0 

7ff1512ce000-7ff1512dc000 r-xp 00000000 08:05 790498 /usr/share/arduino/lib/librxtxSerial.so

7ff1512dc000-7ff1514db000 ---p 0000e000 08:05 790498 /usr/share/arduino/lib/librxtxSerial.so

7ff1514db000-7ff1514dc000 r--p 0000d000 08:05 790498 /usr/share/arduino/lib/librxtxSerial.so

7ff1514dc000-7ff1514dd000 rw-p 0000e000 08:05 790498 /usr/share/arduino/lib/librxtxSerial.so

7ff1514dd000-7ff1514e0000 ---p 00000000 00:00 0 

7ff1514e0000-7ff1515de000 rw-p 00000000 00:00 0 [stack]

7ff1515de000-7ff151646000 r-xp 00000000 08:05 1570941 /opt/java/jre/lib/amd64/libt2k.so

7ff151646000-7ff151845000 ---p 00068000 08:05 1570941 /opt/java/jre/lib/amd64/libt2k.so

7ff151845000-7ff15184c000 rw-p 00067000 08:05 1570941 /opt/java/jre/lib/amd64/libt2k.so

7ff15184c000-7ff15185c000 rw-p 00000000 00:00 0 

7ff15185c000-7ff15185f000 ---p 00000000 00:00 0 

7ff15185f000-7ff15195d000 rw-p 00000000 00:00 0 [stack]

7ff15195d000-7ff151960000 r-xp 00000000 08:05 3934731 /usr/lib/libnss_myhostname.so.2

7ff151960000-7ff151b5f000 ---p 00003000 08:05 3934731 /usr/lib/libnss_myhostname.so.2

7ff151b5f000-7ff151b60000 r--p 00002000 08:05 3934731 /usr/lib/libnss_myhostname.so.2

7ff151b60000-7ff151b61000 rw-p 00003000 08:05 3934731 /usr/lib/libnss_myhostname.so.2

7ff151b61000-7ff151b66000 r-xp 00000000 08:05 3926678 /usr/lib/libnss_dns-2.17.so

7ff151b66000-7ff151d65000 ---p 00005000 08:05 3926678 /usr/lib/libnss_dns-2.17.so

7ff151d65000-7ff151d66000 r--p 00004000 08:05 3926678 /usr/lib/libnss_dns-2.17.so

7ff151d66000-7ff151d67000 rw-p 00005000 08:05 3926678 /usr/lib/libnss_dns-2.17.so

7ff151d67000-7ff151dc6000 r-xp 00000000 08:05 1570912 /opt/java/jre/lib/amd64/libfontmanager.so

7ff151dc6000-7ff151fc6000 ---p 0005f000 08:05 1570912 /opt/java/jre/lib/amd64/libfontmanager.so

7ff151fc6000-7ff151fca000 rw-p 0005f000 08:05 1570912 /opt/java/jre/lib/amd64/libfontmanager.so

7ff151fca000-7ff151fdb000 rw-p 00000000 00:00 0 

7ff151fdb000-7ff15211a000 r-xp 00000000 08:05 289772 /usr/lib/gtk-2.0/2.10.0/engines/liboxygen-gtk.so

7ff15211a000-7ff152319000 ---p 0013f000 08:05 289772 /usr/lib/gtk-2.0/2.10.0/engines/liboxygen-gtk.so

7ff152319000-7ff15231f000 r--p 0013e000 08:05 289772 /usr/lib/gtk-2.0/2.10.0/engines/liboxygen-gtk.so

7ff15231f000-7ff152322000 rw-p 00144000 08:05 289772 /usr/lib/gtk-2.0/2.10.0/engines/liboxygen-gtk.so

7ff152322000-7ff152323000 rw-p 00000000 00:00 0 

7ff152323000-7ff152329000 r-xp 00000000 08:05 3952619 /usr/lib/libogg.so.0.8.0

7ff152329000-7ff152528000 ---p 00006000 08:05 3952619 /usr/lib/libogg.so.0.8.0

7ff152528000-7ff152529000 rw-p 00005000 08:05 3952619 /usr/lib/libogg.so.0.8.0

7ff152529000-7ff152555000 r-xp 00000000 08:05 3952652 /usr/lib/libvorbis.so.0.4.6

7ff152555000-7ff152754000 ---p 0002c000 08:05 3952652 /usr/lib/libvorbis.so.0.4.6

7ff152754000-7ff152755000 r--p 0002b000 08:05 3952652 /usr/lib/libvorbis.so.0.4.6

7ff152755000-7ff152756000 rw-p 0002c000 08:05 3952652 /usr/lib/libvorbis.so.0.4.6

7ff152756000-7ff15275f000 r-xp 00000000 08:05 3947751 /usr/lib/libltdl.so.7.3.0

7ff15275f000-7ff15295e000 ---p 00009000 08:05 3947751 /usr/lib/libltdl.so.7.3.0

7ff15295e000-7ff15295f000 r--p 00008000 08:05 3947751 /usr/lib/libltdl.so.7.3.0

7ff15295f000-7ff152960000 rw-p 00009000 08:05 3947751 /usr/lib/libltdl.so.7.3.0

7ff152960000-7ff152971000 r-xp 00000000 08:05 3952855 /usr/lib/libtdb.so.1.2.11

7ff152971000-7ff152b71000 ---p 00011000 08:05 3952855 /usr/lib/libtdb.so.1.2.11

7ff152b71000-7ff152b72000 r--p 00011000 08:05 3952855 /usr/lib/libtdb.so.1.2.11

7ff152b72000-7ff152b73000 rw-p 00012000 08:05 3952855 /usr/lib/libtdb.so.1.2.11

7ff152b73000-7ff152b7a000 r-xp 00000000 08:05 3952654 /usr/lib/libvorbisfile.so.3.3.5

7ff152b7a000-7ff152d7a000 ---p 00007000 08:05 3952654 /usr/lib/libvorbisfile.so.3.3.5

7ff152d7a000-7ff152d7b000 r--p 00007000 08:05 3952654 /usr/lib/libvorbisfile.so.3.3.5

7ff152d7b000-7ff152d7c000 rw-p 00008000 08:05 3952654 /usr/lib/libvorbisfile.so.3.3.5

7ff152d7c000-7ff152d8c000 r-xp 00000000 08:05 3961231 /usr/lib/libcanberra.so.0.2.5

7ff152d8c000-7ff152f8b000 ---p 00010000 08:05 3961231 /usr/lib/libcanberra.so.0.2.5

7ff152f8b000-7ff152f8c000 r--p 0000f000 08:05 3961231 /usr/lib/libcanberra.so.0.2.5

7ff152f8c000-7ff152f8d000 rw-p 00010000 08:05 3961231 /usr/lib/libcanberra.so.0.2.5

7ff152f8d000-7ff152f91000 r-xp 00000000 08:05 3961233 /usr/lib/libcanberra-gtk.so.0.1.9/usr/share/arduino/arduino: line 22: 992 Przerwane (core dumped) java -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel processing.app.Base "$@"

ten problem występuje na systemie archlinux 64 bitowym i 32 i 64 bitowym arduinoide 1.0.4

przestaje crashowac jak wylacze połączenie z internetem w networkmanagerze

konfigurowałem arduino z wikiarchlinux

https://wiki.archlinux.org/index.php/Arduino.

System:

Archlinux 64bit

modem:

Huawei e173


(matiit) #2

Próbowałeś z innym dostawcą java-runtime?


(foreste) #3

Tak najpierw byl openjdk ale ten sam błąd :|.


(matiit) #4

To ja niestety nie wiem. Jedyny pomysł jaki mógłbym rzucić to przekompilowanie bibliotek arduino inną wersją kompilatora


(foreste) #5

Znalazłem rozważanie mojego problemu

1 Ściągamy jave 7 tar.gz i arduino wersji 32 bitowej dla linuxa

2 Rozpakowujemy arduino do folderu arduino potem rozpakowujemy jawe do folderu arduino tzn folder java musi być folderze z plikami arduino

wtedy na 64 bitowym systemie można programować przy internecie mobilnym bez zakłóceń :wink:.