Slashdot Mirror


Linux Developers Consider On-Screen QR Codes For Kernel Panics

An anonymous reader writes "Linux kernel developers are currently evaluating the possibility of using QR codes to display kernel oops/panic messages. Right now a lot of text is dumped to the screen when a kernel oops occurs, most of which isn't easily archivable by normal Linux end-users. With QR codes as Linux oops messages, a smart-phone could capture the display and either report the error string or redirect them to an error page on Kernel.org. The idea of using QR codes within the Linux kernel is still being discussed by upstream developers."

175 comments

  1. Dump kernel to serial printer by Anonymous Coward · · Score: 0

    Problem solved.

    1. Re:Dump kernel to serial printer by Anonymous Coward · · Score: 0

      If there weren't the small problem of modern x86 mainboards rarely shipping with a serial port...

      (There are USB, not USB-serial based, debugging cards available, but in a price range not compatible with personal budgets.)

    2. Re:Dump kernel to serial printer by smittyoneeach · · Score: 3, Funny

      You gonna need a big bowl to catch all them corn flakes, mister.

      --
      Get thee glass eyes, and, like a scurvy politician, seem to see things thou dost not.--King Lear
    3. Re:Dump kernel to serial printer by Hsien-Ko · · Score: 1

      Ironically most older x86 motherboards (pre-1994) didn't have an onboard serial port either.

    4. Re:Dump kernel to serial printer by Anonymous Coward · · Score: 1

      Or just display a short number code. Displaying a QR code won't solve anything, it will just obfuscate the error and leave the user without any easily memorable reference. This sounds more to me like "let's do it because it's modern and hip" rather than it being actually useful.

    5. Re:Dump kernel to serial printer by Anonymous Coward · · Score: 1

      Nothing is stopping you from displaying a short summary of the error and a code number in addition to the QR code. Depending on how much information gets jammed into the QR code though, it can be a lot harder to dump that all to the screw and expect a person to remember (or even write it down correctly).

    6. Re:Dump kernel to serial printer by khellendros1984 · · Score: 1

      Or do both. Short number code, some diagnostic data on the screen, and a QR code linking to more info. The QR doesn't have to be much more than a couple square cm in a corner of the screen.

      --
      It is pitch black. You are likely to be eaten by a grue.
    7. Re:Dump kernel to serial printer by Anonymous Coward · · Score: 1

      But back in the days ISA based parallel and serial cards were commonly used and low level enough (using the well known IRQ/ DMA/ memory addresses) to just work and stand in as system console. Today's PCI or USB serial adaptor cards are overpriced (rare) and just that, not the 'real thing' but higher level adaptors, leaving several of the old fashioned protocols unsupported and mostly not being able to be used as ttyS0 (or COM1) as it's neither supported by the low-level drivers nor takes I/O 0x3f8 and irq 4.

    8. Re:Dump kernel to serial printer by Anonymous Coward · · Score: 2, Funny

      No! We cannot do both! It must be either one or the other!

    9. Re:Dump kernel to serial printer by polymeris · · Score: 1

      There is only so much information you can store in a couple square cm, if you want it to be able to be reliably retrieved by a camera, qr code or not. Your comment.

    10. Re:Dump kernel to serial printer by Anonymous Coward · · Score: 0

      Yes you can .. if you have an appointment! (see Annoying Train Passenger, The 1948 Show)

      Seriously, both is better. Just because everyone at your office has a smartphone that can process QR does not mean every admin plant wide has a smartphone. This is like web designers who are still 'learning' will say "but it works just fine on my screen and my browser".

    11. Re:Dump kernel to serial printer by Anonymous Coward · · Score: 0

      With a fundamental limit of the number of pixels on screen, and that being dependant on screen size so you don't want to assume too high.

    12. Re:Dump kernel to serial printer by flyingfsck · · Score: 3, Funny

      Bah. Punch cards are so much better. You young, know nothing, whipper snappers with your newfangled hoosammawhatsits...

      --
      Excuse me, but please get off my Pennisetum Clandestinum, eh!
    13. Re:Dump kernel to serial printer by rogoshen1 · · Score: 1

      subset of linux users with access to only one device vs the subset of linux users who would troubleshoot a machine via cell phone.... ?

    14. Re:Dump kernel to serial printer by icebike · · Score: 2

      Or just display a short number code. Displaying a QR code won't solve anything, it will just obfuscate the error and leave the user without any easily memorable reference. This sounds more to me like "let's do it because it's modern and hip" rather than it being actually useful.

      The QR code can not only indicate the exact location of the error, but can take you to a website on the phone, with a url long enough to log
        many key points about the error.

      Even if it logs very little, developers will get more input this way than they do now, because when your machine is crashed, you can't report anything and once it reboots, you have other priorities than digging in the last crash dump.

      However, other than collecting statistics, it might not do any good. Even when you do submit a dump, you get the request to install debug symbol packages and trigger the crash again. Ah, no, that isn't going to happen. Or there will be necessary drivers installed that taint the kernel, and devs wont touch it until replace your video card, untaint your kernel, and trigger another dump.

      --
      Sig Battery depleted. Reverting to safe mode.
    15. Re:Dump kernel to serial printer by TheRaven64 · · Score: 1

      Is the point to give the users something useful? I assumed it was to give the devs something to debug. Asking the user to transcribe a kernel stack trace is not likely to happen, but a QR code that encodes a bit of text saying 'please email to crash@linux.org' followed by the stack trace would mean that you'd actually get something vaguely useful in some cases, rather than the user just shrugging and power cycling the box.

      --
      I am TheRaven on Soylent News
    16. Re:Dump kernel to serial printer by KozmoStevnNaut · · Score: 1

      A lot of newer motherboards actually have hardware serial and parallel ports again. I've been looking at LGA 1150 motherboards, and I would estimate that at least half of them have those ports.

      --
      Eat the rich.
    17. Re:Dump kernel to serial printer by kelemvor4 · · Score: 1

      Who cares, motherboards still come with expansion slots? PCI 2-Serial/1-Parallel Port Host Controller Card $3.67 If you want a serial card, put one in.

    18. Re:Dump kernel to serial printer by CurryCamel · · Score: 1

      Ok, then.
      Then all we need is a printer to hook up to that serial port.

    19. Re:Dump kernel to serial printer by Hal_Porter · · Score: 1

      You could sound the message out in Frequency Shift Keying.

      E.g.

      http://en.wikipedia.org/wiki/K...

      1200 baud is 120 characters per second. So you could dump an uncompressed 80x24 screen of text in 16 seconds. You'd just repeat the dump over and over again.

      Software on a mobile phone would capture the FSK and submit it as a bug report.

      Perhaps a less whimsical way to do it would be to write to a dump file and submit when the system reboots. E.g. the kernel could keep enough of the Bios alive so that it could switch back to real mode and use int 13h to write to reserved bit of the disk.

      --
      echo -e 'global _start\n _start:\n mov eax, 2\n int 80h\n jmp _start' > a.asm; nasm a.asm -f elf; ld a.o -o a;
    20. Re:Dump kernel to serial printer by Anonymous Coward · · Score: 0

      If the QR code can take you there, it isn't really a kernel panic then, is it? Oh wait... you mean the QR code can take you there on A DIFFERENT COMPUTER.

      This method, while fairly nerdy cool, is impractical. The effort to get that error way outweighs just rebooting and hope it doesn't do it again. Of course, this may be the tactic. Make reporting errors HARDER... which makes fixing said errors easier because implementing this will dramatically cut down on crash calls to support. ;)

    21. Re:Dump kernel to serial printer by X0563511 · · Score: 1

      *cough* you can already do all this if you want.

      (just include your magic in the kdump init script / initrd to do with the dump information as you will)

      --
      For large sets, this will be our guide even unto death, for the LORD will work for each type of data it is applied to...
  2. Good idea by Primate+Pete · · Score: 5, Insightful

    I'm not sure how hard it would be to pull this off in practice, but kudos to the team for improving (or at least thinking about) better usability from the kernel out.

    1. Re:Good idea by Anonymous Coward · · Score: 2, Insightful

      how soon until someone accidentally posts a QR code containing confidential information, since they cannot read it themselves.

    2. Re:Good idea by Kjella · · Score: 4, Insightful

      Very unlikely.. the information in a QR code is probably just enough to say "I run kernel X (build Y) and it crashed with error code Z at instruction 12345 in module 123", if it was a kernel dump that's different but I have seen these without the QR codes and there's nothing sensitive there.

      --
      Live today, because you never know what tomorrow brings
    3. Re:Good idea by Zocalo · · Score: 3, Informative

      It might actually be more than that. Worst case, the screen in in 80x25 text mode (assuming a PC), which gives 2,000 binary bits, but if you start playing around with extended ASCII graphics characters you could probably encode a KB of data quite easily. Hardly a crash dump, but easily enough to get across the essentials.

      --
      UNIX? They're not even circumcised! Savages!
    4. Re:Good idea by Guspaz · · Score: 1

      They're encoding the kernel oops. Here's one example oops they're using in that thread:

      http://levex.fedorapeople.org/...

    5. Re:Good idea by davester666 · · Score: 1

      You are confusing what is encoded in a QR code and what is displayed textually onscreen.

      --
      Sleep your way to a whiter smile...date a dentist!
    6. Re:Good idea by TFlan91 · · Score: 1

      you're assuming everyone has a smartphone. this idea is completely cutting off non-smartphone users

    7. Re:Good idea by Anonymous Coward · · Score: 0

      Any data can be encoded in a QR code provided it fits in the image area. It is more data dense than text (assuming 8x8 font), even if you stretch each pixel to twice its dimensions for better camera compatibility. Stretching each pixel to 3x3 puts it roughly on par with text (if 7 bit character encoding were used), but you have the advantage of automated conversion from image with QR scaner. In graphics mode it is a solid win, no way around it, **assuming you were going to capture an image anyway**. If you were just trying to read it from the screen, there is an obvious issue with that.

      In text mode it is less data dense than text, but it's not that common to run like that anymore.

    8. Re:Good idea by Anonymous Coward · · Score: 2, Interesting

      You just have to reprogram the VGA font table with 2 wide by 4 high bitmaps (because you can fit 256 such glyphs into the standard vga font table), and you now have 16000 pixels to work with instead of 2000, a bitmap display with a 160x100 pixel resolution; VGA text mode is 640x400 pixels, and each virtual pixel is 4x4 screen pixels, the standard VGA font is 8x16 pixels.

      BTW, you can't encode 2000 bits into a QR code with a 2000 bit bitmap, as it has parity and spatial clock recovery built in to the code.

      Since the system has crashed, there is no harm in replacing the vga font table, and it is so universal that you can do it on all hardware with VGA (the font table is always at a fixed memory address in PC architecture) without any interaction with device drivers.

      Of course you can also put the VGA into a standard graphics mode with no knowledge of the previous graphics card state, simply by programming known io ports with known values, this actually seems altogether more reliable than relying on the Linux framebuffer drivers which don't always work when X11 drivers are using the hardware, but could be considered reliable if KMS is used.

    9. Re:Good idea by rnturn · · Score: 2, Insightful

      ``Hardly a crash dump, but easily enough to get across the essentials.''

      Here's a crazy idea: instead of working on displaying cutesy graphics images that need to be decoded using a smart phone and a web site, what about actually generating a freakin' crash dump? Is there a technical reason that Linux is unable to do this? If crash dumps are really not possible, how about a plain 'ol text file in the root directory containing the reason for the crash/panic?

      --
      CUR ALLOC 20195.....5804M
    10. Re:Good idea by Primate+Pete · · Score: 2

      No, it's adding smartphone users. I presume the basic panic information would continue to be available.

    11. Re:Good idea by Anonymous Coward · · Score: 1

      Why would adding a QR code preclude generating a crash dump like usual? If you have a crash dump and can use it, the QR code won't change anything. If the after the crash a disk is not accessable, then you now have a format that is easier to "copy-paste" in effect by using a smart phone, or if you don't have one, tediously writing down any other text information on the screwn.

    12. Re:Good idea by Anonymous Coward · · Score: 1

      Crash dumps are possible and exist already, there's just not enough real estate on a monitor to view the entire dump

      Plain text files aren't necessarily possible as the crash means everything is suspect and any writing to the disk a) might fail or b) might cause data loss by corrupting the filesystem

    13. Re:Good idea by thegarbz · · Score: 1

      Just from my own experience the only kernel panic I've ever encountered was due to a failed SATA controller. But conceivably bugs in new beta file systems (you jumped on the brtfs bandwagon yet?), hardddisk failure, SATA failure, or failure in the PCI controller.

      Mind you that's not a reason not to do it, just that there are times when it's not useful. The same machine with the dead SATA controller also had Windows on it which managed to bluescreen without creating a crash dump.

    14. Re:Good idea by Levex · · Score: 5, Informative

      We are encoding the full Oops, i.e. from the "cut here" to the "end trace" marker. Classic won't ever go away, and we had already created a configuration option called CONFIG_QR_OOPS that can disable this at all. In case your distro or you had compiled it in and you don't want to have QR codes on your screen, I just added a new kernel parameter currently called 'qr_oops', which can as well disable it.

      --
      Cheers Levente Kurusa
    15. Re:Good idea by icebike · · Score: 1

      how soon until someone accidentally posts a QR code containing confidential information, since they cannot read it themselves.

      Since the crash handler itself generates the code that takes your phone's browser directly to the report site, this isn't going to be a problem.

      Have you never actually uses a qr code the leads to a web site?

      --
      Sig Battery depleted. Reverting to safe mode.
    16. Re:Good idea by Anonymous Coward · · Score: 0

      I am glad they aren't attempting to use ascii art.

    17. Re:Good idea by Anonymous Coward · · Score: 0

      If you are able to write to the file system, the same error dump is stored to the system logs.

      This is for cases when writing to a file system isn't possible, when writing to the network isn't possible, etc..

    18. Re:Good idea by jones_supa · · Score: 1

      Plain text files aren't necessarily possible as the crash means everything is suspect and any writing to the disk a) might fail or b) might cause data loss by corrupting the filesystem

      How does Windows do it then?

    19. Re:Good idea by jones_supa · · Score: 0

      I'm not so sure about that. :) At least at some point the PARISC architecture has printed an ASCII cow, complete with a speech bubble that says "Your System ate a SPARC! Gah!".

      Open source software, always giving the professional appearance...

    20. Re:Good idea by Pinhedd · · Score: 4, Insightful

      Kernel crashes occur when the kernel enters an inconsistent or invalid state from which it cannot recover.

      When a user program fails, the kernel maintains consistency, can cleanly terminate the process, and can accurately report the cause of the failure if need be (illegal instruction, deadlock, access violation, etc...).

      When a kernel fails the very systems that it relies on to report failures may very well be compromised by whatever caused the kernel to fail in the first place. As such, any kernel fault reporting needs to be incredibly robust and as independent of other kernel mechanisms as possible. Dumping text to a serial terminal is the preferred method because it's incredibly simple and relies on nothing else, meaning that barring a failure of the system memory it should always act as a reliable fallback.

      Dumping kernel memory to a disk might fail if the state of the file system is compromised, if the storage controller is compromised, or if any number of intermediary systems are compromised by the inconsistent state of the kernel. Many operating systems do attempt to dump crash memory to the swap file / swap partition as this is less likely to cause data corruption than writing to a particular file in the file system.

      It "can" be done, but that does not necessarily make it a good idea.

    21. Re:Good idea by Pinhedd · · Score: 1, Informative

      Windows writes crash data to the swap file and even then it fails from time to time.

    22. Re:Good idea by AmiMoJo · · Score: 3, Insightful

      You usually don't want to write to the filesystem in the event of a kernel panic. It could make things worse and corrupt it. Once you kernel panic you are basically screwed and can't rely on any services beyond really low level BIOS stuff to work. Poking some text to the screen buffer is about it.

      Windows does core dumps using a specially reserved area of the boot drive and using low level boot driver calls. It can still fail but at least has a fairly low probability of damaging the filesystem further. I suppose Linux could maybe dump to the swap partition or something.

      --
      const int one = 65536; (Silvermoon, Texture.cs)
      SJW, n: "Someone I don't like, and by the way I'm a fuckwit" - AC
    23. Re:Good idea by Lemming+Mark · · Score: 3, Insightful

      As AmiMoJo also noted, when you have a kernel panic all bets are off regarding which parts of the kernel are OK. If the behaviour of the disk driver or filesystem have been affected, it could damage your filesystem to try to write a kernel dump into a normal disk partition. It might work but it does seem a good idea to be properly paranoid. I didn't know that Windows uses a special reserved area of the boot drive - that does make sense as a solution!

      There have been various systems for crash dumping under Linux, though. I think the de-facto solution (the one that was accepted by the kernel devs) ended up being kdump, which is based on kexec (kexec is "boot directly to a new kernel from an old kernel, without a reboot"). This allows full crash dumps with (hopefully) decent safety, so it is possible to do this if configured.

      In kdump, you have a "spare" kernel loaded in some reserved memory and waiting to execute. When the primary kernel panics it will (if possible) begin executing the dump kernel, which is (hopefully) able to reinitialise the hardware and filesystem drivers, then write out the rest of memory to disk. I'm not sure how protected kdump's kernel is from whatever trashed the "main" kernel but there are things that would help - for instance, if they map its memory read only (or even keep it unmapped) so that somebody's buffer overflow can't just scribble on it during the crash.

      Obviously, having a full kernel available to do the crashdump makes it easier to do other clever tricks, in principle - such as writing the dump out to a server on the network. That's not new, in that there used to be a kernel patch allowing a panicked kernel directly to write out a dump to network, it just seems easier to do it the kdump way, with a whole fresh kernel. Having a fully-working kernel, rather than one which is trying to restrict its behaviour, means you can rely on more kernel services - and probably just write your dumper code as a userspace program! Having just installed system-config-kdump on Fedora 20, I see that there's an option to dump to NFS, or to an SSH-able server - the latter would never be sanely doable from within the kernel but pretty easy from userspace.

      Various distros do support kdump. I think it's often not enabled by default and does require a (comparatively small) amount of reserved RAM. So that's some motivation for basic QR code tracebacks. I suppose another reason is if they expect they can mostly decipher what happened from a traceback, without the dump being necessary - plus, with a bug report you can easily C&P a traceback.

      This discussion has just inspired me to install the tools, so maybe I'll find out what it's like...

    24. Re:Good idea by ericloewe · · Score: 1

      In case of a panic, you don't really want to be messing around with disks, in case you break something.

    25. Re:Good idea by drinkypoo · · Score: 1

      Just from my own experience the only kernel panic I've ever encountered was due to a failed SATA controller.

      In recent times I have also had a kernel panic due to a failed nVidia driver.

      --
      "You're right," Fisheye says. "I should have set it on 'whip' or 'chop.'"
    26. Re:Good idea by Anonymous Coward · · Score: 0

      No, it writes them to crash dump files. I imagine they share code with paging/hibernation. Why wouldn't they? But what was your point again? Trolling?

    27. Re:Good idea by Anonymous Coward · · Score: 0

      VGA Text mode is actually 720x400. Every 8x16 character has a ninth column on the right that may or not me a copy of the eighth column.

      Most Linux distributions already run the console in the native resolution of the screen it's connected to, so reprogramming the character generator seems unnecessary.

    28. Re:Good idea by Anonymous Coward · · Score: 0

      FreeBSD has been dumping kernel cores to swap for as long as I can remember. It's not as hard as claimed here.

    29. Re:Good idea by awshidahak · · Score: 1

      I have a smartphone, but it can't scan QR codes because the camera is too crappy.

    30. Re:Good idea by Pinhedd · · Score: 1

      I never claimed that it was hard. I claimed that it's not bulletproof and it requires substantially more forethought than at first seems

    31. Re:Good idea by Pinhedd · · Score: 1

      Says the AC.

      My understanding is that crash dumps are written to the swap file and the crash dumps are extracted during the next boot when the kernel is once again in a consistent state

    32. Re:Good idea by Anonymous Coward · · Score: 0

      Correct.

    33. Re:Good idea by Anonymous Coward · · Score: 0

      Yes, check kdump. An emergency kernel image is booted on oops, saves the crash dump, then reboots the system.

    34. Re:Good idea by Anonymous Coward · · Score: 0

      Most Linux file systems allow similar reserved areas (mainly used for bootloader data), so it could be implemented like in Windows. It still involves a lot more code than a dump to a serial TTY.

    35. Re:Good idea by Spugglefink · · Score: 1

      I have a couple of bad micro SD cards. Put one into a card reader on a Linux machine, try to read some of the files, and presto magnifico, kernel panic every time. Windows handles this corruption a lot more elegantly, incidentally, but the hardware is toast either way.

    36. Re:Good idea by strikethree · · Score: 1

      If crash dumps are really not possible, how about a plain 'ol text file in the root directory containing the reason for the crash/panic?

      It is easily possible to do what you want. Trivially so... so why isn't it done? There is an answer to that question my friend and the answer is this:

      A kernel will panic when it detects that the environment it is running in is not the same environment it thinks it is running in. What this means is that the kernel can no longer be certain of anything, up to and including whether or not it can write coherently to a file system. Rather than potentially trashing your file system, the kernel just prints to the screen as nothing can be damaged by that... but even that is dangerous. What the kernel thinks is the screen may not actually be the screen anymore.

      In other words, once there is corruption in the kernel's environment, all bets are off and nothing is guaranteed, not even writing an error message to the screen. Writing coherently to a file system is actually a fairly complex event and is extremely dangerous in this situation.

      --
      "Someone needs to talk to the tree of liberty about its ghoulish drinking problem." by ohnocitizen
    37. Re:Good idea by strikethree · · Score: 1

      Thank you. You are awesome! I like the compile time and parameter passing configuration options to both be available. You are smart and doing it right. Keep on keeping on. :)

      --
      "Someone needs to talk to the tree of liberty about its ghoulish drinking problem." by ohnocitizen
    38. Re:Good idea by dizdar · · Score: 1

      “Yeah, that sounds bad. Have you checked the log files for errors?” I said, “Indeed, I would do that if I hadn’t broken every component that a logging system needs to log data. I have a network file system, and I have broken the network, and I have broken the file system, and my machines crash when I make eye contact with them. I HAVE NO TOOLS BECAUSE I’VE DESTROYED MY TOOLS WITH MY TOOLS. My only logging option is to hire monks to transcribe the subjective experience of watching my machines die as I weep tears of blood.”

      Quote from here

  3. No. by Anonymous Coward · · Score: 0

    http://shouldiuseaqrcode.com/

    Just kidding, I think it's a good idea.

  4. Huh? by Anonymous Coward · · Score: 2, Insightful

    And if no one with a phone is there?

    1. Re:Huh? by ledow · · Score: 5, Interesting

      You lose nothing.

      Anything that could have been logged to disk will have been.

      Anything that couldn't is probably FAR TOO LONG to even start taking down any other way and almost certainly will cut through the screen buffer limit anyway (every kernel panic I've had - which is about a dozen I think - was like that).

      Let's compare and contrast to, say, Windows. Bluescreen with minidump and error code that has 7 million potential causes.

      At least with a QR code, for those totally undumpable errors, you stand half a chance of snapping it and providing several kiloybytes of useful information for someone to work from - that they know hasn't been transcribed wrongly. And can be taken from even a completely hung machine.

      It's a good idea. Someone needs to make a patch for it. The biggest problem - as always - will be making sure you can get to the point that you can write to the video memory and do so with enough processing / storage to be able to write something useful into the QR code.

    2. Re:Huh? by Anonymous Coward · · Score: 0

      What is the size limit of a QRcode? Doesn't increasing the density of information contained in the image lead to the possibility of corrupt/missing data due to poor camera quality, motion blur, over/under exposure, or something along those lines?

      I'm not a big fan of QR codes, but I can see this being useful. That is, if it doesn't turn out to be more trouble than it is worth.

    3. Re:Huh? by ledow · · Score: 2

      Just over a kilobyte, I think.

      But that can be compressed as it doesn't NEED to be human-readable any more. So you can easily fit in a few Kb of useful data, I should think.

      And as data density rises, so does the error correction but if the QR code reads (you have a device that reads them directly, why bother to snap a shot then process the image separately?) then it was a success. Hover and hold until you get the beep, on almost any smartphone made this decade.

      But, no, you won't get CORRUPT data. The QR code either works or doesn't, like barcodes either scan or don't. You don't scan a book and get sold a DVD. Same principle.

      What you might have is trouble getting a decent QR read on a crappy low-res camera but that's - again - no worse than the prior situation where I've seen kernel-panic screenshots you can't even read, let alone decode.

    4. Re:Huh? by Guspaz · · Score: 4, Informative

      QR codes use Reed-Solomon error correction, so you don't get missing or corrupt data (in that the QR reader knows if it reconstructed all the data correctly or not). Readers will typically only "read" the code if they manage to reconstruct the entire thing. The error correction helps compensate for poor image quality, and the fact that the image is monochrome makes things like exposure less critical. There are four levels of error correction, which allow for the reconstruction of 7%, 15%,25%, or 30% of codewords respectively.

      QR codes can store up to a bit under 3KB of data (the largest size with the lowest error correction), but I couldn't get my phone to read any v40 QR codes (the largest ones), and v25 took some effort. The plan for QR codes of kernel oopses will probably fail for that reason, if nothing else (that they need v40 codes to store an entire oops, and few phones will read v40 codes).

    5. Re:Huh? by Kjella · · Score: 1

      What is the size limit of a QRcode? Doesn't increasing the density of information contained in the image lead to the possibility of corrupt/missing data due to poor camera quality, motion blur, over/under exposure, or something along those lines?

      They contain quite a bit of error correction so either it won't decode or it will with >99.99% probability decode correctly. You can store almost 3kB in a 177x177 QR code, but for the same physical area it's a trade-off between information density and readability. The bigger you make the QR "pixels" the less camera resolution you need, but the less information you can store as well.

      --
      Live today, because you never know what tomorrow brings
    6. Re:Huh? by Rich0 · · Score: 1

      Yup. For the most part the only way I can capture a panic/dump is by phone anyway, and a QR code would allow me to capture a lot more info than 25 lines of text in an image file.

      If I post an image, I'm lucky if anybody looks at it. If I post the text of the error, there is a good chance that somebody will stumble on it using Google and actually make some use of it.

    7. Re:Huh? by MightyYar · · Score: 2

      I'm sure the folks discussing this are smarter than I am, but this is Slashdot, so I'll do some uninformed speculation anyway. Because it's fun.

      The sample oops is 3134 bytes in plain ASCII. Plain old zip gives 1589 bytes, xz does a little better with 1492 (and only 1446 with lzma). I believe xz could do even better if the dictionary could be fixed and thus not embedded in the file. Doing a base64 encode on that gets to 1929 bytes.

      So it looks to me (based on my sample of one...) like you could use version 27 or 28 with the lowest level of error correction. Probably let the library just scale it to whatever size is necessary.

      --
      W..w..W - Willy Waterloo washes Warren Wiggins who is washing Waldo Woo.
    8. Re:Huh? by Anonymous Coward · · Score: 1

      Or they could invent a binary oops format.

      All I care for understanding an oops is the stacktrace (4/8 bytes * stack-depth) and the contents of the registers (8bytes * 20 on x86_64, 4bytes * 33 on ARM, IICC) and a condition code (4 bytes), that's more like ~320 bytes.

    9. Re:Huh? by nadaou · · Score: 1

      > (that they need v40 codes to store an entire oops, and
      > few phones will read v40 codes).

      few of today's phones perhaps. but the development of phones is
      not exactly at a standstill, when QR-oops gets released with some
      future kernel what will the phone technology support then?

      to quote Doc Brown, you have to think four dimensionally.

      --
      ~.~
      I'm a peripheral visionary.
    10. Re:Huh? by Anonymous Coward · · Score: 0

      There's no limit in the QR code itself, just increase its dimensions. The only limit is how good the reader (camera) is. And since you want it to be readable you want to be conservative when guessing how good 'good' is.

    11. Re:Huh? by ncc74656 · · Score: 1
      curl http://levex.fedorapeople.org/... | lzma -z9c | base64 | qrencode -t ANSIUTF8

      This produces output too large to fit on most screens unless your console font is ridiculously small or your screen resolution is higher than most (my notebook has a 15" 1680x1050 panel). Also, it appears the console (on Ubuntu, anyway) doesn't handle UTF-8. Falling back to ANSI, it's even farther from being feasible.

      --
      20 January 2017: the End of an Error.
    12. Re:Huh? by Levex · · Score: 2

      Yes this causes a big output since my (and I suspect yours as well) terminal uses size 12 fonts, but in the crash situation we do it one screen pixel per QR pixel. There is a file called qr_code.png in that folder I gave in the thread, which is the actual result unscaled. It's 147x147 which can fit on every screen I know of.
      How to handle textmode is still an ongoing question. We'll first get it working on the framebuffer then maybe we'll find a solution for textmode, if it's even possible.

      --
      Cheers Levente Kurusa
    13. Re:Huh? by MurukeshM · · Score: 1

      That image is practically unreadable. As pointed out later on, the 600x600 scaled version worked much better and scaling each QR pixel by 3 is the current idea.

    14. Re:Huh? by serviscope_minor · · Score: 1

      Plain old zip gives 1589 bytes, xz does a little better with 1492 (and only 1446 with lzma)

      Interesting. I guess the xz header is marginally heavier than the old lzma tool. I think the compression algorithms are the same.

      Doing a base64 encode on that gets to 1929 bytes.

      wot no base 85? :)

      The base85 encoding scheme is slightly more expensive (requires heavy use of integer division), but is more efficient (5 to 4 versus 4 to 3). Would give 1808 bytes instead.

      Given the rather uniform nature of kernel crashdumps, you might be better off with Huffman encoding on 16 bit pairs, with a custom dictionary.

      Either way though it looks perfectly possible.

      --
      SJW n. One who posts facts.
    15. Re:Huh? by Levex · · Score: 1

      I could read it with my phone, but yes that's what we agreed upon. I will implement scaling in the coming days

      --
      Cheers Levente Kurusa
    16. Re:Huh? by Hamsterdan · · Score: 1

      "If I post an image, I'm lucky if anybody looks at it. If I post the text of the error, there is a good chance that somebody will stumble on it using Google and actually make some use of it."

      ^-THIS!

      While on the subject, any way to get people to stop doing how-tos with video? I can't print a video

      --
      I've got better things to do tonight than die.
    17. Re:Huh? by wonkey_monkey · · Score: 1

      The error correction helps compensate for poor image quality

      As long as people aren't abusing it to do things like this.

      --
      systemd is Roko's Basilisk.
  5. long-term applicablity? by Anonymous Coward · · Score: 1

    I worry about the long-term applicability of QR codes. In 10 years, are they still going to be convenient to read, or is some guy going to have to dig out an old smartphone to read the error output from his decade old system?

    1. Re:long-term applicablity? by istartedi · · Score: 2

      No, just rebuild the kernel. It should be a build option for text or QR panics.

      --
      For all intensive purposes, "whom" is no longer a word. That begs the question, "who cares"?
    2. Re:long-term applicablity? by Nikker · · Score: 1

      The QR code has really nothing to do with smartphones. You could take a picture of it with any camera and upload it. QR Codes are just a software library that evaluates based on white and black marks within the picture.

      --
      A loop, by its nature, continues. If that didn't make sense, start reading this sentence again.
    3. Re:long-term applicablity? by phantomfive · · Score: 1

      I strongly support backwards compatibility, but chances are you won't have anyone to send it to, if you're running a 10 year old kernel. No one will want to debug that, except maybe yourself, but then you'll probably have all the stuff you need to read it (and might even have the text output piping to somewhere else, too).

      --
      "First they came for the slanderers and i said nothing."
    4. Re:long-term applicablity? by The123king · · Score: 1

      People were probably saying the same thing half a century ago when barcodes were introduced

      --
      If you gave me a choice between a printer and a giraffe with explosive diarrhoea, i'll get my ladder and my raincoat
  6. Bloat by Anonymous Coward · · Score: 0

    Great, now even the kernel depends on qr libraries. What do I use now? /sarcasm off

    Who else remembers the heated discussions then systemd did this? But I forgot, if the kernel does it it is great, if systemd does it, it is bloat

  7. April first is over ! by Anonymous Coward · · Score: 0

    It that this is a joke , what a strange idea !

  8. Not enough data by MichaelSmith · · Score: 2

    QR codes are highly redundant and don't actually contain much data. There isn't enough space for a stack trace or anything like that. Probaby not even a register dump on those big modern CPUs.

    1. Re:Not enough data by smittyoneeach · · Score: 2
      --
      Get thee glass eyes, and, like a scurvy politician, seem to see things thou dost not.--King Lear
    2. Re:Not enough data by wiredlogic · · Score: 1

      The 40-L QR code format (177x177) encodes 2953 bytes. That is a useable amount of data for a kernel dump.

      --
      I am becoming gerund, destroyer of verbs.
    3. Re:Not enough data by Anonymous Coward · · Score: 2, Insightful

      1) No, 2953 bytes is not enough for a "kernel dump". "Kernel dump" as a term/phrase doesn't even make any sense, come to think of it. Did you mean a stack trace? Register dump? Because "kernel dump" makes me think of "memory dump", i.e. dumping all contents of RAM to swap + rebooting system (which later notices the crash dump header in swap and hopefully extracts it).

      2) If just a stack trace or register dump: 40-L may be too high a resolution to reliably work when using a mobile phone camera to take a picture of an LCD screen. There's often too much noise (high ISO) in this situation. Lower-resolution QR codes means more likely successful recognition and decoding. http://en.wikipedia.org/wiki/Image_noise#Low_and_high-ISO_noise_examples

      3) What I haven't seen mentioned: how exactly do the developers plan on printing a QR code when someone's using a text-only console? Don't tell me "everything on Linux console uses a graphical framebuffer now" because that's completely false (lots of folks disable this, and some distros disable it by default). What's going to happen when the kernel crashes? It uses BIOS INT 0x10 to switch to 320x200 VGA mode and show a QR code? Is it going to change the on-screen font masks/bitmaps to display "tiled" pixel data that represents a QR code?

      I have a better idea: how about just keeping things how they are. People using mobile phones to take a photo of a stack trace + register dump mostly works reliably (barring wobbly hands). Console fonts are quite legible even if the person has consumed too much cappuccino, while QR codes, especially high-resolution QR codes, are going to be a lot less legible in that situation. My reaction to this proposal would be: what does using a QR code get us that we don't already have available with existing technology and methodologies in place? (FYI: the correct answer to that question is: "nothing")

    4. Re:Not enough data by Guspaz · · Score: 1

      Except L implies the lowest amount of error correction, making it the hardest to read, and few devices will read 40 codes anyhow. They're enormous.

    5. Re:Not enough data by wiredlogic · · Score: 1

      You don't need high levels of error correction. That is meant for printed codes that may be damaged. You aren't likely to be displaying on a screen that is so broken that large chunks are missing.

      --
      I am becoming gerund, destroyer of verbs.
    6. Re:Not enough data by Anonymous Coward · · Score: 0

      Good luck getting 177x177 on a 80x25 terminal!

      Linux is already so much better than Microsoft and their typical "unknown error" cop-out so there's no need to improve anything.

    7. Re:Not enough data by Guspaz · · Score: 1

      It also means that, in marginal conditions, it can reconstruct code blocks that it didn't manage to read correctly. It's not just useful for printed codes.

    8. Re:Not enough data by jeremyp · · Score: 1

      I have a better idea: how about just keeping things how they are. People using mobile phones to take a photo of a stack trace + register dump mostly works reliably (barring wobbly hands).

      ^^ This.

      Add a bit of OCR software and you have a system that can both be read by humans without the aid of special software and by computers to produce textual output with a bit of special software (you need a bit of special software anyway for QR codes, so you don't lose anything).

      --
      All I want is a secure system where it's easy to do anything I want. Is that too much to ask ~~ Randall Munroe
  9. They make about as much sense as anything else by Anonymous Coward · · Score: 1

    Inscrutable error messages seem to be par for the course when you're looking at kernel panics.

  10. Easier to simply change the console font!! by Anonymous Coward · · Score: 0

    Just change the console font to a smaller one!! And take a photo with your phone. Or just run headless with a serial logger. Why add extra complexity to something that is really simple and already adequate? There is no problem to be solved.

  11. Wish other OSs did this... by jpellino · · Score: 2, Insightful

    Anything's an improvement over:
    "My computer froze."
    "What happened?"
    "It put some message on the screen."
    "What did it say?"
    "Something about an error."
    "What error?"
    "I dunno. It had some numbers and letters and stuff."

    --
    "Win treats sysadmins better than users. Mac treats users better than sysadmins. Linux treats everyone like sysadmins."
    1. Re:Wish other OSs did this... by Anonymous Coward · · Score: 5, Insightful

      And with QR codes, the conversation becomes this:

      "My computer froze."
      "What happened?"
      "It put some white and black crap on the screen."
      "What did it say?"
      "How the fuck should I know? It was random white and black dots! Like a fucking Rorschach test!"
      "It probably was a kernel panic. What was the error?"
      "I dunno, because like I said, ALL IT HAD WAS SOME DOTS AND SHIT. Then it rebooted! So it's gone! FUCK!"

      How is that an improvement? Yes it's a change, but it's not an improvement.

    2. Re:Wish other OSs did this... by Anonymous Coward · · Score: 0

      You say that... but...you know, a user that's too inept to even try to read an error message...

      I don't care about unless you're paying me to.

      And even if you are paying me, I generally still don't care, but I'll smile while I pretend to.

      It isn't all "techbabble" or "gobbledygook"... some things may be over your head. If you don't understand it, fucking own up and admit it. Then record the damned words.

      That a QR code makes it easier still means you remain a helpless fucking kitten that can't read without a babysitter.

    3. Re:Wish other OSs did this... by ToasterMonkey · · Score: 1

      Anything's an improvement over:
      "My computer froze."
      "What happened?"
      "It put some message on the screen."
      "What did it say?"
      "Something about an error."
      "What error?"
      "I dunno. It had some numbers and letters and stuff."

      "Show me!"
      "I already rebooted it."

      Personally I would rather have a more sophisticated crash dump system, like other OSs, because whatever is going to fit in a QR code isn't going to help much unless you're looking up known issues in an enterprise Linux vendor's bug database. That's assuming they can cram a stack trace into QR codes, AAAAND you have a problem that leaves a predictable stack trace.

      I don't remember the last time I had a Solaris system crash that didn't leave a dump (try not to giggle). It would have be be way back pre-ZFS, on a janky server without a dump partition. I'm also reading that Windows saves memory dumps to the page file going back to XP.

      You go into the average Linux environment and even if it's not a "paid support is for wusses" camp, you are _EXTREMELY_ unlikely to have anything of value to send to support. Maybe your hawt X86 firmware will have logged an issue! ROFL.

      Reboot and hope for the best :\

    4. Re:Wish other OSs did this... by Anonymous Coward · · Score: 1

      I can't think of anyone I know who can't identify QR codes. They're stamped over fucking everything in retail now.

    5. Re:Wish other OSs did this... by Anonymous Coward · · Score: 3, Insightful

      I doubt the kernel developer that implements this would forget to put the message

      "Make a photo of this black-and-white dots and send it to crash@kernel.org so we can try to figure out what happened. Thanks for making the Linux kernel better!"

      at the top of the black and white dots.

    6. Re:Wish other OSs did this... by AmiMoJo · · Score: 1

      I think most people with smartphones recognize QR codes now, so there is at least a chance they will be able to take an image or use a decoder app on it. Well, next time anyway. And hopefully it will have enough info for you to know what happened.

      --
      const int one = 65536; (Silvermoon, Texture.cs)
      SJW, n: "Someone I don't like, and by the way I'm a fuckwit" - AC
    7. Re:Wish other OSs did this... by Prototerm · · Score: 1

      And suppose you don't have a smartphone?

      --
      "My country, right or wrong; if right, to be kept right; and if wrong, to be set right." --Senator Carl Schurz (1872)
    8. Re:Wish other OSs did this... by Flammon · · Score: 1

      There's no need to take a photo and send it; the QR code can include a URL with crash info. The user would simply need to scan it and follow the link.

      The message could be: "Please scan QR code to report Linux kernel bug."

    9. Re:Wish other OSs did this... by Anonymous Coward · · Score: 0

      This. Is. Insane.

      Do you really really really think this is what will happen? So now, instead of just rebooting and see if it does it again... the user will have to get a phone out, figure out how to scan this magical thing... then email (possibly/probably from a private account)... possibly/probably manually typing in the email address and subject, etc...

      Ain't. Gonna. Happen.

    10. Re:Wish other OSs did this... by tomlouie · · Score: 1

      "You are infected with a virus! Scan this QR code RIGHT NOW to clean your OS!"

    11. Re:Wish other OSs did this... by mlw4428 · · Score: 1

      I know many people (even those in their 30s) who can't easily ID a QR code.

  12. So... by Anonymous Coward · · Score: 0

    Is there something stopping people from taking a picture of a current kernel dump?

    1. Re:So... by jones_supa · · Score: 1

      There isn't, and that is quite common actually. However the QR code could encode more information and, with some nifty algorithms, can be automatically interpreted from a photograph to kernel crash information files.

  13. Really good idea! by Anonymous Coward · · Score: 0

    This is a damn good idea!

    Nothing much to say, posting as an AC, post will thus stay moderated to 0 and nobody will pay attention to this comment, but I just wanted to have a place to say that this is great!

    Here, I feel better posting these few bytes for the foreseeable future.

  14. Headless systems or Virtual Machines? by Anonymous Coward · · Score: 0

    I work at a small site ( 100 physical machines) used for heavy computation and simulation in a compute grid. They're all headless blades with lots of memory and disk and we connect though a networked application called IPMI either in Java or via web-based management interface on a special management port. There are no graphics or text screens connected to these systems.

    So, how would such a code displayed? Would it be integrated into the IPMI console, which I understand is becoming a data center standard. We know there are memory or fan problems or if the machine has been opened when there's a logging event in the IPMI log, even down to the memory bank that had the error. Error logs in Fedora show nothing or say there's an error but not where.

    This is a great idea for a desktop, but of little use in a datacenter unless it's integrated with the datacenter management architecture.

    1. Re:Headless systems or Virtual Machines? by Anonymous Coward · · Score: 0

      With virtualisation, you typically get a virtual console (just like a serial console) - which means you can just copy and paste the plaintext Oops from it.

      This QR based concept is meant to catch the typical user situation, the system Oopsed, froze and no longer responds - there is a lot of text on the screen, but it might have partially scrolled off screen and is generally quite hard to catch (taking a photo works, but it order to use that data, someone -the submitter or the developers- have to write it down, lots of text and hexadecimal numbers - with a high probability for typos). It is not usable for pure text consoles (embedded devices) or virtual machines, but there you already have better means to catch the textual representation of it.

      I like the idea, but fear that it won't actually work in practice, for being too invasive or complex when the the kernel goes for a walk or that the QR codes are too small for being readable by a normal phone (and a not top end phone). While, of the given examples, I can easily decode the 600*600 pixel example, but the 147*147 pixel version is not decodable by my phone.

    2. Re:Headless systems or Virtual Machines? by Anonymous Coward · · Score: 1

      Or enable SOL...

  15. Progress!!! by NapalmV · · Score: 0

    So, we're gonna replace the old school "Error 256" messages with bar codes? Doubleplus Insightful!!!!

    1. Re:Progress!!! by Anonymous Coward · · Score: 0

      I'm not sure you know what a kernel panic is.

  16. You get the prize of dumbest comment on slashdot by Anonymous Coward · · Score: 2, Insightful

    Really? You think your end user who hasn't got the brains to take a screenshot of human readable text and send it to you and who probably has never even heard of QR codes is going to have the presence of mind and technical knowledge and ability to take a picture of the code and send it to you?

    That has to be one of the dumbest things I've heard on slashdot...and that's REALLY saying something.

    It's even more worrying that the Linux Kernel devs are giving this idea the time of day.

  17. simple approach by belmolis · · Score: 1

    How about a slight modification of a classic: Just change the background color of the display. Even 1 byte RGB gives you 256 messages. (I guess lighting would affect this.)

    1. Re:simple approach by jones_supa · · Score: 1

      How about a slight modification of a classic: Just change the background color of the display. Even 1 byte RGB gives you 256 messages. (I guess lighting would affect this.)

      Even if we could accurately capture the precise background color value of the display, how could only one byte give enough information for anything useful?

  18. You use a camera regardless by Anonymous Coward · · Score: 0

    The article was illustrated with an image of a screen of debugging code. The image was taken with a camera. If you can take a picture of a QR code, bout can take a picture of a dump of error code.

  19. No way! by msobkow · · Score: 3, Funny

    I am NOT buying a fucking cell phone to read a core dump.

    Just fuck right off already. Not everyone wants a digital leash.

    --
    I do not fail; I succeed at finding out what does not work.
    1. Re:No way! by adnonsense · · Score: 1

      You don't need a cellphone to decode QR code images.

      Just sayin', like.

    2. Re:No way! by msobkow · · Score: 1

      Troll?

      How so?

      Because I don't want to buy into the digital leash mentality that "everyone owns a cell phone?"

      Fuck you.

      --
      I do not fail; I succeed at finding out what does not work.
    3. Re:No way! by Levex · · Score: 1

      You don't have to buy a smartphone. This is entirely *optional* and 'classic' will not ever go away.

      --
      Cheers Levente Kurusa
    4. Re:No way! by Anonymous Coward · · Score: 0

      I think you should say 'digital leash' more.

      It makes you sound like a total bad-ass maverick!

    5. Re:No way! by Anonymous Coward · · Score: 0

      Assumption is that if you work on the kernel then you won't need it, and if you want to help, it makes it easier than writing down by hand what was written on the screen. No cell phone but still don't want to write it down by hand? Take a picture with a camera, and use a QR decoder on the image. Bam. Or don't use it.

      Hence, -1, troll.

  20. Re:You get the prize of dumbest comment on slashdo by Anonymous Coward · · Score: 1

    The point here is that in a kernel panic, there's no way to save a screen shot or copy-and-paste anything into a file - all you have is (probably) a full kernel dump and a message on the screen, which can be transcribed with errors, and Step 2 is rebooting.

  21. This would be nice, but by Anonymous Coward · · Score: 0

    it could wrong in some interesting ways. For example, it could transmit an infection from you desktop to your phone...

    1. Re:This would be nice, but by jones_supa · · Score: 1

      That would be so tricky that it's probably not feasible for the attacker. Basically you would have to both have a vulnerability in the QR code processing code in the phone and, a compromised Linux kernel in your PC which injects malicious data into the dump.

      But yes, you raise an interesting point.

  22. Just drop to debugger mode on reboot. by VortexCortex · · Score: 1

    This is why my alternate OS eschews absolute minimalism and includes mandatory "userspace" features in its design, so it can rely on them being present. I handle the whole (multi) boot process within the OS, so I can launch other OSs from within a running instance. Boot process integration was necessary for firmware segmented loading (optionally put part of the OS in firmware, see: Coreboot). Since the OS handles boot itself it can avoid immediately crapping all over memory at boot and instead upon soft-boot the early-environment kernel detects whether the OS is resident in memory, whether the kernel halted properly in a "panic" or froze due to other lockup/powerloss, whether an unrecoverable error occurred, what the error message(s) are, walk the memory manager and move pertinent information out of the way into previously unused memory pages, then load the 2nd stage kernel into RAM with the debug option enabled (unless --no-debug is passed by its bootstrap loader's manual override). Finally the OS continues its boot process and its built in debugger launches, so I can read any detailed prior error messages left, save/print them, and attempt to debug the last thing the kernel or any of its programs was doing, or mark the prior memory free and return to standard operations. While there is no guarantee the RAM is still valid I can even attempt to restore program states and resume operation after a "panic" (if the bug was something small fixable via correcting a few erroneous bytes of memory).

    Unlike Linux, my kernel includes many dedicated features of a full operating system, such as text editor, assembler, disassembler, compiler, file-system, debugger etc. so it is larger than Linux kernel itself in footprint. I can optionally remove some of these essential features if needed for my embedded projects, but I never have since memory isn't that expensive -- Being able to debug via serial console a glitched robot after reset is a godsend. Less modularity comes with its downsides, but the pros of being able to deploy programs as cross platform byte-code and have the OS "compile on install" programs into its private internal file system, and cryptographically sign the cached binaries to optionally secure the entire boot process and all running processes, far outweighs the cons. Being able to debug itself is just a side effect of other design decisions.

    My "Toy" OS design has many similarities with classic OSs of old (bytecode instead of BASIC baked in), and seeks to address problems I foresaw with lack of hardware enforced sandboxing API in modern OSs: My kernel can run a program or its modules as emulated bytecode if the code is untrusted, or is loaded as a plugin. I use more than just the two userspace / kernelspace execution privilege levels in order to hardware-enforce something like a submodule level SEGFAULT to grant applications more control over their plugins or runtime scripts (also compiled as bytecode by the OS via scripting API).

    4 execution privilege rings are available on x86, as opposed to 2 on ARM and thus some security features are not hardware enforced on ARM -- this is an instance of modern monolithic OS design influencing hardware design (everyone's using only 2, so ARM has 2 rings), much as C'ish calling constructs influenced x86 chipset instructions (ENTER, LEAVE, etc.) which BTW lead to inherently insecure practices such as placing mutable parameters and code pointers on the same stack (stack smashing / overrun is prevented via separate call and data stacks, kind of like good ol' FORTH used -- I'm only able to do so because all executable code is required to pass through the OS compiler / sanity checker).

    I'm now seeing many of these features appear piecemeal in higher level constructs: E.g. Google's NACL bytecode for Chrome "apps", or .NET bytecode being able to go native, or Android's JIT and its native code interface, etc. I think future OSs would benefit from adopting better software deployment systems by incorporating a compiler / debugg

    1. Re:Just drop to debugger mode on reboot. by Anonymous Coward · · Score: 1

      Am intrigued by what you're saying. It's either a late april fool, or what sounds like a very interesting project - can you provide a link to details of the OS?

    2. Re:Just drop to debugger mode on reboot. by Zontar+The+Mindless · · Score: 1

      Or better yet, a link to source or installation image.

      --
      Il n'y a pas de Planet B.
    3. Re:Just drop to debugger mode on reboot. by Anonymous Coward · · Score: 0

      better still, a link to "PhRooT-LooP"s (lol) loopiness testimonial, "LIVE" (absolutely live, lol) http://slashdot.org/comments.p... Hahahahaha

  23. The matrix by BlazingATrail · · Score: 3, Insightful

    I prefer all my BSOD, crashes and core dumps to use the Matrix dripping green characters and pixel crap method of reporting errors. It's easier to see the patterns. Guru meditation # 42

    1. Re:The matrix by Prototerm · · Score: 1

      Extra points for the Guru Meditation Error! C=

      --
      "My country, right or wrong; if right, to be kept right; and if wrong, to be set right." --Senator Carl Schurz (1872)
    2. Re:The matrix by strikethree · · Score: 1

      LoL, I was terrified the first time I saw Guru Meditation Mode. I thought I had broken my computer forever... that being said, there is no #42 (maybe a funny Douglas Adams reference?).

      http://en.wikipedia.org/wiki/G...

      --
      "Someone needs to talk to the tree of liberty about its ghoulish drinking problem." by ohnocitizen
    3. Re:The matrix by BlazingATrail · · Score: 1

      Of course,.... 42 is the answer but we will never know the ultimate question!

  24. Great idea but limited by zzyzyx · · Score: 1

    I think it's a great idea to make error reporting easier. I recently experienced an oops but didn't report it because there was no immediate way to do it. However relying on a framebuffer being present is a mistake, in my case it was on an embedded headless system, and framebuffers generally are available only on desktops which are far from being the majority of Linux usage.

    1. Re:Great idea but limited by Levex · · Score: 1

      If your embedded board has a HDMI connector, then there is a great chance there is a framebuffer as well. AFAIK, most embedded system only ship a framebuffer and somekind of serial output interface. The real problem in fact is how would you get that framebuffer after a crash occured and you don't have a screen nearby to connect to the HDMI/VGA connector.

      --
      Cheers Levente Kurusa
    2. Re:Great idea but limited by serviscope_minor · · Score: 1

      Yeah, the more deeply embedded, the bigger the pain. Most embedded things have some sort of serial port, and I believe you can send plain text dumps over that.

      --
      SJW n. One who posts facts.
    3. Re:Great idea but limited by Levex · · Score: 1

      That already exists in the kernel by providing "console=ttyS0,9600" or so on the command line. :-)

      --
      Cheers Levente Kurusa
  25. Kernel "PANIC" by Anonymous Coward · · Score: 0

    Can we please replace the word "panic". Panic is a feeling, felt by living creatures, not computer programs.
    This is not a Disney movie. Computer code does not "panic".

    1. Re:Kernel "PANIC" by Anonymous Coward · · Score: 0

      Can we please replace the word "panic". Panic is a feeling, felt by living creatures, not computer programs.

      This is not a Disney movie. Computer code does not "panic".

      How about "Don't Panic"?

    2. Re:Kernel "PANIC" by Zontar+The+Mindless · · Score: 1

      From our friends over at Merriam-Webster:

      panic
      noun

      : a state or feeling of extreme fear that makes someone unable to act or think normally

      : a situation that causes many people to become afraid and to rush to do something

      You were saying...?

      --
      Il n'y a pas de Planet B.
    3. Re:Kernel "PANIC" by Anonymous Coward · · Score: 0

      No, You are saying, from you and your friends at the nuthouse http://slashdot.org/comments.p...

  26. Re:And people think Linux is GOOD? REALLY? by Zontar+The+Mindless · · Score: 1

    Do you even know what a kernel panic is, or what is likely to cause one?

    --
    Il n'y a pas de Planet B.
  27. Re:Worst idea I've heard in years. by Levex · · Score: 1

    They won't disappear, it's going to be optional and will be seamlessly available next to the text crash.

    --
    Cheers Levente Kurusa
  28. It would help, some. by Anonymous Coward · · Score: 1

    The current model of kernel panics is broken.
    Currently, we can diagnose a fault if: The user has access to the console (unlikely, machines are usually in data centres, though some of them manage to set up KVM properly) and can take a screen shot (more likely, nowadays, thanks to phone cameras) and the useful information (the backtrace) hasn't scrolled off.

    This solution addresses the third part.It does nothing to address the first; and makes the second worse. (You really expect the QR code to be useful after it's been displayed on the crustiest monitor in a datacentre, captured at a weird angle on a phone and sent to us as a badly compressed jpeg?)

    I understand the technical reasons why the crash cannot be written to disk - the kernel has crashed, disk drivers are in a bad state.
    But can we please write to a reserved partition with a dedicated driver, or something? Or make netconsole a default?

  29. Just show smileys by Anonymous Coward · · Score: 3, Interesting

    Linux must be ubuntufied. We need to hide everything because it's way to complicated for the common user or his dog. We need more splash-screens to hide all the stuff that makes no sense anyway. Who want's to know if a module didn't get loaded? As a matter of fact, we should remove unnecessary logs (like message, dmesg, audit), because nobody gives a rats ass. Also: Why have a console? Or init-mode 3 ? People want the graphical stuff, let's get rid of all the ballast like command-line. Those few people still using ancient tools like 'make', 'vi' or (o my god) 'ifconfig' should go and find themselves something else to brag with. Linux MUST go mainstream.

    1. Re:Just show smileys by jones_supa · · Score: 1

      That is somewhat a problem, I agree. Please make this QR code display friendly, such as "Your operating system kernel has crashed. For advanced users, a QR code containing additional information is provided below. By taking a photograph of it, you can help the developers to solve the problem. [QR code picture] Press any key to restart." Maybe include the Tux logo there to show that this is about Linux.

      Wayland should improve the situation too, as we can settle with a proper graphics more earlier at the boot. The current situation of flashing back and forth a framebuffer console and some kind of clunky boot animation is terrible. And god forbid if there is some spurious messages shown as "kvm: disabled by bios" which will only confuse the newbie to think that something is wrong.

      Yeah. Make it smooth, I say.

    2. Re:Just show smileys by serviscope_minor · · Score: 1

      We need to hide everything because it's way to complicated for the common user

      I don't really care about the common user: I like linux much the way it is. However, I don't like transcribing whole screenfuls of text by hand to report bugs. That massively, royally sucks.

      This isn't about making Linux shiny-happy it's about making it easier for developers to debug the kernel.

      --
      SJW n. One who posts facts.
    3. Re:Just show smileys by The123king · · Score: 1

      Linux is mainstream... Android is based on Linux, the Big Blue supports Linux on its big iron, most web servers in existence run Linux. Because of this, removing the command-line stuff will almost always be counter-productive. One of Linux many strengths (and perceived weaknesses) comes from its command-line.

      GNU/Linux will always be associated with sandal-wearing neckbeards, and nothing will ever change that. You should be glad that the majority of the internet, the majority of smartphones, and the majority of academia use Linux on a day-to-day basis. Their will never be a "Year of the Linux Desktop", but the "Year of the Linux Smartphone", "Year of the Linux Server" and "Year of the Linux Mainframe" have all been and gone.

      --
      If you gave me a choice between a printer and a giraffe with explosive diarrhoea, i'll get my ladder and my raincoat
    4. Re:Just show smileys by Anonymous Coward · · Score: 0

      Absolutely right. Instead of bringing it, Linux is now the thing to beat. Microsoft knows it and has even started open sourcing code and making Linux available on azure.

      In open source circles, Linux zealots are locking out other operating systems from X11, even going so far as replacing it altogether with wayland. They don't take upstream patches for *BSD systems. They are rude and arrogant.

      It's clear Linux has arrived and soon it won't be cool anymore. It's big blue, big business and a big pain in the ass.

  30. Bug reporting will be much easier by allo · · Score: 1

    Do you want to mail them physical screenshots? With a qr code, you can mail text.

  31. I'll enjoy the irony, by Anonymous Coward · · Score: 0

    when my smartphone (that I am supposed to capture the QR code with) is the device running linux and having the kernel panic :)

  32. "Stealing" my idea :( by Megol · · Score: 1
    (Not true as I haven't communicated that idea to anyone - and an idea can't be stolen anyway).

    There are a number of advantages of doing this, non-technical people are likely to be familiar with QR-codes, most people have access to digital cameras and resources to convert the QR code to a link and using this works as long as the screen can be written to. Storage system failure or network system failures wouldn't be a hinder to provide a thorough failure analysis.

    The sole disadvantage IMHO is that one have to have a QR encoder resident and functional at the time of a panic. Not a big problem.

    1. Re:"Stealing" my idea :( by The123king · · Score: 1
      --
      If you gave me a choice between a printer and a giraffe with explosive diarrhoea, i'll get my ladder and my raincoat
  33. Re:Worst idea I've heard in years. by serviscope_minor · · Score: 1

    Now they want to bury the kernel error messages in a QR code? That REALLY takes the cake.

    This is not burying or hiding. It's there in full view if you have a decoder, and even better, you can send it to a mailing list without having to transcribe the sodding thing by hand. Bonus: no transcription errors!

    Seems like a win to me especially as no one is ever planning on making it mandatory. It's a fantastic option if you don't have a convenient way to log a serial console.

    I'm massively not a fan of exsessive complexity, but this atually sounds like a neat idea.

    --
    SJW n. One who posts facts.
  34. Catch up... by The123king · · Score: 1

    Linux was beaten as the first by a long shot. Haiku has had this for 1 3/4 years.

    --
    If you gave me a choice between a printer and a giraffe with explosive diarrhoea, i'll get my ladder and my raincoat
  35. Re:And people think Linux is GOOD? REALLY? by The123king · · Score: 1

    A problem has been detected and Slashdot has shut down to prevent damage to your brain

    The problem seems to be caused by the following user: ANONYMOUS COWARD If this is the first time you have seen this Stop error screen, refresh your browser. If this screen appears again, follow these steps:

    Check to see if any new topics or comments are properly displayed. If this a new comment, ask Slashdot to filter Anonymous Coward comments you don't need.

    If problems continue, disable or remove any newly-posted Anonymous Coward comments. Disable short-term memory options such as recall and storage. If you need to use Moderator points to remove or disable comments, press the drop-down menu below the comment, and then select -1 Troll.

    Technical information:

    *** STOP: 0x0000050 (0x616E6f6E,0x796D6F75,0x7320636F,0x77617264) ***

    *** ANONYMOUS COWARD - Address 63726170 base at 706F7374 datestamp 35343134/code

    --
    If you gave me a choice between a printer and a giraffe with explosive diarrhoea, i'll get my ladder and my raincoat
  36. Re:And people think Linux is GOOD? REALLY? by Anonymous Coward · · Score: 0

    Do you have panic attacks too, "PhRooT-LooP"? Lmao http://slashdot.org/comments.p...

  37. Re:And people think Linux is GOOD? REALLY? by gnupun · · Score: 1

    Can kernel panic info also be saved to a disk log instead of just showing it on the screen? It could also be logged to a USB drive or something connected to the network or in the extreme case, CMOS space in BIOS.

    Whatever the method, the log information should be easily accessible on reboot without the use of cameras/cell phones etc.

  38. Abnormal Linux end-users do fine. by fygment · · Score: 1

    It says, `` ... most of which isn't easily archivable by normal Linux end-users. Abnormal Linux end-users easily archive the text. If you have to use QR codes ... maybe you aren't the right kind of Linux end-user. Just saying.

    --
    "Consensus" in science is _always_ a political construct.
  39. Sounds great! People love those things. by Anonymous Coward · · Score: 0

    http://peoplescanningqrcodes.tumblr.com/

  40. Bad Idea by Prototerm · · Score: 0

    I'd file this under the "Gee, mom, look what I can do" school of programming. It makes the assumption that every Linux user in the known universe has a smartphone and enough data minutes left in the month to play around with a QR code and a web page. I'm a great believer in the "KISS" principle: Keep It Simple! Your powerful computer just fell down and can't get up, so now you want to make it create and display a fancy bit of graphics? This sort of error is too important to rely on playing "stupid computer tricks"! What if it's a text-only server installation and there *is* no GUI available to display the QR? What if displaying the QR code *itself* causes an error? I'd hate to be using version 1 of *this* change! Besides, this sort of fancy error display belongs in User space, not the Kernel (IMHO). Simplifying the error message with ordinary, everyday language the user can actually write down with (gasp) pencil and paper is a much better approach than trying to impress people with how 1337 you are. /rant

    --
    "My country, right or wrong; if right, to be kept right; and if wrong, to be set right." --Senator Carl Schurz (1872)
  41. How about just making the panics less verbose? by pla · · Score: 0

    Seriously, this looks like a solution in need of a problem - And worse, a "solution" that breaks a critical aspect of existing functionality, namely, "human readability".

    Instead of making note of a few key points in the message, this will require taking a picture of the screen just so you can "automatically" Google the meaning of an unintelligible pattern of dots. WTF, guys, in what world do you consider that an improvement?

    It also ignores the reality of Linux's dominant niche - Not as end-user desktops where poor widdle grandmas might get confused by all that technical information; but rather, as servers-on-the-cheap. And where do servers live? In the server room. I don't know about how your company does things, but many (including mine) don't allow cameras in the server room, and that includes cellphones. And I don't even work for any sort of especially high-security company.

    If you really want to make panics more intelligible, just reduce them to the few items of useful information they actually contain - No stupid register dump, no stack trace, no list of a dozen maybe-related-but-almost-never-really modules. List the type of panic, the faulting module, and just the top of the call stack. That alone provides the level of detail most people can do something about - "Looks kinda like that new video driver blew up, better roll back and see if the problem goes away". Anything more than that only matters to kernel devs, and for that, we have debugging and verbosity command line options they can set.


    TLDR: If, by default, a panic scrolls a 40x25 text screen, you've failed. Adding the requirement of a smartphone and internet connection only makes it worse.

  42. Fine, but could have problems by fa2k · · Score: 1

    Good idea, but I hope they keep all existing systems in place, and make it optional. Graphics drivers are massively complex, and are probably a significant source of oops. If displaying a QR code means that the kernel needs to interact more with the drivers, and (oh god i hope not) change the resolution to display a QR code, then I expect more fail. People can take photos of the crash messages in 80x25 character consoles anyway, so let's not destroy that.

  43. fedora bug reporting via bugzilla must die by Anonymous Coward · · Score: 0

    I'm just waiting for Fedora to stop prompting fresh users to report bugs that require creating a freaking bugzilla account. Not all users are developers, you've already alienated most of them with gnome 3 and other simplifications, and the rest DO NOT CARE to follow the bug.

    Man up and do it like a proper OS. Don't bother the user with inconsequential development housekeeping details. You wanna hear about problems, make it simple. I bet there are thousands of problems that form clear patterns yet aren't being reported because you're asking a novice OS user to do a developer's job. That ship has sailed long ago.

  44. Obfuscation of a sort by userw014 · · Score: 1

    How is using using QR codes any improvement over such dusty techniques as unique error numbers, like "ABEND 07235453" - other than it doesn't require any discipline in registering error numbers?

    Wouldn't integrating the frame buffer into kernel oops messages be one (small) step into the MS/Windows disease of integrating user land GUI primitives in the kernel?

    This seems to be a solution for desktop (or laptop) Linux only - so it shouldn't be the default.

    Most of the time when I'm dealing with Linux, it's either as a tablet (android), a server (used to run 150 headless servers, now I run only about 30), or as an embedded device from the low-end (an internet camera or a WiFi router running DD-WRT) to high-end (research lab equipment supported by a vendor.) My work desktop (Ubuntu) already hides as many error messages as possible, and I don't expect any Linux desktops in an office/workplace setting to reveal such messages - whether they're text, QR code, or cryptic IBM-like ABEND number.

    Yes, it'll help Linux geeks report kernel oops messages to the kernel developers better (provided they can capture the image). But for most uses of Linux, it's unnecessary complication.

  45. Tie the kernel to a UI? Oooh - shark jumping time by Anonymous Coward · · Score: 0

    I run Linux on a server. No GUI. It has a problem. Now what?
    There is NO GUI server to display the error.

    Phrased differently, if the error logging ties the kernel to a specific UI model, it means that the kernel just jumped the shark

  46. Re:You get the prize of dumbest comment on slashdo by jpellino · · Score: 1

    Yes, I do. http://i.imgur.com/zMyvT.jpg

    I think having the option to scan the QR code with a simple message to do so is one more way to get the info needed.
    Aiming a smartphone at the screen is easier than framing a screen with your phone's camera and hoping for a solid shot without a flash before it does something even stranger.

    They're used on beer ads, chain pizza ads, breakfast cereal and at Disney parks.
    So yes, I think the average end user has a shot at this.

    I'm thinking of Windows in particular, that usually ends up with anywhere from one to a dozen lines of codes to reference.
    Linked to a database, it has all the info you need.

    It's pretty reliable stuff: http://datagenetics.com/blog/n...

    Which is likely why people would rather scan QR codes than take pictures of every magazine ad they see.

    --
    "Win treats sysadmins better than users. Mac treats users better than sysadmins. Linux treats everyone like sysadmins."