problemi con rpmdrake in rosa 2012.1

Discussioni sul progetto ROSA e aiuto agli utenti
User avatar
azioga
Utente senior
Utente senior
Posts: 336
Joined: 8 December 2010, 22:06
ROSA: -
OpenMandriva: 2010.2 32bit
Kernel: 3.2.28-nrj-desktop-p
Desktop: kde 4.5.5
country: italy

Re: problemi con rpmdrake in rosa 2012.1

Post by azioga »

Stefano1956 ha una macchina a 64 bit e stessi problemi.

Ciao, Luca.

User avatar
NicCo
Amministratore
Amministratore
Posts: 4765
Joined: 6 December 2007, 19:54

Re: problemi con rpmdrake in rosa 2012.1

Post by NicCo »

Interessante l'ultima considerazione di Akiro:

Chiedo a chi ha avuto problemi con rpmdrake:
trattasi solo di installazioni di Fresh 32bit?
.
--- Professional experience ---
Kernel designer, engineer, maintainer and tester for ROSA Desktop and OpenMandriva Lx O.S.

--- currently I'm playing with ---
LTS Kernels > Linux 4.1.12-nrjQL <<< Linux 3.18.17-nrjQL <<< Linux 3.14.46-nrjQL
EOL Kernels > Linux 3.19.8-nrjQL <<< Linux 3.17.8-nrjQL <<< Linux 3.15.10-nrjQL

User avatar
GiuX
Utente
Utente
Posts: 238
Joined: 6 May 2009, 10:21
ROSA: Fresh
OpenMandriva: -
Kernel: 3.6.11nrjQL
Desktop: KDE 4.9.5
country: Italia

Re: problemi con rpmdrake in rosa 2012.1

Post by GiuX »

Io installato solo software x86-64 e mai dato problemi (a parte la questione dei servizi...)

User avatar
azioga
Utente senior
Utente senior
Posts: 336
Joined: 8 December 2010, 22:06
ROSA: -
OpenMandriva: 2010.2 32bit
Kernel: 3.2.28-nrj-desktop-p
Desktop: kde 4.5.5
country: italy

Re: problemi con rpmdrake in rosa 2012.1

Post by azioga »

Ma li leggete i post? ;)

Stefano ha macchina a 64 bit e miei stessi problemi.

Ciao.

User avatar
NicCo
Amministratore
Amministratore
Posts: 4765
Joined: 6 December 2007, 19:54

Re: problemi con rpmdrake in rosa 2012.1

Post by NicCo »

Accade sia in 32 che 64, ma su alcuni hardware...

@Azioga
Con i dati che hai fornito, sono state fatte simulazioni, ma l'errore non si è verificato...

Mentre tanti altri problemi sono facili da riprodurre e successivamente correggere,
questo é veramente un problema abbastanza tosto, e alquanto difficile da scoprire
.
--- Professional experience ---
Kernel designer, engineer, maintainer and tester for ROSA Desktop and OpenMandriva Lx O.S.

--- currently I'm playing with ---
LTS Kernels > Linux 4.1.12-nrjQL <<< Linux 3.18.17-nrjQL <<< Linux 3.14.46-nrjQL
EOL Kernels > Linux 3.19.8-nrjQL <<< Linux 3.17.8-nrjQL <<< Linux 3.15.10-nrjQL

User avatar
azioga
Utente senior
Utente senior
Posts: 336
Joined: 8 December 2010, 22:06
ROSA: -
OpenMandriva: 2010.2 32bit
Kernel: 3.2.28-nrj-desktop-p
Desktop: kde 4.5.5
country: italy

Re: problemi con rpmdrake in rosa 2012.1

Post by azioga »

A me succede in Vbox.
E mi sembra molto strano che dipenda dall'hardware.

Ciao.

