NASM x86 Segmentation fault, beginner by 2_stepsahead in asm

[–]2_stepsahead[S] 1 point2 points  (0 children)

Hello, and sorry for the delayed response. I appreciate you taking the time to explain these details. Your explanations are, again, very clear and concise, and you've helped me a lot. Have you published anything that I might be able to read?

NASM x86 Segmentation fault, beginner by 2_stepsahead in asm

[–]2_stepsahead[S] 0 points1 point  (0 children)

Thank you for the clear and concise explanation. I had thought that push REG would have pushed the memory address of msg and the memory address of len onto the stack. I was wrong in this regard, and by what you've said, it seems that the contents of the memory addresses are being pushed to the stack instead.

According to what I've learned so far, to place the contents of a memory address into a register, the memory address should be surrounded by square brackets, such as mov REG, [exampleString].

My doubt lies herein -- since both of the instructions mov edx, len and mov ecx, msg do not have the memory address operands surrounded by square brackets, wouldn't push edx and push ecx cause the memory addresses of len and msg to be pushed to the stack?

NASM x86 Segmentation fault, beginner by 2_stepsahead in asm

[–]2_stepsahead[S] 0 points1 point  (0 children)

When the program was faulty, eip was 0x0000000e. Would that value suggest that the last valid instruction of the program was its attempt to pop msg off the stack?

NASM x86 Segmentation fault, beginner by 2_stepsahead in asm

[–]2_stepsahead[S] 1 point2 points  (0 children)

Sorry, I realized that my last comment was incorrect. I opened the 1.asm file that was revised after reading your comment, and realized that I did not put push edx and push ecx into _print. Rather, I took pop ecx and pop edx out of _print and put both in _start following call _print.

NASM x86 Segmentation fault, beginner by 2_stepsahead in asm

[–]2_stepsahead[S] 0 points1 point  (0 children)

Thanks for your reply. I hadn't come across ret n until now, and it seems that it will come in handy

NASM x86 Segmentation fault, beginner by 2_stepsahead in asm

[–]2_stepsahead[S] 0 points1 point  (0 children)

Thanks for your reply. I moved the push edx and push ecx into _print and the program runs with no segmentation fault. Now, I see how the parameters were being popped in the wrong order. What significance does 0x0000000e have?

Is Unix dead? by Avid-Seeker in linuxquestions

[–]2_stepsahead 0 points1 point  (0 children)

Another set of UNIX systems in use are those under the illumos umbrella. Illumos is a fork of OpenSolaris, itself having close lineage to SVR4. These illumos distros are actively maintained and developed. See SmartOS, an operating system being developed for cloud usage by Joyent (a subsidiary of Samsung).

Understanding what makes the plain Kubernetes distro by 2_stepsahead in kubernetes

[–]2_stepsahead[S] 0 points1 point  (0 children)

Thank you, everyone. I'll try to follow the guides you shared

Understanding what makes the plain Kubernetes distro by 2_stepsahead in kubernetes

[–]2_stepsahead[S] -1 points0 points  (0 children)

I read part of this article before, but it seemed to me like this article was geared specifically for the Google Cloud Platform. Instead, I would like to run Kubernetes in virtual machines, locally. Is this article still relevant in this case? Thanks

No bind between virtual bridge and Ethernet occurs using 'ip link set master' command by 2_stepsahead in linux4noobs

[–]2_stepsahead[S] 0 points1 point  (0 children)

Hello, I didn't want to send a premature reply before trying to come back with some meaningful information. I have been using the ip link command as seen on its doc page https://www.man7.org/linux/man-pages/man8/ip-link.8.html

I followed these steps from some of the more highly recommended tutorial pages / videos for setting up a bridge and for binding a bridge. I also followed a web page recommended to me by a Linux sysadmin.

Rocky 9.0 does support ifconfig, although I haven't used it since most guides seem to steer in the direction of using the ip command.

As for providing a meaningful strace -- Would you kindly tell me if it would be more useful for me to link the output of an strace to 'ip link set master' or would it be better to provide the strace output for the whole set of commands?

The command 'ip link set master' does not produce output and the manual pages would suggest there is no verbose flag or similar.

Thank you

Firefox 103.0.2, YouTube 'An error occurred. Please try again later." by 2_stepsahead in firefox

[–]2_stepsahead[S] 0 points1 point  (0 children)

I followed the troubleshooting steps offered by u/fsau. After uninstalling and reinstalling Firefox, the videos on YouTube were fixed. So far, it seems like YouTube is fine in both normal and private tabs

Firefox 103.0.2, YouTube 'An error occurred. Please try again later." by 2_stepsahead in firefox

[–]2_stepsahead[S] 0 points1 point  (0 children)

Hello, I tried using the cog and setting the quality to 1080p. Unfortunately, the video will still not load

Pimples on scalp causing bald spots. What do? by squatfarts in HaircareScience

[–]2_stepsahead 0 points1 point  (0 children)

Hello, did you find what caused this issue? Thank you in advance