songenjie opened a new pull request #3649:
URL: https://github.com/apache/incubator-doris/pull/3649
## issus
```
int fd = open(filename, O_WRONLY | O_CREAT /* | O_EXCL */ | O_APPEND, 0664);
fdopen(fd, "ra")
```
## view
```
*** Aborted at 1590044592 (unix time) try "date -d @1590044592" if you are
using GNU date ***
PC: @ 0x7f0fa14679ec __GI_fseek
*** SIGSEGV (@0x0) received by PID 79596 (TID 0x7f0fa22ed580) from PID 0;
stack trace: ***
@ 0x7f0fa1429670 (unknown)
@ 0x7f0fa14679ec __GI_fseek
@ 0x23775e1 google::(anonymous
namespace)::LogFileObject::Write()
@ 0x23730a4 google::LogMessage::SendToLog()
@ 0x23706d4 google::LogMessage::Flush()
@ 0x2370931 google::LogMessage::~LogMessage()
@ 0xdc3eb4 doris::init_daemon()
@ 0xc4eec7 main
@ 0x7f0fa1415b15 __libc_start_main
@ 0xda72d3 (unknown)
```
## fix
use fopen
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]