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 798299
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T22:56:50+00:00 2026-05-14T22:56:50+00:00

Well.. it’s pretty much that, I seem to be getting a Illegal Seek error

  • 0

Well.. it’s pretty much that, I seem to be getting a “Illegal Seek” error when checking my errno variable. The problem is that I have no idea of what that can mean.

I know sockets are treated like files in unix, but I can’t see how can this be related to sockets. What I’m doing exactly is:

int sck = ::accept(m_socket, (struct sockaddr*)&client_address, (socklen_t*)&address_len);

Then I get sck = -1 and errno = ESPIPE

And the weird thing is that it happens randomly. I mean, sometimes the code works fine, and sometimes it just thows an exception. I’m working with threads so that’s understandable. But I just would like to know what kind of behaviour makes the accept() call to set errno as ESPIPE so I could check the paramethers for instance.

Thanks
Nelson R. Pérez

  • 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-05-14T22:56:51+00:00Added an answer on May 14, 2026 at 10:56 pm

    The most probable cause is that the m_socket variable is being corrupted. Use strace as @Aidan suggests to see what value is being passed to accept(2), or attach a debugger to the process and set a watchpoint on that memory location.

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

Sidebar

Related Questions

Well after much messing about I have finally got a query that gives sales
Well im here because i have a problem. i have code that was created
Well, the title pretty much states it. I want to be able to draw
Well, this is an interesting problem. I have an ASP.NET MVC3 Intranet application running
Well, I have to revive a question that was answered here before. I've made
Well, I believe the title is pretty straight forward. I've read many times that
Well, the subject says it all, basically. I have a command-line utility that may
Well, I have this bit of code that is slowing down the program hugely
Well my problem is pretty simple, i got the following includes: #include stdafx.h #include
Well, i have such-like code that prevent select all action from keyboard: $(document).keydown(function(e){ //

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.