#363 closed defect (fixed)
Mondoarchive 2.2.9 crashes if exclude_path is specified
Reported by: | AndyWas | Owned by: | Bruno Cornec |
---|---|---|---|
Priority: | normal | Milestone: | 2.2.9.1 |
Component: | mondo | Version: | 2.2.9 |
Severity: | normal | Keywords: | |
Cc: |
Description
If I specify any non-null exclude path in the Mondoarchive GUI the specified exclude_path is recusively appended to itself until a buffer overrun occurs somewhere and the application segfaults. This happens regardless of the path specified.
Version is v2.2.9-r2460 (2.2.9-1.fc10 package from mondorescue repo). O/S is Fedora 11 (kernel 2.6.30.8-64.fc11.x86_64)
Regards,
Andrew
Attachments (2)
Change History (9)
by , 15 years ago
Attachment: | mondoarchive.log added |
---|
comment:1 by , 15 years ago
Version: | 2.2.8 → 2.2.9 |
---|
by , 15 years ago
comment:2 by , 15 years ago
Status: | new → assigned |
---|
comment:3 by , 15 years ago
Run 'mondoachive' from console as root to start Mondo ncurses GUI Select 'DVD disks'. (My optical drive is Pioneer BDC-202) Select max. compression Accept default disk size (4480 MB) Accept default (correct) DVD drive /dev entry Accept default backup path ('/') Delete NTFS partition entries found on Windows disk Enter exclude path e.g. '/home' Accept default temp. dir Accept default scratch dir Select verify after backup Confirm sane kernel Confirm proceed with backup Application segfaults
Hope this helps!
Andrew
comment:4 by , 15 years ago
Formatting got messed up on previous post - numbered list below
- Run 'mondoachive' from console as root to start Mondo ncurses GUI
- Select 'DVD disks'. (My optical drive is Pioneer BDC-202)
- Select max. compression
- Accept default disk size (4480 MB)
- Accept default (correct) DVD drive /dev entry
- Accept default backup path ('/')
- Delete NTFS partition entries found on Windows disk
- Enter exclude path e.g. '/home'
- Accept default temp. dir
- Accept default scratch dir
- Select verify after backup
- Confirm sane kernel
- Confirm proceed with backup
- Application segfaults
Hope this helps!
Andrew
comment:5 by , 15 years ago
Same here: fc8 x86, CentOS 5.3 x64, v2.2.9-r2460 . Tried *.rpm's and builds from source. If I try to backup to disk, excluding /mnt /backup:
[Main] libmondo-devices.c->mr_make_devlist_from_pathlist#2002: include_paths is now '/' [Main] libmondo-devices.c->mr_make_devlist_from_pathlist#2005: exclude_paths is now '/mnt /backup/mnt ' [Main] libmondo-devices.c->mr_make_devlist_from_pathlist#2002: include_paths is now '/' [Main] libmondo-devices.c->mr_make_devlist_from_pathlist#2005: exclude_paths is now '/mnt /backup/mnt /backup/mnt ' [Main] libmondo-devices.c->mr_make_devlist_from_pathlist#2002: include_paths is now '/' [Main] libmondo-devices.c->mr_make_devlist_from_pathlist#2005: exclude_paths is now '/mnt /backup/mnt /backup/mnt /backup/mnt ' [Main] libmondo-devices.c->mr_make_devlist_from_pathlist#2002: include_paths is now '/' [Main] libmondo-devices.c->mr_make_devlist_from_pathlist#2005: exclude_paths is now '/mnt /backup/mnt /backup/mnt /backup/mnt /backup/mnt ' [Main] libmondo-devices.c->mr_make_devlist_from_pathlist#2002: include_paths is now '/' [Main] libmondo-devices.c->mr_make_devlist_from_pathlist#2005: exclude_paths is now '/mnt /backup/mnt /backup/mnt /backup/mnt /backup/mnt /backup/mnt '
/backup/mnt is added infinitely until segfault.
Notice that I'm excluding /mnt /backup not /backup/mnt
Regards,
comment:6 by , 15 years ago
Milestone: | 2.2.10 → 2.2.9.1 |
---|---|
Resolution: | → fixed |
Status: | assigned → closed |
This problem is linked to the introductoin of the new function mr_make_devlist_from_pathlist which directly appends to the bkpinfo->exclude_path variable. So it should not been used with that as an entry parameter, as it creates the loop you're seing.
Fixed in rev [2473].
Will be in 2.2.9.1 published later this week
Could you also give the command line or interactive steps you do in order for me to reproduce it please ?