User avatar
azioga
Utente senior
Utente senior
Posts: 336
Joined: 8 December 2010, 22:06
ROSA: -
OpenMandriva: 2010.2 32bit
Kernel: 3.2.28-nrj-desktop-p
Desktop: kde 4.5.5
country: italy

Re: problemi con rpmdrake in rosa 2012.1

Post by azioga »

Ho fatto anche un'altra prova.

Ricostruito il db(dopo aver rimosso i __db.*).
rpmdrake di un rpm a caso(avidemux)

e core dumped :evil:

questa l'ultima parte dello strace:
....
....
4379 clock_gettime(CLOCK_MONOTONIC, {1189, 753356225}) = 0
4379 poll([{fd=7, events=POLLIN}, {fd=5, events=POLLIN}], 2, 0) = 0 (Timeout)
4379 clock_gettime(CLOCK_MONOTONIC, {1189, 753412621}) = 0
4379 lstat64("/usr/share/locale/zh_TW/LC_MESSAGES/avidemux.mo", {st_mode=S_IFREG|0644, st_size=149745, ...}) = 0
4379 open("/usr/share/locale/zh_TW/LC_MESSAGES/avidemux.mo", O_RDONLY|O_LARGEFILE) = 27
4379 fcntl64(27, F_SETFD, FD_CLOEXEC) = 0
4379 mmap2(NULL, 149745, PROT_READ, MAP_SHARED, 27, 0) = 0xa483c000
4379 munmap(0xa483c000, 149745) = 0
4379 close(27) = 0
4379 rename("/usr/share/locale/zh_TW/LC_MESSAGES/avidemux.mo;50dc2b12", "/usr/share/locale/zh_TW/LC_MESSAGES/avidemux.mo") = 0
4379 getuid32() = 0
4379 getuid32() = 0
4379 chown32("/usr/share/locale/zh_TW/LC_MESSAGES/avidemux.mo", 0, 0) = 0
4379 chmod("/usr/share/locale/zh_TW/LC_MESSAGES/avidemux.mo", 0644) = 0
4379 utime("/usr/share/locale/zh_TW/LC_MESSAGES/avidemux.mo", [2012/11/01-10:31:58, 2012/11/01-10:31:58]) = 0
4379 munmap(0xa4861000, 8392704) = 0
4379 _llseek(26, 3830197, [3830197], SEEK_SET) = 0
4383 <... poll resumed> ) = ? ERESTART_RESTARTBLOCK (To be restarted)
4383 --- {si_signo=SIGALRM, si_code=SI_KERNEL} (Alarm clock) ---
4383 --- {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x69c} (Segmentation fault) ---
4383 --- {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x4b8} (Segmentation fault) ---
4379 +++ killed by SIGSEGV (core dumped) +++

User avatar
rugyada
Amministratore
Amministratore
Posts: 1562
Joined: 14 July 2008, 22:58
ROSA: ROSA.Fresh R8 64bit
OpenMandriva: OMLx 4.2
Kernel: kernel-release
Desktop: KDE tutta la vita
country: Italy

Re: problemi con rpmdrake in rosa 2012.1

Post by rugyada »

@ Luca:
sappi che tutti i tuoi report li sto inoltrando/segnalando.
FYI
Image
ciauu ciauu, ruru

MIB... e le stelle stanno a guardare.
«E' bello avere delle certezze, tipo la terra gira, il sole è caldo, se ti prendi con quelli del MIB vieni fanculizzato. Cose semplici, in fondo» (M.C.)

User avatar
azioga
Utente senior
Utente senior
Posts: 336
Joined: 8 December 2010, 22:06
ROSA: -
OpenMandriva: 2010.2 32bit
Kernel: 3.2.28-nrj-desktop-p
Desktop: kde 4.5.5
country: italy

Re: problemi con rpmdrake in rosa 2012.1

Post by azioga »

ultima per oggi:

