<?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>4097</bug_id>
          
          <creation_ts>2013-03-25 09:56:30 +0000</creation_ts>
          <short_desc>&quot;login[423]: segfault&quot; for minimal image</short_desc>
          <delta_ts>2013-05-01 13:24:18 +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>OE-Core</product>
          <component>core</component>
          <version>1.4</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</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>1.4 M6</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Stoicescu Cornel">corneliux.stoicescu</reporter>
          <assigned_to name="Saul Wold">sgw</assigned_to>
          <cc>alexandrux.palalau</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>Qi.Chen</cc>
    
    <cc>richard.purdie</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>31084</commentid>
    <comment_count>0</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2013-03-25 09:56:30 +0000</bug_when>
    <thetext>Tested in master: 9ffee9add2d0380f4025e7a678a166f25a7d659e

1) start a core-image-minimal-qemux86-64
2) at login screen, give an invalid username (ex: asdf)
3) give any value for the password field and press enter

Notice error:
&quot;
qemux86-64 login: asdf
Password:
login[426]: segfault at 0 ip 00007f11ed047cb6 sp 00007fff7127bef8 error 4 in libc-2.17.so[7f11ecfc5000+1a7000]

Poky 8.0 (Yocto Project 1.3 Reference Distro) 1.3+snapshot-20130321 qemux86-64 ttyS0

qemux86-64 login:
&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31126</commentid>
    <comment_count>1</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2013-03-25 15:48:23 +0000</bug_when>
    <thetext>This seems very unlikely to be a BSP-specific bug. Are you seeing this on any other BSP?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31128</commentid>
    <comment_count>2</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2013-03-25 15:55:01 +0000</bug_when>
    <thetext>It is a general issue with core-image-minimal images. I believe I should have placed this in the OE-CORE product. Changing accordingly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31161</commentid>
    <comment_count>3</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2013-03-26 08:14:31 +0000</bug_when>
    <thetext>confirmed on qemux86 and qemuarm.

And it&apos;s not restricted to minimal image.

The same problem appeared on sato-sdk image:
root@qemuarm:/etc# login   

qemuarm login: jfiewoefiwof
Password: 
Segmentation fault</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31162</commentid>
    <comment_count>4</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2013-03-26 08:25:07 +0000</bug_when>
    <thetext>Indeed but it is not a general issue. core-image-lsb-sdk for instance does not have this issue (tested core-image-lsb-sdk-jasperforest).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31587</commentid>
    <comment_count>5</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2013-04-05 02:33:16 +0000</bug_when>
    <thetext>I debugged this issue down to the new version of the crypt() code in eglibc 2.17, it expects 2 valid chars as part the chipher, or it returns NULL. The tinylogin code uses the return to do a strcmp(). This causes the segfault.

There is also an issue in the shadow version of login, but manifests itself as a perror: crypt: Invalid Argument.

There are potential fixes for both of these that are being looked into currently.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31699</commentid>
    <comment_count>6</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2013-04-08 15:01:23 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=59c073514c01b018f6123bb177141888b6f8c8ee</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32809</commentid>
    <comment_count>7</comment_count>
    <who name="Alexandru Palalau">alexandrux.palalau</who>
    <bug_when>2013-05-01 13:24:18 +0000</bug_when>
    <thetext>Verified on master branch:
Commit ID: c42cc8fb38aee46f4778b9c68412a47ae5919923</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>