Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B BIRD Internet Routing Daemon
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Pavel Spirek
  • BIRD Internet Routing Daemon
  • Issues
  • #6
Closed
Open
Issue created Nov 20, 2014 by Pavel Tvrdik@ptvrdikDeveloper

Segmentation fault při dummy pokusu o spuštění bota

Ukázkovou konfiguraci jsem přejmenoval a zkopíroval do rootu GITu.

Spustím BIRD:

# ./bird -c /root/bird/bird.conf -s /tmp/bird.ctl -d
..běží..

Spustím BIRD-bota:

# ./birdbot -s /tmp/bird.ctl -d
Birdbot JID: birdbot@xmppserver.com
Birdbot pass: passwordxmpp
Superusers:
user123@xmpp.com
neco@xmpp.com
Restricted users:
sup@xmpp.com
NS: SRV record resolution failed.
Segmentation fault

Co to znamená 'NS: SRV record resolution failed.'?

Valgrind log:

==00:00:00:00.000 9798== Memcheck, a memory error detector
==00:00:00:00.000 9798== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al.
==00:00:00:00.000 9798== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info
==00:00:00:00.000 9798== Command: ./birdbot -s /tmp/bird.ctl -d
==00:00:00:00.000 9798== Parent PID: 3387
==00:00:00:00.000 9798== 
==00:00:00:01.290 9798== Conditional jump or move depends on uninitialised value(s)
==00:00:00:01.291 9798==    at 0x4C29518: __GI_strlen (mc_replace_strmem.c:391)
==00:00:00:01.291 9798==    by 0x5C16D1A: puts (ioputs.c:37)
==00:00:00:01.291 9798==    by 0x404ED0: print_config (cbirdbot.c:785)
==00:00:00:01.291 9798==    by 0x402B74: main (cbirdbot.c:1167)
==00:00:00:01.291 9798== 
==00:00:00:01.293 9798== Conditional jump or move depends on uninitialised value(s)
==00:00:00:01.293 9798==    at 0x4C29518: __GI_strlen (mc_replace_strmem.c:391)
==00:00:00:01.293 9798==    by 0x5C16D1A: puts (ioputs.c:37)
==00:00:00:01.293 9798==    by 0x404F00: print_config (cbirdbot.c:792)
==00:00:00:01.293 9798==    by 0x402B74: main (cbirdbot.c:1167)
==00:00:00:01.293 9798== 
==00:00:00:01.401 9798== Invalid read of size 4
==00:00:00:01.401 9798==    at 0x599D530: pthread_kill (pthread_kill.c:43)
==00:00:00:01.401 9798==    by 0x403D06: exit_clean (cbirdbot.c:295)
==00:00:00:01.401 9798==    by 0x402D5B: main (cbirdbot.c:1270)
==00:00:00:01.401 9798==  Address 0x2d0 is not stack'd, malloc'd or (recently) free'd
==00:00:00:01.401 9798== 
==00:00:00:01.401 9798== 
==00:00:00:01.401 9798== Process terminating with default action of signal 11 (SIGSEGV)
==00:00:00:01.401 9798==  Access not within mapped region at address 0x2D0
==00:00:00:01.401 9798==    at 0x599D530: pthread_kill (pthread_kill.c:43)
==00:00:00:01.401 9798==    by 0x403D06: exit_clean (cbirdbot.c:295)
==00:00:00:01.401 9798==    by 0x402D5B: main (cbirdbot.c:1270)
==00:00:00:01.401 9798==  If you believe this happened as a result of a stack
==00:00:00:01.401 9798==  overflow in your program's main thread (unlikely but
==00:00:00:01.401 9798==  possible), you can try to increase the size of the
==00:00:00:01.401 9798==  main thread stack using the --main-stacksize= flag.
==00:00:00:01.401 9798==  The main thread stack size used in this run was 8388608.
==00:00:00:01.429 9798== 
==00:00:00:01.429 9798== HEAP SUMMARY:
==00:00:00:01.429 9798==     in use at exit: 3,742 bytes in 60 blocks
==00:00:00:01.429 9798==   total heap usage: 71 allocs, 11 frees, 5,091 bytes allocated
==00:00:00:01.429 9798== 
==00:00:00:01.432 9798== LEAK SUMMARY:
==00:00:00:01.432 9798==    definitely lost: 0 bytes in 0 blocks
==00:00:00:01.432 9798==    indirectly lost: 0 bytes in 0 blocks
==00:00:00:01.432 9798==      possibly lost: 0 bytes in 0 blocks
==00:00:00:01.432 9798==    still reachable: 3,742 bytes in 60 blocks
==00:00:00:01.432 9798==         suppressed: 0 bytes in 0 blocks
==00:00:00:01.432 9798== Reachable blocks (those to which a pointer was found) are not shown.
==00:00:00:01.432 9798== To see them, rerun with: --leak-check=full --show-reachable=yes
==00:00:00:01.432 9798== 
==00:00:00:01.432 9798== For counts of detected and suppressed errors, rerun with: -v
==00:00:00:01.432 9798== Use --track-origins=yes to see where uninitialised values come from
==00:00:00:01.432 9798== ERROR SUMMARY: 4 errors from 3 contexts (suppressed: 4 from 4)
Assignee
Assign to
Time tracking