LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


Old

Simple idea for a debug verbosity tool on bash scripts

Posted 09-07-2021 at 09:06 AM by the dsc (linux-related notes)
Updated 08-05-2023 at 08:37 PM by the dsc
Tags bash, debug

I used to just have lots of "echos" around my scripts printing where it is on a loop or whatever, so I have a better idea of whats happening, often somewhat more clear than with "bash -x", even though that also may help, of course. But the odds are that I'd at some point just leave such debug echos there while the script runs on a daily basis on the background, just helping .xsession-errors to become enormous, for no good reason, since it's working and I'm not reading it. And...
Member
Posted in Uncategorized
Views 461 Comments 0 the dsc is online now
Old

Quick install/uninstall of glib debug version for tracing, or... just for the heck of it.

Posted 05-22-2015 at 03:59 PM by rainbowsally
Updated 05-22-2015 at 04:27 PM by rainbowsally (an afterthought)

Quick install/uninstall of glib debug version for tracing, or... just for the heck of it.

For the heck of it?

Yeah. I told yuh. This is Computer Mad Science. It doesn't have to make sense or to be useful. ;-) [Though it might very well be both.]

Today's wonderful experience in Computer Mad Science features:
  • A download and a teaser snippet.
  • This might be interesting for folks new to using C and/or looking for interesting powerful yet simple
...
Member
Posted in Uncategorized
Views 1768 Comments 0 rainbowsally is offline
Old

Mapping address to line - Linux

Posted 08-31-2011 at 12:20 AM by hi2arun
Tags debug, kernel, panic

Well.. when you write your own kernel module, in the devel stage, chances for bringin down the kernel (panic.. ah sick) are huge.
Oops (pet name for kernel panic) mostly spits lots of martian traces that include stack addresses, registers and its value, EIP, etc.

To know the culprit line that caused panic, decode the address to line as follows:
EIP wud luk like...
Code:
EIP: [] ip_check+0x45a/0x21a [ip_tables] SS:ESP 0049:c098281a
Look at the selection...
Member
Posted in Uncategorized
Views 2243 Comments 0 hi2arun is offline

  



All times are GMT -5. The time now is 12:05 PM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration