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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T11:45:52+00:00 2026-05-23T11:45:52+00:00

The following application generates a Segmentation Fault when executed: .set __NR_reboot, 169 .set LINUX_REBOOT_CMD_POWER_OFF,

  • 0

The following application generates a Segmentation Fault when executed:

.set __NR_reboot, 169
.set LINUX_REBOOT_CMD_POWER_OFF, 0x4321FEDC

.section .text
.globl _start
_start:
   movl $LINUX_REBOOT_CMD_POWER_OFF, %ebx
   movl $__NR_reboot, %eax
   int $0x80

It’s a quite simple application and I must be missing something really obvious. Can someone help me?

It was compiled with:

as shutdown.s -o shutdown.o
ld shutdown.o -o shutdown

EDIT:

Even a simple application that just calls syscall sync() generates a Segmentation Fault:

.set __NR_sync, 36

.section .text
.globl _start
_start:
   movl $__NR_sync, %eax
   int $0x80

   movl $1, %eax         #syscall exit
   movl $0, %eax
   int $0x80
  • 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-23T11:45:52+00:00Added an answer on May 23, 2026 at 11:45 am

    WARNING: remember to sync(2) before calling reboot(2).

    The reboot(2) system call takes 4 parameters.You are confusing it with the libc
    wrapper.

    WARNING: remember to sync(2) before calling reboot(2).

    (It actually takes the magic* parameters so that people have to reread the documentation and don’t forget calling sync(2).)

    WARNING: Did I say that you have to sync(2) before calling reboot(2)?

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

Sidebar

Related Questions

I have a legacy application that, at some point, generates the following code in
My application is terminating with signal 11 - segmentation fault. Core dump has been
I have the following application which replicates an issue I'm having in a larger
I'm wondering how i would go about making the following application: a user signs
I've got the following Flex application markup: <app:MyApplicationClass xmlns:app=* width=100% height=100% layout=vertical horizontalScrollPolicy=off verticalScrollPolicy=off>
Why is it in the following silverlight application that when I: change the default
I'm asking for a suitable architecture for the following Java web application: The goal
My application is throwing a Security Exception with the following details: Description: The application
The following code will log in my application to a server. That server will
I've got the following situation A rails application that makes use of rjs /

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.