[Olsr-dev] olsrd-v1 / crashes on LEDE

Ferry Huberts (spam-protected)
Mon Nov 21 16:49:05 CET 2016



On 21/11/16 16:48, Ferry Huberts wrote:
>
>
> On 21/11/16 16:33, Ufo wrote:
>> On 21.11.2016 15:43, Ferry Huberts wrote:
>>> please try master
>>>
>>> if that works, I'll start a new release
>>
>> I am already on lede master.
>> maybe you mean olsr-master instead of ledes olsr version? so i will try
>
>
> yes, olsr/master
>
> I'm already in the process of starting a new release after Simon

Basti, not Simon

> reported that olsr/master works for him.
>
>> to find a possibility for finding and compiling that.
>>
>> meanwhile i got another crash on the same device, same olsr-version, but
>> with different debug information:
>>
>>
>> [New LWP 1978]
>>
>> warning: Can't read pathname for load map: Unknown error -1.
>>
>> warning: Could not load shared library symbols for 6 libraries, e.g.
>> /lib/libgcc_s.so.1.
>> Use the "info sharedlibrary" command to see the complete listing.
>> Do you need "set solib-search-path" or "set sysroot"?
>> Core was generated by `/usr/sbin/olsrd -f /var/etc/olsrd.conf -nofork'.
>> Program terminated with signal SIGSEGV, Segmentation fault.
>> #0 olsr_calculate_lq_mpr () at src/lq_mpr.c:64
>> 64 neigh->was_mpr = neigh->is_mpr;
>> (gdb) bt
>> #0 olsr_calculate_lq_mpr () at src/lq_mpr.c:64
>> #1 0x004090ff in olsr_process_changes () at src/olsr.c:206
>> #2 <https://plan.leipzig.freifunk.net/issues/2> 0x004196f9 in
>> olsr_hello_tap (message=0x7fcab6f8, in_if=<optimized out>,
>> from_addr=<optimized out>) at src/process_package.c:491
>> #3 <https://plan.leipzig.freifunk.net/issues/3> 0x004199d5 in
>> olsr_input_hello (ser=<optimized out>, inif=0x8daa80, from=0x7fcab804)
>> at src/process_package.c:381
>> #4 <https://plan.leipzig.freifunk.net/issues/4> 0x0040cda5 in
>> parse_packet (olsr=<optimized out>, size=<optimized out>,
>> in_if=0x8daa80, from_addr=0x7fcab804) at src/parser.c:393
>> #5 <https://plan.leipzig.freifunk.net/issues/5> 0x0040cf69 in olsr_input
>> (fd=<optimized out>, data=<optimized out>, flags=<optimized out>) at
>> src/parser.c:496
>> #6 <https://plan.leipzig.freifunk.net/issues/6> 0x0040ae65 in
>> poll_sockets () at src/scheduler.c:341
>> #7 <https://plan.leipzig.freifunk.net/issues/7> 0x0040b89d in
>> olsr_scheduler () at src/scheduler.c:481
>> #8 <https://plan.leipzig.freifunk.net/issues/8> 0x004080e1 in main
>> (argc=1, argv=<optimized out>) at src/main.c:711
>> (gdb) bt full
>> #0 olsr_calculate_lq_mpr () at src/lq_mpr.c:64
>> /idx = <optimized out>
>> neigh2 = <optimized out>
>> walker = <optimized out>
>> k = <optimized out>
>> neigh = 0x30003
>> best = <optimized out>
>> best_1hop = <optimized out>
>> mpr_changes = false
>> #1 0x004090ff in olsr_process_changes () at src/olsr.c:206
>> tmp_pc_list = <optimized out>
>> #2 <https://plan.leipzig.freifunk.net/issues/2> 0x004196f9 in
>> olsr_hello_tap (message=0x7fcab6f8, in_if=<optimized out>,
>> from_addr=<optimized out>) at src/process_package.c:491
>> neighbor = 0x77818a00
>> lnk = <optimized out>
>> #3 <https://plan.leipzig.freifunk.net/issues/3> 0x004199d5 in
>> olsr_input_hello (ser=<optimized out>, inif=0x8daa80, from=0x7fcab804)
>> at src/process_package.c:381
>> hello = {vtime = 20000, htime = 2000, source_addr = {v4 = {s_addr =
>> 171798817}, v6 = {/_in6_union = {__s6_addr = "\n=q!", '\000' <repeats 11
>> times>, /s6_addr16 = {2621, 28961, 0, 0, 0, 0, 0, 0}, _/s6_addr32 =
>> {171798817, 0, 0, 0}}}}, packet_seq_number = 23401, hop_count = 0
>> '\000', ttl = 1 '\001', willingness = 3 '\003', neighbors = 0x9402c0}
>> #4 <https://plan.leipzig.freifunk.net/issues/4> 0x0040cda5 in
>> parse_packet (olsr=<optimized out>, size=<optimized out>,
>> in_if=0x8daa80, from_addr=0x7fcab804) at src/parser.c:393
>> forward = true
>> validated = true
>> m = 0x44b05c <inbuf_aligned+440>
>> count = 0
>> msgsize = 76
>> seqno = <optimized out>
>> entry = 0x77777590
>> packetparser = <optimized out>
>> #5 <https://plan.leipzig.freifunk.net/issues/5> 0x0040cf69 in olsr_input
>> (fd=<optimized out>, data=<optimized out>, flags=<optimized out>) at
>> src/parser.c:496
>> buf = {buf = '\000' <repeats 12 times>,
>> "\177ʹ\b\000\000\000\000w\202\022\260\000\000\020.\177ʹ\b\000\000\000\000w\202\022\260\000\000\020.\000"}
>>
>> from = {ss_family = 2,
>> __ss_padding = "\002\272\n=q!", '\000' <repeats 12 times>,
>> "\177ʹ\b\000\000\000\000w\202\022\260\000\000\000\004w\202\022\260\177ʹ\020w\202\022\260\177ʸ\300\177ʸ\300w\177L\b\000\000\000\000\177ʹ\b\000\000\000\000($\202\364w\202\022\260\177ʹ\bX3\v\211+!\207\205\000E\002P\000@\254\063\177ʹ\020\000A\322\337\177ʹ\b\000\nF\311\000E\002P\000@\254\021",
>>
>>
>> __ss_align = 1479740297}
>> fromlen = 16
>> cc = 516
>> olsr_in_if = 0x8daa80
>> from_addr = {v4 = {s_addr = 171798817}, v6 = {/_in6_union = {__s6_addr =
>> "\n=q!", '\000' <repeats 11 times>, __s6_addr16 = {2621, 28961, 0, 0, 0,
>> 0, 0, 0}, __s6_addr32 = {171798817, 0, 0, 0}}}}
>> entry = 0x0
>> packet = <optimized out>
>> #6 <https://plan.leipzig.freifunk.net/issues/6> 0x0040ae65 in
>> poll_sockets () at src/scheduler.c:341
>> flags = <optimized out>
>> _socket_node = <optimized out>
>> _next_socket_node = 0x8dabc4
>> n = <optimized out>
>> ibits = {fds_bits = {1024, 0 <repeats 31 times>}}
>> obits = {fds_bits = {0 <repeats 32 times>}}
>> tvp = {tv_sec = 0, tv_usec = 0}
>> hfd = 21
>> fdsets = <optimized out>
>> #7 <https://plan.leipzig.freifunk.net/issues/7> 0x0040b89d in
>> olsr_scheduler () at src/scheduler.c:481
>> next_interval = 294200
>> #8 <https://plan.leipzig.freifunk.net/issues/8> 0x004080e1 in main
>> (argc=1, argv=<optimized out>) at src/main.c:711
>> default_ifcnf = <optimized out>
>> conf_file_name = "/var/etc/olsrd.conf\000f", '\000' <repeats 4074 times>
>> loadedConfig = <optimized out>
>> i = <optimized out>
>> ifn = <optimized out>
>> __func/ = "main"
>> (gdb)
>>
>>
>>
>>
>>
>>>
>>> On 21/11/16 15:26, Ufo wrote:
>>>> On 03.10.2016 14:46, Ufo wrote:
>>>>> Am 01.09.16 um 16:21 schrieb Bastian Bittorf:
>>>>>> thanks, i will try to fix that.
>>>>> basti, how is it going?
>>>> even with lede from november i got errors.
>>>> so, every freifunk-meshnode has two olsr-crashes during startup, see
>>>> text below. after that, the device will work properly.
>>>>
>>>> on the end of the text a random (?) olsr-crash happened during normal
>>>> operation time (LWP1955)  , but gdb doesnt gives me useful information.
>>>>
>>>> ---
>>>>
>>>> (spam-protected):~# olsrd -v
>>>>
>>>>  *** olsr.org -
>>>> 0.9.0.3-git_12bd0f2-hash_aa6c047a3f5b687a69b49f114c005bd0 ***
>>>>  Build date: 2016-11-03 17:24:27 on freifunkvm
>>>> http://www.olsr.org
>>>>
>>>> (spam-protected):~# uname -a
>>>> Linux ffl-125-gisagturm-9-no 4.4.30 #0 Thu Nov 3 11:13:50 2016 mips
>>>> GNU/Linux
>>>>
>>>>
>>>>
>>>> [New LWP 1428]
>>>>
>>>> warning: Can't read pathname for load map: Unknown error -1.
>>>>
>>>> warning: Could not load shared library symbols for 6 libraries, e.g.
>>>> /lib/libgcc_s.so.1.
>>>> Use the "info sharedlibrary" command to see the complete listing.
>>>> Do you need "set solib-search-path" or "set sysroot"?
>>>> Core was generated by `/usr/sbin/olsrd -f /var/etc/olsrd.conf -nofork'.
>>>> Program terminated with signal SIGSEGV, Segmentation fault.
>>>> #0 0x7705bbcc in ?? ()
>>>> (gdb) bt
>>>> #0 0x7705bbcc in ?? ()
>>>> #1 0x0041a6ab in memcpy (__n=6, __os=0x42bbec, __od=0x76fe9ffc) at
>>>> /srv2/lede/lede-20161103/staging_dir/toolchain-mips_24kc_gcc-5.4.0_musl-1.1.15/include/fortify/string.h:51
>>>>
>>>>
>>>>
>>>> #2 olsr_cookie_malloc (ci=0x76fe9fc0) at src/olsr_cookie.c:257
>>>> #3 0x0040b655 in olsr_start_timer (rel_time=<optimized out>,
>>>> jitter_pct=5 '\005', periodical=false, cb_func=<optimized out>,
>>>> context=0x0, ci=0x76fe94d0) at src/scheduler.c:788
>>>> #4 0x76f6dbd7 in ?? ()
>>>> Backtrace stopped: frame did not save the PC
>>>> (gdb) bt full
>>>> #0 0x7705bbcc in ?? ()
>>>> No symbol table info available.
>>>> #1 0x0041a6ab in memcpy (__n=6, __os=0x42bbec, __od=0x76fe9ffc) at
>>>> /srv2/lede/lede-20161103/staging_dir/toolchain-mips_24kc_gcc-5.4.0_musl-1.1.15/include/fortify/string.h:51
>>>>
>>>>
>>>>
>>>> __bd = 4294967295
>>>> __bs = 7
>>>> __d = 0x76fe9ffc "cook"<error: Cannot access memory at address
>>>> 0x76fea000>
>>>> __s = 0x42bbec "cookie"
>>>> #2 olsr_cookie_malloc (ci=0x76fe9fc0) at src/olsr_cookie.c:257
>>>> ptr = 0x76fe9fd8
>>>> branding = 0x76fe9ffc
>>>> free_list_node = <optimized out>
>>>> #3 0x0040b655 in olsr_start_timer (rel_time=<optimized out>,
>>>> jitter_pct=5 '\005', periodical=false, cb_func=<optimized out>,
>>>> context=0x0, ci=0x76fe94d0) at src/scheduler.c:788
>>>> timer = <optimized out>
>>>> __func__ = "olsr_start_timer"
>>>> #4 0x76f6dbd7 in ?? ()
>>>> No symbol table info available.
>>>> Backtrace stopped: frame did not save the PC
>>>> (gdb)
>>>>
>>>>
>>>> ----
>>>>
>>>>
>>>> [New LWP 1814]
>>>>
>>>> warning: Can't read pathname for load map: Unknown error -1.
>>>>
>>>> warning: Could not load shared library symbols for 6 libraries, e.g.
>>>> /lib/libgcc_s.so.1.
>>>> Use the "info sharedlibrary" command to see the complete listing.
>>>> Do you need "set solib-search-path" or "set sysroot"?
>>>> Core was generated by `/usr/sbin/olsrd -f /var/etc/olsrd.conf -nofork'.
>>>> Program terminated with signal SIGSEGV, Segmentation fault.
>>>> #0 0x77c46534 in ?? ()
>>>> (gdb) bt
>>>> #0 0x77c46534 in ?? ()
>>>> #1 0x0040c92d in olsr_destroy_parser () at src/parser.c:105
>>>> #2 0x0a3d7d09 in ?? ()
>>>> Backtrace stopped: frame did not save the PC
>>>> (gdb) bt full
>>>> #0 0x77c46534 in ?? ()
>>>> No symbol table info available.
>>>> #1 0x0040c92d in olsr_destroy_parser () at src/parser.c:105
>>>> pe = <optimized out>
>>>> pe_next = 0x77c1d5f0
>>>> ppe = <optimized out>
>>>> ppe_next = <optimized out>
>>>> pae = <optimized out>
>>>> pae_next = <optimized out>
>>>> #2 0x0a3d7d09 in ?? ()
>>>> No symbol table info available.
>>>> Backtrace stopped: frame did not save the PC
>>>> (gdb)
>>>>
>>>> --
>>>>
>>>> [New LWP 1955]
>>>>
>>>> warning: Can't read pathname for load map: Unknown error -1.
>>>>
>>>> warning: Could not load shared library symbols for 6 libraries, e.g.
>>>> /lib/libgcc_s.so.1.
>>>> Use the "info sharedlibrary" command to see the complete listing.
>>>> Do you need "set solib-search-path" or "set sysroot"?
>>>> Core was generated by `/usr/sbin/olsrd -f /var/etc/olsrd.conf -nofork'.
>>>> Program terminated with signal SIGSEGV, Segmentation fault.
>>>> #0 0x7777e0a4 in ?? ()
>>>> (gdb) bt
>>>> #0 0x7777e0a4 in ?? ()
>>>> Backtrace stopped: previous frame identical to this frame (corrupt
>>>> stack?)
>>>> (gdb) bt full
>>>> #0 0x7777e0a4 in ?? ()
>>>> No symbol table info available.
>>>> Backtrace stopped: previous frame identical to this frame (corrupt
>>>> stack?)
>>>> (gdb)
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>> i tried lede (trunk) one week later (20160907) but i can see almost
>>>>> the
>>>>> same crashes:
>>>>>
>>>>>
>>>>> (spam-protected):~# olsrd -v
>>>>>
>>>>>   *** olsr.org -
>>>>> 0.9.0.3-git_44524df-hash_aa6c047a3f5b687a69b49f114c005bd0 ***
>>>>>   Build date: 2016-09-08 16:25:43 on freifunkvm
>>>>>   http://www.olsr.org
>>>>>
>>>>>
>>>>> (spam-protected):/srv2/lede/lede-20160907/build_dir/target-mips_24kc_musl-1.1.15/olsrd-0.9.0.3$
>>>>>
>>>>>
>>>>>
>>>>> ../../toolchain-mips_24kc_gcc-5.4.0_musl-1.1.15/gdb-7.11.1/gdb/gdb
>>>>> olsrd
>>>>> olsrd.1474557332.1609.11.core
>>>>>
>>>>>                                                  GNU gdb (GDB) 7.11.1
>>>>> Copyright (C) 2016 Free Software Foundation, Inc.
>>>>> License GPLv3+: GNU GPL version 3 or later
>>>>> <http://gnu.org/licenses/gpl.html>
>>>>> This is free software: you are free to change and redistribute it.
>>>>> There is NO WARRANTY, to the extent permitted by law.  Type "show
>>>>> copying"
>>>>> and "show warranty" for details.
>>>>> This GDB was configured as "--host=x86_64-linux-gnu
>>>>> --target=mips-openwrt-linux-musl".
>>>>> Type "show configuration" for configuration details.
>>>>> For bug reporting instructions, please see:
>>>>> <http://www.gnu.org/software/gdb/bugs/>.
>>>>> Find the GDB manual and other documentation resources online at:
>>>>> <http://www.gnu.org/software/gdb/documentation/>.
>>>>> For help, type "help".
>>>>> Type "apropos word" to search for commands related to "word"...
>>>>> Reading symbols from olsrd...done.
>>>>> [New LWP 1609]
>>>>>
>>>>> warning: Can't read pathname for load map: Unknown error -1.
>>>>>
>>>>> warning: Could not load shared library symbols for 5 libraries, e.g.
>>>>> /lib/libgcc_s.so.1.
>>>>> Use the "info sharedlibrary" command to see the complete listing.
>>>>> Do you need "set solib-search-path" or "set sysroot"?
>>>>> Core was generated by `/usr/sbin/olsrd -f /var/etc/olsrd.conf
>>>>> -nofork'.
>>>>> Program terminated with signal SIGSEGV, Segmentation fault.
>>>>> #0  0x7732a534 in ?? ()
>>>>> (gdb) bt
>>>>> #0  0x7732a534 in ?? ()
>>>>> #1  0x0040c92d in olsr_destroy_parser () at src/parser.c:105
>>>>> #2  0x0a3d4a8d in ?? ()
>>>>> Backtrace stopped: frame did not save the PC
>>>>> (gdb) bt full
>>>>> #0  0x7732a534 in ?? ()
>>>>> No symbol table info available.
>>>>> #1  0x0040c92d in olsr_destroy_parser () at src/parser.c:105
>>>>>          pe = <optimized out>
>>>>>          pe_next = 0x773015f0
>>>>>          ppe = <optimized out>
>>>>>          ppe_next = <optimized out>
>>>>>          pae = <optimized out>
>>>>>          pae_next = <optimized out>
>>>>> #2  0x0a3d4a8d in ?? ()
>>>>> No symbol table info available.
>>>>> Backtrace stopped: frame did not save the PC
>>>>>
>>>>
>>>>
>>>
>>
>

-- 
Ferry Huberts



More information about the Olsr-dev mailing list