Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7725811
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T05:02:13+00:00 2026-06-01T05:02:13+00:00

I write a simple NDK program that has a logger that runs in another

  • 0

I write a simple NDK program that has a logger that runs in another thread.

My program runs successfully but after that the programs quits and sometimes it dosen’t quits after running my c++ code and works correctly.
Anyone knows why my program quit after running the code.

when I use strace to debug my program it tells me +++ killed by SIGSEGV +++

semget(0x1c, 0xbe9222e8, 0x10, 0xffffffff) = -1 EINTR (Interrupted system call)
--- SIGSTOP (Stopped (signal)) @ 0 (0) ---
--- SIGSTOP (Stopped (signal)) @ 0 (0) ---
--- SIGSTOP (Stopped (signal)) @ 0 (0) ---
--- SIGSTOP (Stopped (signal)) @ 0 (0) ---
--- SIGSTOP (Stopped (signal)) @ 0 (0) ---
--- SIGSTOP (Stopped (signal)) @ 0 (0) ---
--- SIGSTOP (Stopped (signal)) @ 0 (0) ---
--- SIGSTOP (Stopped (signal)) @ 0 (0) ---
--- SIGSTOP (Stopped (signal)) @ 0 (0) ---
--- SIGSTOP (Stopped (signal)) @ 0 (0) ---
msgget(0x1, 0xbe922430, 0x418fce8c, 0xa8121b40) = 0
semget(0x1c, 0xbe9222e8, 0x10, 0xffffffff) = -1 EINTR (Interrupted system call)
--- SIGSTOP (Stopped (signal)) @ 0 (0) ---
--- SIGSTOP (Stopped (signal)) @ 0 (0) ---
msgget(0x1, 0xbe922430, 0x418fce8c, 0xa8121b40) = 0
semget(0x1c, 0xbe9222e8, 0x10, 0xffffffff <unfinished ...>
+++ killed by SIGSEGV +++

If I disabled the thread everything works fine maybe Logging in another thread with logcat is not safe

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T05:02:15+00:00Added an answer on June 1, 2026 at 5:02 am

    @waxspin
    You were right my program exits before my logger thread destroyed.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I write simple C++ code that compute array reduction sum, but with OpenMP reduction
I intent to write simple programs in c/c++ that would be run in console.
I've been playing with OpenCL recently, and I'm able to write simple kernels that
I write a simple piece of code that creates a div and assign it
I am trying to write a simple matrixMultiplication application that multiplies two square matrices
I've got weird problem. I'm trying to write simple game in C++, but I
I am trying to write simple mysql stored procedure and it seems that I
I am trying to write simple program using ONLY for loop ( if then
How to write (simple) LINQ to Entities query that groups elements by some attribut
I am usually pretty good to write simple regular expressions, but this time I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.