Advertisement
TJvV

gdb cfgparser -print

Jun 25th, 2013
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.23 KB | None | 0 0
  1. /*-----------\
  2. | GDB output |
  3. \-----------*/
  4. (gdb) break abort
  5. Function "abort" not defined.
  6. Make breakpoint pending on future shared library load? (y or [n]) y
  7. Breakpoint 1 (abort) pending.
  8. (gdb) r /etc/olsrd.conf -print
  9. Starting program: /home/user/olsr/olsrd/src/cfgparser/olsrd_cfgparser /etc/olsrd.conf -print
  10. Parsing file: "/etc/olsrd.conf"
  11. Debug level: 1
  12. setting ifs_in_curr_cfg = 0
  13. HELLO interval: 6.00
  14. HELLO validity: 600.00
  15. TC interval: 0.50
  16. TC validity: 300.00
  17. MID interval: 10.00
  18. MID validity: 300.00
  19. HNA interval: 10.00
  20. HNA validity: 300.00
  21. Link quality fish eye 1
  22. IpVersion: 4
  23. Clear screen enabled
  24. HNA IPv4 entry: 0.0.0.0/0.0.0.0
  25. Noint set to 1
  26. Willingness: 3
  27. IPC host: 127.0.0.1
  28. Hysteresis enabled
  29. Hysteresis Scaling: 0.50
  30. Hysteresis UpperThr: 0.80
  31. Hysteresis LowerThr: 0.30
  32. Link quality level 0
  33. *** olsrd configuration ***
  34. Debug Level : 1
  35. IpVersion : 4
  36. No interfaces : ALLOWED
  37. TOS : 0xc0
  38. OlsrPort : 698
  39. RtTable : 0
  40. RtTableDefault : 0
  41. RtTableTunnel : 0
  42. Willingness : 3
  43. IPC connections : 2
  44. Host 127.0.0.1
  45. Pollrate : 0.05
  46. NIC ChangPollrate: 2.50
  47. TC redundancy : 2
  48. MPR coverage : 7
  49. LQ level : 0
  50. LQ fish eye : 1
  51. LQ aging factor : 0.050000
  52. LQ algorithm name: default
  53. NAT threshold : 1.000000
  54. Clear screen : yes
  55. Use niit : yes
  56. Smart Gateway : no
  57. SmGw. Del Srv Tun: no
  58. SmGw. Use Count : 1
  59. SmGw. Takedown% : 25
  60. SmGw. Pol. Script: (null)
  61. SmGw. Egress I/Fs:
  62. SmGw. Mark Egress: 91
  63. SmGw. Mark Tunnel: 101
  64. SmGw. Allow NAT : yes
  65. SmGw. period : 10000
  66. SmGw. stablecount: 6
  67. SmGw. threshold : 0%
  68. Smart Gw. Uplink : both
  69. SmGw. Uplink NAT : yes
  70. Smart Gw. speed : 128 kbit/s up, 1024 kbit/s down
  71. # Smart Gw. prefix : ::/0
  72. InterfaceDefaults:
  73.  
  74. Program received signal SIGSEGV, Segmentation fault.
  75. 0x08049cd6 in olsrd_print_interface_cnf (cnf=0x0, cnfi=0x0, defcnf=true) at olsrd_conf.c:186
  76. 186 if (cnf->ipv4_multicast.v4.s_addr) {
  77. (gdb) bt
  78. #0 0x08049cd6 in olsrd_print_interface_cnf (cnf=0x0, cnfi=0x0, defcnf=true) at olsrd_conf.c:186
  79. #1 0x0804c435 in olsrd_print_cnf (cnf=0x8064008) at olsrd_conf.c:1086
  80. #2 0x08049b24 in main (argc=3, argv=0xbffff3b4) at olsrd_conf.c:112
  81. (gdb) l
  82. 181 {
  83. 182 struct olsr_lq_mult *mult;
  84. 183 int lq_mult_cnt = 0;
  85. 184 char ipv6_buf[INET6_ADDRSTRLEN]; /* buffer for IPv6 inet_htop */
  86. 185
  87. 186 if (cnf->ipv4_multicast.v4.s_addr) {
  88. 187 printf("\tIPv4 broadcast/multicast : %s%s\n", inet_ntoa(cnf->ipv4_multicast.v4),DEFAULT_STR(ipv4_multicast.v4.s_addr));
  89. 188 } else {
  90. 189 printf("\tIPv4 broadcast/multicast : AUTO%s\n",DEFAULT_STR(ipv4_multicast.v4.s_addr));
  91. 190 }
  92. (gdb) p cnf
  93. $1 = (struct if_config_options *) 0x0
  94.  
  95. ====================================================================================
  96. /*-------------------------\
  97. | cfgparser without -print |
  98. \-------------------------*/
  99. user@user-laptop:~/olsr/olsrd$ ./src/cfgparser/olsrd_cfgparser /etc/olsrd.conf
  100. Parsing file: "/etc/olsrd.conf"
  101. Debug level: 1
  102. setting ifs_in_curr_cfg = 0
  103. HELLO interval: 6.00
  104. HELLO validity: 600.00
  105. TC interval: 0.50
  106. TC validity: 300.00
  107. MID interval: 10.00
  108. MID validity: 300.00
  109. HNA interval: 10.00
  110. HNA validity: 300.00
  111. Link quality fish eye 1
  112. IpVersion: 4
  113. Clear screen enabled
  114. HNA IPv4 entry: 0.0.0.0/0.0.0.0
  115. Noint set to 1
  116. Willingness: 3
  117. IPC host: 127.0.0.1
  118. Hysteresis enabled
  119. Hysteresis Scaling: 0.50
  120. Hysteresis UpperThr: 0.80
  121. Hysteresis LowerThr: 0.30
  122. Link quality level 0
  123. Use -print to view parsed values
  124. Configfile parsed OK
  125.  
  126. /*-----------------------\
  127. | cfgparser with -print |
  128. \-----------------------*/
  129. user@user-laptop:~/olsr/olsrd$ ./src/cfgparser/olsrd_cfgparser /etc/olsrd.conf -print
  130. Parsing file: "/etc/olsrd.conf"
  131. Debug level: 1
  132. setting ifs_in_curr_cfg = 0
  133. HELLO interval: 6.00
  134. HELLO validity: 600.00
  135. TC interval: 0.50
  136. TC validity: 300.00
  137. MID interval: 10.00
  138. MID validity: 300.00
  139. HNA interval: 10.00
  140. HNA validity: 300.00
  141. Link quality fish eye 1
  142. IpVersion: 4
  143. Clear screen enabled
  144. HNA IPv4 entry: 0.0.0.0/0.0.0.0
  145. Noint set to 1
  146. Willingness: 3
  147. IPC host: 127.0.0.1
  148. Hysteresis enabled
  149. Hysteresis Scaling: 0.50
  150. Hysteresis UpperThr: 0.80
  151. Hysteresis LowerThr: 0.30
  152. Link quality level 0
  153. *** olsrd configuration ***
  154. Debug Level : 1
  155. IpVersion : 4
  156. No interfaces : ALLOWED
  157. TOS : 0xc0
  158. OlsrPort : 698
  159. RtTable : 0
  160. RtTableDefault : 0
  161. RtTableTunnel : 0
  162. Willingness : 3
  163. IPC connections : 2
  164. Host 127.0.0.1
  165. Pollrate : 0.05
  166. NIC ChangPollrate: 2.50
  167. TC redundancy : 2
  168. MPR coverage : 7
  169. LQ level : 0
  170. LQ fish eye : 1
  171. LQ aging factor : 0.050000
  172. LQ algorithm name: default
  173. NAT threshold : 1.000000
  174. Clear screen : yes
  175. Use niit : yes
  176. Smart Gateway : no
  177. SmGw. Del Srv Tun: no
  178. SmGw. Use Count : 1
  179. SmGw. Takedown% : 25
  180. SmGw. Pol. Script: (null)
  181. SmGw. Egress I/Fs:
  182. SmGw. Mark Egress: 91
  183. SmGw. Mark Tunnel: 101
  184. SmGw. Allow NAT : yes
  185. SmGw. period : 10000
  186. SmGw. stablecount: 6
  187. SmGw. threshold : 0%
  188. Smart Gw. Uplink : both
  189. SmGw. Uplink NAT : yes
  190. Smart Gw. speed : 128 kbit/s up, 1024 kbit/s down
  191. # Smart Gw. prefix : ::/0
  192. InterfaceDefaults:
  193. Segmentation fault (core dumped)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement