Fix the MySQL-Proxy sub-process abnormal exit BUG

Source: Internet
Author: User
Tags exit in
For the problem of abnormal MySQL-Proxy sub-process exit, I have mentioned in the previous blog: sofar. blog.51cto. com3535721398820 related error information, as shown in: the 11 signal is S.

I have mentioned the problem of abnormal MySQL-Proxy sub-process exit in my previous blog post: Quit


At the beginning, locate the following two source code files:

Src/chassis-unix-daemon.c

Src/chassis-mainloop.c


The processing of the three signals SIGTERM, SIGINT, and SIGHUP is displayed, so the processing of the SIGSEGV signal is also added in a similar way (the signal is ignored ), the modification is roughly as follows:

Src/chassis-unix-daemon.c:

Signal (SIGSEGV, chassis_unix_signal_forward); ...... signal (SIGSEGV, SIG_DFL );

Src/chassis-mainloop.c:

Struct event ev_sigterm, ev_sigint, ev_sigsegv ;...... signal_set (& ev_sigsegv, SIGSEGV, sigsegv_handler, NULL); event_base_set (chas-> event_base, & ev_sigsegv); signal_add (& ev_sigsegv, NULL );...... signal_del (& ev_sigsegv );


# Make & make install


Start the compiled MySQL-Proxy program again. The following core file will be generated in a few minutes:




This article is from the "life ideal lies in perseverance" blog. Please keep this source

,

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.