Help answer threads with 0 replies.
Go Back > Blogs
User Name



Simple idea for a debug verbosity tool on bash scripts

Posted 09-07-2021 at 10:06 AM by the dsc (linux-related notes)
Updated 06-28-2022 at 10:40 AM 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...
Posted in Uncategorized
Views 296 Comments 0 the dsc is offline

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

Posted 05-22-2015 at 04:59 PM by rainbowsally
Updated 05-22-2015 at 05: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
Posted in Uncategorized
Views 1664 Comments 0 rainbowsally is offline

Mapping address to line - Linux

Posted 08-31-2011 at 01: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...
EIP: [] ip_check+0x45a/0x21a [ip_tables] SS:ESP 0049:c098281a
Look at the selection...
Posted in Uncategorized
Views 2190 Comments 0 hi2arun is offline


All times are GMT -5. The time now is 02:51 AM.

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