<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>8464</bug_id>
          
          <creation_ts>2015-10-08 15:18:50 +0000</creation_ts>
          <short_desc>Parselogs error: genericx86-64 getty[1028]: can&apos;t open &apos;/dev/tty1&apos;: Input/output error^M</short_desc>
          <delta_ts>2016-03-10 22:52:58 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>BSPs</product>
          <component>bsps-runtime</component>
          <version>1.8</version>
          <rep_platform>NUC</rep_platform>
          <op_sys>x86_64</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.1 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Cristina Agurida">cristina-danielax.agurida</reporter>
          <assigned_to name="Mariano Lopez">mariano.lopez</assigned_to>
          <cc>benjamin.esquivel</cc>
    
    <cc>georgex.l.musat</cc>
    
    <cc>mariano.lopez</cc>
    
    <cc>yp.kernel.watcher</cc>
    
    <cc>yp.watcher</cc>
          
          <qa_contact name="Cristina Agurida">cristina-danielax.agurida</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>Regression (Used to work)</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>55071</commentid>
    <comment_count>0</comment_count>
    <who name="Cristina Agurida">cristina-danielax.agurida</who>
    <bug_when>2015-10-08 15:18:50 +0000</bug_when>
    <thetext>BUILD: 1.8.1: b74ea963cefffad9fbd91d4eb9b240f6a8c86cd0
ENVIRONMENT: genericx86-64 on NUC
IMAGE: core-image-lsb-sdk

STEPS TO REPRODUCE: 
  
 Parse dmesg log and all log files in /var/log for keywords like: &quot;error&quot; , &quot;failed&quot; , &quot;cannot&quot;, &quot;can&apos;t&quot; etc.
Filter out the known and invalid errors or errors that appear in certain situations and need to be ignored.



EXPECTED OUTCOME: 
  
 No errors or fails should be present in logs

Actual error:

This error appears during LSB image testing on NUC in /var/log//auth.log :

Central error: Oct  1 00:10:01 genericx86-64 getty[1028]: can&apos;t open &apos;/dev/tty1&apos;: Input/output error^M</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55374</commentid>
    <comment_count>1</comment_count>
    <who name="Cristina Agurida">cristina-danielax.agurida</who>
    <bug_when>2015-10-16 09:07:06 +0000</bug_when>
    <thetext>NUC model used for this test was D54250WYK</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56330</commentid>
    <comment_count>2</comment_count>
    <who name="Benjamin Esquivel">benjamin.esquivel</who>
    <bug_when>2015-11-09 16:39:31 +0000</bug_when>
    <thetext>Hello Cristina, thanks for filing the bug and for the description. I wanted to ask you whether this message is seen every time that the test runs or if perhaps you had checked the reproducibility (% of occurrences)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56397</commentid>
    <comment_count>3</comment_count>
    <who name="Mariano Lopez">mariano.lopez</who>
    <bug_when>2015-11-11 21:03:57 +0000</bug_when>
    <thetext>Cristina, can you please let me know step by step how to copy the image to the USB stick? I&apos;m using jethro and copying the image with wic and I&apos;m getting kernel panics when booting the image on a D54250WYK nuc.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56560</commentid>
    <comment_count>4</comment_count>
    <who name="Mariano Lopez">mariano.lopez</who>
    <bug_when>2015-11-17 18:20:04 +0000</bug_when>
    <thetext>I was able to reproduce the error using the fido branch, I tried again in jethro and the error was not there.

It seems the error is for pam. In both cases tty1 refers to the console default login, I logged into the device without any problem even when the error appears. Is this a critical bug that the solution has to be backported to fido?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56677</commentid>
    <comment_count>5</comment_count>
    <who name="Mariano Lopez">mariano.lopez</who>
    <bug_when>2015-11-20 22:30:55 +0000</bug_when>
    <thetext>This is a intermittent issue and it happens about 1/8 of the time. This happens at boot and I haven&apos;t never seen it after. This also affects jethro and current master. I have to investigate more on this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56858</commentid>
    <comment_count>6</comment_count>
    <who name="Mariano Lopez">mariano.lopez</who>
    <bug_when>2015-11-27 13:43:37 +0000</bug_when>
    <thetext>After doing more test, I was able to reproduce it only with grub as the bootloader. When using syslinux I booted the devices 25 times without any error.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57015</commentid>
    <comment_count>7</comment_count>
    <who name="Mariano Lopez">mariano.lopez</who>
    <bug_when>2015-12-03 19:28:01 +0000</bug_when>
    <thetext>Today I tried to get the differences between using syslinux and grub. When I booted using syslinux, the error was there. So this happens with grub and syslinux.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57224</commentid>
    <comment_count>8</comment_count>
    <who name="Mariano Lopez">mariano.lopez</who>
    <bug_when>2015-12-11 18:17:28 +0000</bug_when>
    <thetext>Moving to 2.1 M2. I&apos;m still not able to reproduce the error at will.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57258</commentid>
    <comment_count>9</comment_count>
    <who name="Mariano Lopez">mariano.lopez</who>
    <bug_when>2015-12-14 21:49:58 +0000</bug_when>
    <thetext>I tried to reproduce the error with &quot;core-image-full-cmdline&quot; using &quot;poky-lsb&quot; distro, but I couldn&apos;t reproduce it in 40 tries.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57287</commentid>
    <comment_count>10</comment_count>
    <who name="Mariano Lopez">mariano.lopez</who>
    <bug_when>2015-12-15 21:35:58 +0000</bug_when>
    <thetext>Today I tried to recreate the issue with core-image-lsb-sdk, the same used to open the bug. I couldn&apos;t trigger the error in 30 reboots. This time I did based on commit b3d6872bf169a13e572638e3809c50a868246616.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57288</commentid>
    <comment_count>11</comment_count>
    <who name="Mariano Lopez">mariano.lopez</who>
    <bug_when>2015-12-15 21:41:39 +0000</bug_when>
    <thetext>Checking the commits, I found f1c034be02b1e8cf13d580de0de634794f7623e8 added a couple of patches for libpam but only when using musl lib. I need to investigate more on this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59885</commentid>
    <comment_count>12</comment_count>
    <who name="Mariano Lopez">mariano.lopez</who>
    <bug_when>2016-03-10 22:52:58 +0000</bug_when>
    <thetext>This bug is triggered when trying to run getty and the console doesn&apos;t exists yet in /dev. Commit ccb2a57ad25c98e77f81f8e3bf82e6a1da2d9cd2 adds a mechanism to verify if the console exists before trying to run getty on any tty, so getty will run when the virtual console is ready. So this solves this bug also.

I verified this running over 100 times the test using jethro and cherry-picking this particular commit.

Because this is not a critical bug (getty will be run over and over again and the console gets ready after a couple of seconds), I won&apos;t backport this commit to jethro.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>