[mythtv-commits] Ticket #12535: Segmentation fault after starting livetv recording

MythTV noreply at mythtv.org
Tue Nov 10 13:13:45 UTC 2015


#12535: Segmentation fault after starting livetv recording
-------------------------------------------------+-------------------------
 Reporter:  xenic@…                              |          Owner:
                                                 |  jyavenard
     Type:  Bug Report - General                 |         Status:
                                                 |  infoneeded_new
 Priority:  major                                |      Milestone:  0.28
Component:  MythTV - Recording                   |        Version:  0.27.5
 Severity:  medium                               |     Resolution:
 Keywords:  sigsegv segmentation fault segfault  |  Ticket locked:  0
  record                                         |
-------------------------------------------------+-------------------------

Comment (by xenic@…):

 Confirmed the problem to be an invalid 'dec' value, don't know what is
 causing it to be 31, but with custom libmysqlclient code, changing
 ''my_useconds_to_str'' to be

 {{{
 static inline int
 my_useconds_to_str(char *to, ulong useconds, uint dec)
 {
   int prec;
   if( dec > DATETIME_MAX_DECIMALS )
     prec = DATETIME_MAX_DECIMALS;
   else
     prec = dec;

   DBUG_ASSERT(dec <= DATETIME_MAX_DECIMALS);
   return sprintf(to, ".%0*lu", prec,
                  useconds / (ulong) log_10_int[DATETIME_MAX_DECIMALS -
 prec]);
 }
 }}}

 recordings do not crash the backend.

--
Ticket URL: <https://code.mythtv.org/trac/ticket/12535#comment:6>
MythTV <http://www.mythtv.org>
MythTV Media Center


More information about the mythtv-commits mailing list