[Bugs] #4600 Sugar URGE: Journal: copy to Documents crashes Sugar

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Thu Aug 15 16:26:50 EDT 2013


#4600: Journal: copy to Documents crashes Sugar
--------------------------+-------------------------------------
  Reporter:  manuq        |            Owner:
      Type:  defect       |           Status:  new
  Priority:  Urgent       |        Milestone:  Unspecified
 Component:  Sugar        |          Version:  Git as of bugdate
  Severity:  Critical     |       Resolution:
  Keywords:               |  Distribution/OS:  Unspecified
Bug Status:  Unconfirmed  |
--------------------------+-------------------------------------
\
\
\
\
\
\

Comment (by tch):

 Ok, going deeper, found that the crash is caused by something at

 sugar-toolkit-gtk3/src/sugar3/sugar-fatattr.c
 "fprintf(stdout, "Error %s attributes: %s\n", verb, strerror(errno));"

 errno returns 25, but strerror(25) returns garbage string...

 While I was reading about this, saw that strerror is not thread-safe, and
 switched to strerror_r. This stops sugar from crashing, but does not solve
 the garbage string issue.
\
\
\

--
Ticket URL: <http://bugs.sugarlabs.org/ticket/4600#comment:3>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system


More information about the Bugs mailing list