Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Continued after http://pastebin.com/K0876r2T
- (gdb) l
- 1458 } else {
- 1459 Debug("log", "duping stderr");
- 1460 dup2(log_fd, STDERR_FILENO);
- 1461 close(log_fd);
- 1462 }
- 1463 }
- 1464 }
- 1465
- 1466 //
- 1467 // Main
- (gdb) l
- 1468 //
- 1469
- 1470 int
- 1471 main(int /* argc ATS_UNUSED */, const char **argv)
- 1472 {
- 1473 #if TS_HAS_PROFILER
- 1474 HeapProfilerStart("/tmp/ts.hprof");
- 1475 ProfilerStart("/tmp/ts.prof");
- 1476 #endif
- 1477 bool admin_user_p = false;
- (gdb) l -
- ...same as first , as usual ....
- (gdb) l -
- 1448 Debug("log", "duping stdout");
- 1449 dup2(log_fd, STDOUT_FILENO);
- 1450 close(log_fd);
- 1451 }
- 1452 }
- 1453 if (*bind_stderr != 0) {
- 1454 Debug("log", "binding stderr to %s", bind_stderr);
- 1455 log_fd = elevating_open(bind_stderr, O_WRONLY | O_APPEND | O_CREAT | O_SYNC, 0644);
- 1456 if (log_fd < 0) {
- 1457 fprintf(stdout, "[Warning]: TS unable to open log file \"%s\" [%d '%s']\n", bind_stderr, errno, strerror(errno));
- (gdb) l -
- 1438 {
- 1439 int log_fd;
- 1440 unsigned int flags = O_WRONLY | O_APPEND | O_CREAT | O_SYNC;
- 1441
- 1442 if (*bind_stdout != 0) {
- 1443 Debug("log", "binding stdout to %s", bind_stdout);
- 1444 log_fd = elevating_open(bind_stdout, flags, 0644);
- 1445 if (log_fd < 0) {
- 1446 fprintf(stdout, "[Warning]: TS unable to open log file \"%s\" [%d '%s']\n", bind_stdout, errno, strerror(errno));
- 1447 } else {
- (gdb) l
- ...same as..
- (gdb) l
- 1458 } else {
- 1459 Debug("log", "duping stderr");
- 1460 dup2(log_fd, STDERR_FILENO);
- 1461 close(log_fd);
- 1462 }
- 1463 }
- 1464 }
- 1465
- 1466 //
- 1467 // Main
- (gdb) l
- 1468 //
- 1469
- 1470 int
- 1471 main(int /* argc ATS_UNUSED */, const char **argv)
- 1472 {
- 1473 #if TS_HAS_PROFILER
- 1474 HeapProfilerStart("/tmp/ts.hprof");
- 1475 ProfilerStart("/tmp/ts.prof");
- 1476 #endif
- 1477 bool admin_user_p = false;
- (gdb) l
- 1478
- 1479 #if defined(DEBUG) && defined(HAVE_MCHECK_PEDANTIC)
- 1480 mcheck_pedantic(NULL);
- 1481 #endif
- 1482
- 1483 pcre_malloc = ats_malloc;
- 1484 pcre_free = ats_free;
- 1485
- 1486 // Verify system dependent 'constants'
- 1487 check_system_constants();
- (gdb) c
- Continuing.
- traffic_server: Segmentation fault (Address not mapped to object [(nil)])
- traffic_server - STACK TRACE:
- /lib/x86_64-linux-gnu/libpthread.so.0(+0x10cd0)[0x7ffff6450cd0]
- Thread 1 "traffic_server" received signal SIGSEGV, Segmentation fault.
- 0x0000000000000000 in ?? ()
- (gdb) l
- 1488
- 1489 // Define the version info
- 1490 appVersionInfo.setup(PACKAGE_NAME, "traffic_server", PACKAGE_VERSION, __DATE__, __TIME__, BUI;
- 1491
- 1492 // Before accessing file system initialize Layout engine
- 1493 Layout::create();
- 1494 chdir_root(); // change directory to the install root of traffic server.
- 1495
- 1496 process_args(&appVersionInfo, argument_descriptions, countof(argument_descriptions), argv);
- 1497 command_flag = command_flag || *command_string;
- (gdb) c
- Continuing.
- Couldn't get registers: No such process.
- Couldn't get registers: No such process.
- Couldn't get registers: No such process.
- (gdb) [Thread 0x7ffff0a14700 (LWP 19601) exited]
- [Thread 0x7ffff0c16700 (LWP 19600) exited]
- [Thread 0x7ffff7fe0780 (LWP 19598) exited]
Add Comment
Please, Sign In to add comment