Comments (4)
trying to debug this further, again running with -d1 runs for some minutes and then:
TC: chg edge entry 193.238.156.128 > 193.238.159.240, cost (1.000/1.000) 1.000
Received signal Segmentation fault - shutting down
Deleting all routes...
RIB: del prefix 78.41.113.2/32 from 78.41.113.2
...
TC: del edge entry 193.238.158.254 > 78.41.113.201, cost (1.000/1.000) 1.000
Closing sockets...
*** glibc detected *** /usr/sbin/olsrd: double free or corruption (out): 0x004a5280 ***
Received signal Aborted - shutting down
^CReceived signal Interrupt - shutting down
and again running in gdb, running less than a minute:
TC: chg edge entry 78.41.112.70 > 193.238.159.100, cost (1.000/1.000) 1.000
Program received signal SIGPIPE, Broken pipe.
0x77e93d78 in send () from /lib/mipsel-linux-gnu/libc.so.6
(gdb) bt
#0 0x77e93d78 in send () from /lib/mipsel-linux-gnu/libc.so.6
#1 0x77d304e4 in write_data (unused=0x0) at olsrd_info.c:377
#2 0x00459cbc in walk_timers (last_run=0x4a59c0) at src/scheduler.c:711
#3 0x004593a0 in olsr_scheduler () at src/scheduler.c:559
#4 0x0043c9f4 in main (argc=7, argv=0x7fffe914) at src/main.c:775
(gdb)
typically i use http/txt/json info plugins on default ports open to everybody (0.0.0.0).
this all does happen as soon as i use txtinfo and/or jsoninfo plugins.
using only httpinfo plugin there are no issues it seems. at least its running for much longer.
using gdb it reproduces the issue within a minute always with the same message.
without gdb, just by using switch -d1 i get different messages after it was running for several minutes.
maybe it still has something to do with #44 ?
from olsrd.
can you run a debug build with valgrind?
from olsrd.
the devices, where we run olsrd, are ubiquiti edgerouter x series with mipsel cpu, running debian (7.11 wheezy; jessie support is in the works but wont be released soon it seems)
so i checked debians package repository for wheezy and there is no valgrind build for mips/mipsel:
https://packages.debian.org/wheezy/valgrind
i tried the one from debian jessie (8.10) though but:
dpkg: dependency problems prevent configuration of valgrind:
valgrind depends on libc6 (>= 2.16); however:
Version of libc6:mipsel on system is 2.13-38+deb7u11.
then i took the recent source of valgrind and tried crosscompiling it like i do with olsrd, but that fails with:
priv/guest_mips_helpers.c: In function ‘mips_dirtyhelper_rdhwr’:
priv/guest_mips_helpers.c:439: error: expected string literal before ‘)’ token
priv/guest_mips_helpers.c:443: error: expected string literal before ‘)’ token
priv/guest_mips_helpers.c:447: error: expected string literal before ‘)’ token
priv/guest_mips_helpers.c:451: error: expected string literal before ‘)’ token
priv/guest_mips_helpers.c:455: error: expected string literal before ‘)’ token
make[3]: *** [priv/libvex_mips32_linux_a-guest_mips_helpers.o] Error 1
so actually i would say, i cant run valgrind... any suggestions?
edit:
from valgrind README.mips
Limitations
-----------
- Some gdb tests will fail when gdb (GDB) older than 7.5 is used and gdb is
not compiled with '--with-expat=yes'.
- You can not compile tests for DSP ASE if you are using gcc (GCC) older
then 4.6.1 due to a bug in the toolchain.
- Older GCC may have issues with some inline assembly blocks. Get a toolchain
based on newer GCC versions, if possible.
on router running olsrd:
onetrix@test-router:~$ gdb --version
GNU gdb (GDB) 7.4.1-debian
crosscompile toolchain used:
onetrix@debian7dev:~/valgrind/valgrind-3.13.0$ $CC --version
mipsel-linux-gnu-gcc (Debian 4.4.5-8) 4.4.5
from olsrd.
Closing since this issue is not updated for quite some time. OLSRd running here on many ER-X currently without know issues. If you do have a recent report or insight feel free to reopen.
from olsrd.
Related Issues (20)
- dh_installdocs: Cannot find (any matches for) "lib/mdns/README" (tried in .) HOT 1
- Update or migrate to new libgps versions required? HOT 4
- AREDN network storms: What they look like, how they happen, and how to prevent them HOT 10
- OLSR Mailinglist Down HOT 12
- Memory leak in remove_interface function?
- crash on shutdown (on OpenWrt) HOT 1
- Nameservice, Scheduler: Jitter-option can postpone actions a *very* long time
- request a new release HOT 2
- supporting gpsd 3.25 HOT 2
- PacketHistory.c:157: PacketCrc32: Assertion `len > 0' failed
- gpsd v3.19's function gps_read() has changed causing olsrd to fail HOT 1
- useless 'continue;' in mpr.c? HOT 1
- Running multiple instances of OLSRD??? to handle different latency cutoffs, on RF vs ISP hop links. HOT 6
- fails to add tunnel as it already exists - Smartgateway fails HOT 6
- olsrd_gyn_gw: possible memory leak in finish function
- gpsdclient.c:373:20: error: 'struct gps_fix_t' has no member named 'status'; HOT 3
- olsr.org - 0.9.8-git_0000000-hash_10144e50aca230a4127a3772519ad24e detaching from the current process... HOT 4
- Cannot get hops to show using traceroute - Running on Raspberry Pi HOT 3
- Compiling Warning
- Compiling with glibc results in error HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from olsrd.