Hi,
Some details about where the segfault takes place (by the way it's the
same with LMS 7.8 nigthly)

At launch, slimserver.pl calls -Slim::Utils::Prefs::init();-, which
calls :

Code:
--------------------
                $prefs->migrate(1, sub {
                        unless (-d $path) { mkdir $path; }
                        unless (-d $path) { logError("can't create new 
preferences directory at $path"); }
  
                        for my $pref (keys %defaults) {
                                my $old = 
Slim::Utils::Prefs::OldPrefs->get($pref);
  
                                # bug 7237: don't migrate dbsource if we're 
upgrading from SS6.3
                                next if $pref eq 'dbsource' && $old && $old =~ 
/SQLite/i;
  
                                $prefs->set($pref, $old) if 
!$prefs->exists($pref) && defined $old;
                        }
  
                        1;
                });
--------------------


-$prefs->migrate()- being in *Slim::Utils::Prefs::Namespace*

And in the sub migrate, i've put some printf debug lines :

Code:
--------------------
    sub migrate {
        my $class    = shift;
        my $version  = shift;
        my $callback = shift;
  
        if ($version > $class->{'prefs'}->{'_version'} && ref $callback eq 
'CODE') {
  
                if ($callback->($class)) {
  
                        main::INFOLOG && $log->info("migrated prefs for 
$class->{'namespace'} to version $version");
  
                        $class->{'prefs'}->{'_version'} = $version;
  
                } else {
  
                        $log->warn("failed to migrate prefs for 
$class->{'namespace'} to version $version");
                }
  
  printf("************* debug 01 *************\n");
                $class->save;
  printf("************* debug 02 *************\n");
        }
  }
  
--------------------


When i launch slimserver.pl, I see "debug 01", not "debug 02"
("Segmentation Fault" instead)
SO THE INSTRUCTION SAVE() SEEMS TO BE THE PROBLEM

That's as far as I can go in investigation, since I have no knowledge at
all of Perl :(

Please someone help!


------------------------------------------------------------------------
djoole's Profile: http://forums.slimdevices.com/member.php?userid=40758
View this thread: http://forums.slimdevices.com/showthread.php?t=95822

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to