Giter Club home page Giter Club logo

Comments (6)

rofl0r avatar rofl0r commented on July 22, 2024

maybe. could you enable core dumps, rebuild microsocks with debug info make CFLAGS="-O0 -g3", and then load the core with gdb next time it happens ? that would give us a backtrace pointing to where it happens.
does this happen only with the high fd limit ?

from microsocks.

clyfish avatar clyfish commented on July 22, 2024

Version: be54581

┌──Register group: general─────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│rax            0x0      0                                            rbx            0x0      0                                            │
│rcx            0x7fcf8f7c54fd   140529442247933                      rdx            0x0      0                                            │
│rsi            0x0      0                                            rdi            0x0      0                                            │
│rbp            0x7fcf8c1c9f90   0x7fcf8c1c9f90                       rsp            0x7fcf8c1c9ae0   0x7fcf8c1c9ae0                       │
│r8             0x7fcf8c1ca700   140529385645824                      r9             0x18     24                                           │
│r10            0x10     16                                           r11            0x0      0                                            │
│r12            0x0      0                                            r13            0x7fcf8c1ca9c0   140529385646528                      │
│r14            0x7fcf8c1ca700   140529385645824                      r15            0x0      0                                            │
│rip            0x401e89 0x401e89 <clientthread+474>                  eflags         0x10217  [ CF PF AF IF RF ]                           │
│cs             0x33     51                                           ss             0x2b     43                                           │
   ┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
   │0x401e75 <clientthread+454>     cmpl   $0xffffffff,-0x4(%rbp)                                                                          │
   │0x401e79 <clientthread+458>     je     0x401e85 <clientthread+470>                                                                     │
   │0x401e7b <clientthread+460>     mov    -0x4(%rbp),%eax                                                                                 │
   │0x401e7e <clientthread+463>     mov    %eax,%edi                                                                                       │
   │0x401e80 <clientthread+465>     callq  0x400eb0 <close@plt>                                                                            │
   │0x401e85 <clientthread+470>     mov    -0x10(%rbp),%rax                                                                                │
  >│0x401e89 <clientthread+474>     mov    0x24(%rax),%eax                                                                                 │
   │0x401e8c <clientthread+477>     mov    %eax,%edi                                                                                       │
   │0x401e8e <clientthread+479>     callq  0x400eb0 <close@plt>                                                                            │
   │0x401e93 <clientthread+484>     mov    -0x10(%rbp),%rax                                                                                │
   │0x401e97 <clientthread+488>     movl   $0x1,0x2c(%rax)                                                                                 │
   └───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
multi-thre Thread 0x7fcf8 In: clientthread                                                                          Line: ??   PC: 0x401e89

from microsocks.

rofl0r avatar rofl0r commented on July 22, 2024

why are you testing a version from 2019 ? use latest git. also i don't see a usable backtrace in your paste. compile with -g3 to get source-level debug info instead of x86 asm.

from microsocks.

clyfish avatar clyfish commented on July 22, 2024

@rofl0r Because it was launched three years ago.
Crashed on this line:

close(t->client.fd);

from microsocks.

rofl0r avatar rofl0r commented on July 22, 2024

well, i studied the code again and can't see anything that could cause this. i'd suggest you get the latest code, rebuild it with address sanitizer, and wait for the next crash, which will hopefully be accompanied with useful output from asan.

from microsocks.

clyfish avatar clyfish commented on July 22, 2024

OK.

from microsocks.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.