[Bug 727272] New: using kernel with smp control characters floods screen during high IO operation
https://bugzilla.novell.com/show_bug.cgi?id=727272 https://bugzilla.novell.com/show_bug.cgi?id=727272#c0 Summary: using kernel with smp control characters floods screen during high IO operation Classification: openSUSE Product: openSUSE 11.3 Version: Final Platform: x86 OS/Version: openSUSE 11.3 Status: NEW Severity: Normal Priority: P5 - None Component: Kernel AssignedTo: kernel-maintainers@forge.provo.novell.com ReportedBy: lijewski.stefan@zabka.pl QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux i686; rv:7.0.1) Gecko/20100101 Firefox/7.0.1 Java pos (point of sale) application is running on tty0 (no X server), using serial port fiscal printer. On system with more then one cpu (or core) when smp option is used, under heavy keyboard/barecode scanner input, control characters are flooding the screen. Those characters looks like strings which suppose goes to fiscal printer, but due to high latency are just flushed on tty0. The same happens after long use application. It's not related to particular fiscal printer - I reproduce it also on virtual machine using 'dummy fiscal printer' (just emulating it). After switching to 'nosmp' option, all is working normally, i.e. even after very high input traffic all is going properly to fiscal printer. This application is using libncurses to draw the screen. I found this bug primary on 11.3 with it's standard kernel (desktop), but after that I was able to reproduce it on every kernel from 3.0.4 to 2.6.31 - cannot test on earlier version, because I'm must use ext4. I think the problem will appear with every application which outputs anything to serial ports on system with smp -but I'm unable to test it. Reproducible: Always Steps to Reproduce: 1. Run system with more then 1 processors and app using serial ports. 2. Simulate high kbd input which must goes to serial port. 3. Actual Results: All string should be putted to serial port. Expected Results: After a while some of strings, which suppose to goes to serial ports, are flushed to screen. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=727272 https://bugzilla.novell.com/show_bug.cgi?id=727272#c Jeff Mahoney <jeffm@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|Kernel |Kernel AssignedTo|kernel-maintainers@forge.pr |jslaby@suse.com |ovo.novell.com | Product|openSUSE 11.3 |openSUSE 12.1 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=727272 https://bugzilla.novell.com/show_bug.cgi?id=727272#c1 Jiri Slaby <jslaby@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |lijewski.stefan@zabka.pl --- Comment #1 from Jiri Slaby <jslaby@suse.com> 2012-03-09 10:10:43 UTC --- I'm confused. Why should keyboard input appear on the printer and not on the current tty? And how is the barcode scanner connected? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=727272 https://bugzilla.novell.com/show_bug.cgi?id=727272#c2 Stefan Lijewski <lijewski.stefan@zabka.pl> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|lijewski.stefan@zabka.pl | --- Comment #2 from Stefan Lijewski <lijewski.stefan@zabka.pl> 2012-03-09 11:06:32 UTC --- Sorry, I didn't explain it right. Input from keyboard or barscanner (which one is irrelevant) appears on the screen, or is grabbed by application and send to printer. It's working well. But the bug somewhat else: no matter what application I'm using, even only terminal on tty0, when input from keyboard to serial port is very high, after some times screen is flooded with characters which I typed few minutes ago along with some control char. I repeat: you can even test it only with sh and tty0. I use barscanner, because it's allows to input strings more rapidly. It's not hardware related - we have on more then few hundreds computers of different configuration. I've even simulated it on virtual machine with simple python scripts to simulate rapid input. If something is not clear, I can try to explain it further. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=727272 https://bugzilla.novell.com/show_bug.cgi?id=727272#c3 Jiri Slaby <jslaby@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |lijewski.stefan@zabka.pl --- Comment #3 from Jiri Slaby <jslaby@suse.com> 2012-03-09 12:02:35 UTC --- (In reply to comment #2)
I've even simulated it on virtual machine with simple python scripts to simulate rapid input.
Could you provide us with the script? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=727272 https://bugzilla.novell.com/show_bug.cgi?id=727272#c4 --- Comment #4 from Stefan Lijewski <lijewski.stefan@zabka.pl> 2012-03-09 12:40:25 UTC --- Created an attachment (id=480719) --> (http://bugzilla.novell.com/attachment.cgi?id=480719) python script simulating keyboard input The script needs pycopia module (I've taken one from devel:languages:python). The script is not mine, I've just find it very usefully. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=727272 https://bugzilla.novell.com/show_bug.cgi?id=727272#c5 Stefan Lijewski <lijewski.stefan@zabka.pl> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|lijewski.stefan@zabka.pl | --- Comment #5 from Stefan Lijewski <lijewski.stefan@zabka.pl> 2012-03-09 12:40:44 UTC --- Script provided. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=727272 https://bugzilla.novell.com/show_bug.cgi?id=727272#c Jiri Slaby <jslaby@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=727272 https://bugzilla.novell.com/show_bug.cgi?id=727272#c6 Jiri Slaby <jslaby@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO InfoProvider| |lijewski.stefan@zabka.pl --- Comment #6 from Jiri Slaby <jslaby@suse.com> 2012-04-02 16:21:16 UTC --- (In reply to comment #5)
Script provided.
Ok, what am I supposed to do to reproduce the issue? I cannot see any mess or anything on the console. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=727272 https://bugzilla.novell.com/show_bug.cgi?id=727272#c7 Stefan Lijewski <lijewski.stefan@zabka.pl> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED InfoProvider|lijewski.stefan@zabka.pl | --- Comment #7 from Stefan Lijewski <lijewski.stefan@zabka.pl> 2012-04-06 09:17:51 UTC --- Murphy law - I cannot reproduce it on console now as well. Only when using our POS application the mess still appears on screen. But after booting with nosmp option, the mess disappears. Where should I direct this bug in that case? It's java, ncurses or our application related? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=727272 https://bugzilla.novell.com/show_bug.cgi?id=727272#c8 Jiri Slaby <jslaby@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |WORKSFORME --- Comment #8 from Jiri Slaby <jslaby@suse.com> 2012-04-11 21:18:29 UTC --- (In reply to comment #7)
Murphy law - I cannot reproduce it on console now as well. Only when using our POS application the mess still appears on screen. But after booting with nosmp option, the mess disappears. Where should I direct this bug in that case? It's java, ncurses or our application related?
Sorry, I have no idea... Maybe you could try different implementations of java? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=727272 https://bugzilla.novell.com/show_bug.cgi?id=727272#c9 --- Comment #9 from Stefan Lijewski <lijewski.stefan@zabka.pl> 2012-04-12 04:59:59 UTC --- The problem is this isn't java related. I struggled with this issue from about 6 months - I've tried with different versions of java (sun/open), ncurses, libc and of course our applications etc... The problem even exist at two opensuse versions (11.1 and 11.3) - and four different kernel versions. Always the only solution is to turn off smp. Anyway, thanks for help, sorry for wasting your time . -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com