ho il problema anche rimuovendo i pachetti.
...
...
...
5707 open("/var/lib/rpm/installed-through-deps.list", O_RDONLY|O_LARGEFILE) = 16
5707 ioctl(16, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, 0xbf954c78) = -1 ENOTTY (Inappropriate ioctl for device)
5707 _llseek(16, 0, [0], SEEK_CUR) = 0
5707 fstat64(16, {st_dev=makedev(8, 1), st_ino=259321, st_mode=S_IFREG|0644, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=40, st_size=20177, st_atime=2012/12/27-11:50:49, st_mtime=2012/12/26-13:52:22, st_ctime=2012/12/26-13:52:22}) = 0
5707 fcntl64(16, F_SETFD, FD_CLOEXEC) = 0
5707 read(16, "a2ps\nabrt\nakonadi\nakonadi-archiv"..., 8192) = 8192
5707 read(16, "nssd4\nlibkemoticons4\nlibkephal4\n"..., 8192) = 8192
5707 read(16, <unfinished ...>
5711 <... poll resumed> ) = ? ERESTART_RESTARTBLOCK (To be restarted)
5711 --- {si_signo=SIGALRM, si_code=SI_KERNEL} (Alarm clock) ---
5711 --- {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x69c} (Segmentation fault) ---
5711 --- {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x4b8} (Segmentation fault) ---
5707 +++ killed by SIGSEGV (core dumped) +++
Ciao, Luca.

User avatar
rugyada
Amministratore
Amministratore
Posts: 1562
Joined: 14 July 2008, 22:58
ROSA: ROSA.Fresh R8 64bit
OpenMandriva: OMLx 4.2
Kernel: kernel-release
Desktop: KDE tutta la vita
country: Italy

Re: problemi con rpmdrake in rosa 2012.1

Post by rugyada »

Ricopio parte della richiesta di ulteriori informazioni ricevuta:

Could the users provide more details about what they did at these steps, which commands were executed, etc. All info they think is important could be helpful here.

3.
It seems, that some of the users encountered that problem when running ROSA in VirtualBox. If so, could they post the configuration of their VBox VM? At least, the amount of RAM, number of CPUs, size of HDDs.

4.
To make crash dumps more useful, could the users install the packages with debug info, at least, "perl-URPM-debuginfo" and, just in case, "rpm-debuginfo"?

If the crash happens again, it will (hopefully) be possible to get at least a reasonable backtrace from the crash dumps.


Regards,
Eugene

Riusciamo a scrivere in inglese o in doppia lingua per agevolare la lettura degli sviluppatori di ROSA?

Chi non può scriva in italiano e poi Nicco o io proveremo a mettere sotto la traduzione.
Image
ciauu ciauu, ruru

MIB... e le stelle stanno a guardare.
«E' bello avere delle certezze, tipo la terra gira, il sole è caldo, se ti prendi con quelli del MIB vieni fanculizzato. Cose semplici, in fondo» (M.C.)

User avatar
azioga
Utente senior
Utente senior
Posts: 336
Joined: 8 December 2010, 22:06
ROSA: -
OpenMandriva: 2010.2 32bit
Kernel: 3.2.28-nrj-desktop-p
Desktop: kde 4.5.5
country: italy

Re: problemi con rpmdrake in rosa 2012.1

Post by azioga »

if i execute rpmdrake from konsole like superuser, sometimes i receive a segfault.
i'm not able to reproduce this from systemsettings->rpmdrake...strange, but true.


so i open a konsole
switch to su
# rpmdrake
the form starts
here , adding/deleting packages, frequently the program segfault

this in a vbox vm - https://dl.dropbox.com/u/41326823/vbox.png

after the rpm db is often corrupted and i have to rebuild it.

here is a coredump file with debug packages installed: https://dl.dropbox.com/u/41326823/core.7697.tar.gz

ciao, Luca.

ominomichelin
Utente
Utente
Posts: 141
Joined: 28 March 2009, 18:19
OpenMandriva: 2009.1 x86_64
Kernel: 2.6.29.1

