rudraht

ats 6.2.0 more

Feb 22nd, 2016
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
GDB 3.43 KB | None | 0 0
  1. Continued after http://pastebin.com/K0876r2T
  2.  
  3. (gdb) l
  4. 1458        } else {
  5. 1459          Debug("log", "duping stderr");
  6. 1460          dup2(log_fd, STDERR_FILENO);
  7. 1461          close(log_fd);
  8. 1462        }
  9. 1463      }
  10. 1464    }
  11. 1465
  12. 1466    //
  13. 1467    // Main
  14. (gdb) l
  15. 1468    //
  16. 1469
  17. 1470    int
  18. 1471    main(int /* argc ATS_UNUSED */, const char **argv)
  19. 1472    {
  20. 1473    #if TS_HAS_PROFILER
  21. 1474      HeapProfilerStart("/tmp/ts.hprof");
  22. 1475      ProfilerStart("/tmp/ts.prof");
  23. 1476    #endif
  24. 1477      bool admin_user_p = false;
  25. (gdb) l -
  26. ...same as first , as usual ....
  27. (gdb) l -
  28. 1448          Debug("log", "duping stdout");
  29. 1449          dup2(log_fd, STDOUT_FILENO);
  30. 1450          close(log_fd);
  31. 1451        }
  32. 1452      }
  33. 1453      if (*bind_stderr != 0) {
  34. 1454        Debug("log", "binding stderr to %s", bind_stderr);
  35. 1455        log_fd = elevating_open(bind_stderr, O_WRONLY | O_APPEND | O_CREAT | O_SYNC, 0644);
  36. 1456        if (log_fd < 0) {
  37. 1457          fprintf(stdout, "[Warning]: TS unable to open log file \"%s\" [%d '%s']\n", bind_stderr, errno, strerror(errno));
  38. (gdb) l -
  39. 1438    {
  40. 1439      int log_fd;
  41. 1440      unsigned int flags = O_WRONLY | O_APPEND | O_CREAT | O_SYNC;
  42. 1441
  43. 1442      if (*bind_stdout != 0) {
  44. 1443        Debug("log", "binding stdout to %s", bind_stdout);
  45. 1444        log_fd = elevating_open(bind_stdout, flags, 0644);
  46. 1445        if (log_fd < 0) {
  47. 1446          fprintf(stdout, "[Warning]: TS unable to open log file \"%s\" [%d '%s']\n", bind_stdout, errno, strerror(errno));
  48. 1447        } else {
  49. (gdb) l
  50. ...same as..
  51. (gdb) l
  52. 1458        } else {
  53. 1459          Debug("log", "duping stderr");
  54. 1460          dup2(log_fd, STDERR_FILENO);
  55. 1461          close(log_fd);
  56. 1462        }
  57. 1463      }
  58. 1464    }
  59. 1465
  60. 1466    //
  61. 1467    // Main
  62. (gdb) l
  63. 1468    //
  64. 1469
  65. 1470    int
  66. 1471    main(int /* argc ATS_UNUSED */, const char **argv)
  67. 1472    {
  68. 1473    #if TS_HAS_PROFILER
  69. 1474      HeapProfilerStart("/tmp/ts.hprof");
  70. 1475      ProfilerStart("/tmp/ts.prof");
  71. 1476    #endif
  72. 1477      bool admin_user_p = false;
  73. (gdb) l
  74. 1478
  75. 1479    #if defined(DEBUG) && defined(HAVE_MCHECK_PEDANTIC)
  76. 1480      mcheck_pedantic(NULL);
  77. 1481    #endif
  78. 1482
  79. 1483      pcre_malloc = ats_malloc;
  80. 1484      pcre_free = ats_free;
  81. 1485
  82. 1486      // Verify system dependent 'constants'
  83. 1487      check_system_constants();
  84. (gdb) c
  85. Continuing.
  86. traffic_server: Segmentation fault (Address not mapped to object [(nil)])
  87. traffic_server - STACK TRACE:
  88. /lib/x86_64-linux-gnu/libpthread.so.0(+0x10cd0)[0x7ffff6450cd0]
  89.  
  90. Thread 1 "traffic_server" received signal SIGSEGV, Segmentation fault.
  91. 0x0000000000000000 in ?? ()
  92. (gdb) l
  93. 1488
  94. 1489      // Define the version info
  95. 1490      appVersionInfo.setup(PACKAGE_NAME, "traffic_server", PACKAGE_VERSION, __DATE__, __TIME__, BUI;
  96. 1491
  97. 1492      // Before accessing file system initialize Layout engine
  98. 1493      Layout::create();
  99. 1494      chdir_root(); // change directory to the install root of traffic server.
  100. 1495
  101. 1496      process_args(&appVersionInfo, argument_descriptions, countof(argument_descriptions), argv);
  102. 1497      command_flag = command_flag || *command_string;
  103. (gdb) c
  104. Continuing.
  105. Couldn't get registers: No such process.
  106. Couldn't get registers: No such process.
  107. Couldn't get registers: No such process.
  108. (gdb) [Thread 0x7ffff0a14700 (LWP 19601) exited]
  109. [Thread 0x7ffff0c16700 (LWP 19600) exited]
  110. [Thread 0x7ffff7fe0780 (LWP 19598) exited]
Add Comment
Please, Sign In to add comment