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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T17:40:54+00:00 2026-05-12T17:40:54+00:00

To learn a bit more about FreeBSD and *nix systems in general, I’m starting

  • 0

To learn a bit more about FreeBSD and *nix systems in general, I’m starting to look at the binaries from the DEFCON 17 Capture The Flag game. Right now, I’m reversing the tucod binary. Here’s some possibly useful information on tucod:

tucod: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), for FreeBSD 7.2, dynamically linked (uses shared libs), FreeBSD-style, stripped

Some other possibly useful information gained from some brief static analysis is that tucod binds on port 0xDEAD (cute, eh?) and if you give it a specific password (“HANGEMHIGH!”) it will play a game of hang-man with you.

The problem that I’m encountering is that I’m not hitting my breakpoints in gdb. Specifically, the breakpoint that I’m trying to reach is in the code that handles the client connection. Without breakpoints, the code executes as expected. When I set a breakpoint on that code, the child exits (instead of breaking into gdb, as expected). If I set breakpoints before the server forks off the child, I can hit those fine but after hitting “continue” the child does not continue to process my connection (that is, it won’t ask me for a password or play hang-man).

Since the daemon forks when it receives a new connection, I try to tell gdb to follow the child with this command:

(gdb) set follow-fork-mode child

But after single-stepping the instructions after the fork, it appears that this isn’t working.

I’ve tried looking for calls to signal, thinking they implemented a custom SIGINT handler (or similar), but the only call to signal that I can see handles SIGCHLD.

My breakpoint in gdb currently looks like this:

(gdb) info breakpoints
Num Type           Disp Enb Address    What
1   breakpoint     keep y   0x080497d0

And 0x080497d0 is the address I want to break on in the client processing code.

I’m sort of new to analyzing software on *nix systems and could use some pointers. How else should I go about troubleshooting why GDB will not hit my breakpoints? Or is there something major I’m just overlooking?

There’s a torrent available with all of the game binaries for those interested in seeing the binary first-hand.

  • 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-12T17:40:54+00:00Added an answer on May 12, 2026 at 5:40 pm

    Look here for the answer. In short, it looks like GDB supports child debug mode only on HP-UX and Linux.

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

Sidebar

Related Questions

I'm trying to learn more about WPF and I've read a bit about Model-View-ViewModel
I'm trying to learn a little bit more about recursion but somehow I can't
I'm trying to learn a bit about bash-commands -- more specifically about backup-scripts. Unfortunately,
I am working on an app to try and learn a bit more about
I'm trying to learn a bit more about LINQ by implementing Peter Norvig's spelling
Following my question yesterday , I tried to learn a bit more about the
I have been trying to learn a bit more about delegates and lambdas while
I started writing a small program to learn a bit more about java and
I'm attempting to learn a bit more about out how grid filtering works in
I've decided to take some golden time to learn a bit more about Expressions.

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.