Re: problemi con rpmdrake in rosa 2012.1

Post by ominomichelin »

Salve.
Scusate se mi intrometto e un problema che l'ho riscontrato dalla alfa, pensavo fosse isolato
sulle mie macchine e dopo un paio di mail di avvertimento ho smesso , ma vedo che viene riproposto
ciclicamente , quindi sbagliavo.
Unico modo sicuro per rigenerare la berkley db. in 2012.1 e rebuildare il db sui nuovi indici quindi:

Code: Select all

perl -MURPM -e 'URPM::DB::convert("/", "btree", 1, 1)'
e in base alla vostra CPU dura da 2 minuti a 15 .

OT:
Colgo l'occasione di fare gli auguri a quelli che mi conoscono .
http://www.mandrivausers.ro/ MRB aint no shit , :p Linux user number 507107 Nu dați banii pe prostii, puneți Linux pe PISI !

User avatar
euspectre
Nuovo utente
Nuovo utente
Posts: 9
Joined: 9 January 2013, 10:05
ROSA: Desktop Fresh R1
OpenMandriva: -
Kernel: 4.1.16-nrj-desktop-1
Desktop: KDE
country: Russia

Re: problemi con rpmdrake in rosa 2012.1

Post by euspectre »

Hi,
azioga wrote: so i open a konsole
switch to su
# rpmdrake
the form starts
here , adding/deleting packages, frequently the program segfault

this in a vbox vm - https://dl.dropbox.com/u/41326823/vbox.png
Thank you for the additional info.
I have prepared a VM with such settings and reproduced the crash. I'll try to figure out what is going wrong.

Regards,
Eugene

User avatar
euspectre
Nuovo utente
Nuovo utente
Posts: 9
Joined: 9 January 2013, 10:05
ROSA: Desktop Fresh R1
OpenMandriva: -
Kernel: 4.1.16-nrj-desktop-1
Desktop: KDE
country: Russia

Re: problemi con rpmdrake in rosa 2012.1

Post by euspectre »

Perhaps, I have found what causes rpmdrake to crash. The problem seems to be in the GUI rather than in the code working with the DB.

Could you check the following fix:

1. Open /usr/lib/perl5/vendor_perl/5.14.2/Rpmdrake/pkg.pm in a text editor and remove or comment out the following statement (should be on the line 643):

Code: Select all

my $_flush_guard = Gtk2::GUI_Update_Guard->new;
2. Save the file then start rpmdrake as root as you did before, try to install or remove some packages. See if it crashes this time.

3. Start rpmdrake as usual (that is, from KDE Control Center) and also install or remove some packages.

That code at pkg.pm:643 was introduced in 2007 to fix the problem described here: https://qa.mandriva.com/show_bug.cgi?id=15408 ("Rpmdrake doesn't refresh windows when installing or downloading packages"). However, after I have removed that " Gtk2::GUI_Update_Guard" stuff mentioned above, I still cannot reproduce that problem with UI refresh, everything seems to be fine.

Could you also check if covering the window of rpmdrake with another window while install is in progress prevents the refresh (update, redraw) of the progressbar and the main window of rpmdrake?

If everything is OK, we'll apply this fix to our official rpmdrake package.

User avatar
azioga
Utente senior
Utente senior
Posts: 336
Joined: 8 December 2010, 22:06
ROSA: -
OpenMandriva: 2010.2 32bit
Kernel: 3.2.28-nrj-desktop-p
Desktop: kde 4.5.5
country: italy

Re: problemi con rpmdrake in rosa 2012.1

Post by azioga »

Hi,

1) i have modified the line 643
2) executing rpmdrake as root, i have no problem now(this was the only case i had crashes)
3) executing from kde control center i have no problem as before
4) covering the window of rpmdrake the refresh is ok for me

it seems fixed !

Thanks, Luca.

Post Reply