[Bug 344215] Re: JMicron RAID controller segfaults when activating dmraid-rc15 (jaunty)

2017-10-26 Thread Bug Watch Updater
Launchpad has imported 14 comments from the remote bug at
https://bugzilla.redhat.com/show_bug.cgi?id=473494.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.


On 2008-11-28T20:22:46+00:00 Christophe wrote:

Created attachment 325037
lshw log

Description of problem:
dmraid crashes with a  malloc(): memory corruption message

Version-Release number of selected component (if applicable):
dmraid-1.0.0.rc15-2.fc10.x86_64
dmraid-libs-1.0.0.rc15-2.fc10.x86_64


How reproducible: always happens on my system:

Gigabyte P35C-DS3R
64 bits

with 4 disk on the intel ICH9 controller
the first 2 (including the one on which is install fedora) are not in a raid 
array
the last 2 are on a raid0 array

no disks on the jmicron controller


Steps to Reproduce:
1.dmraid -vay
  
Actual results:

[root@loozbox01 ~]# dmraid -vay
/dev/sdd: "jmicron" and "isw" formats discovered (using isw)!
*** glibc detected *** dmraid: malloc(): memory corruption: 0x0089cd00 
***
=== Backtrace: =
/lib64/libc.so.6[0x3022a7b1cf]
/lib64/libc.so.6(__libc_malloc+0x98)[0x3022a7ca08]
dmraid[0x40ffde]
dmraid[0x40a94c]
dmraid(free_raid_dev+0x25)[0x40aa75]
dmraid[0x40b7ef]
dmraid(discover_raid_devices+0xf3)[0x40d0d3]
dmraid(lib_perform+0x17f)[0x40d2ef]
dmraid(main+0x6e)[0x403f5e]
/lib64/libc.so.6(__libc_start_main+0xe6)[0x3022a1e546]
dmraid[0x403e29]
=== Memory map: 
0040-00431000 r-xp  08:02 752230 
/sbin/dmraid
0063-00634000 rw-p 0003 08:02 752230 
/sbin/dmraid
0089b000-008bc000 rw-p 0089b000 00:00 0  [heap]
302120-302122 r-xp  08:02 253555 
/lib64/ld-2.9.so
302141f000-302142 r--p 0001f000 08:02 253555 
/lib64/ld-2.9.so
302142-3021421000 rw-p 0002 08:02 253555 
/lib64/ld-2.9.so
302220-3022239000 r-xp  08:02 253575 
/lib64/libsepol.so.1
3022239000-3022439000 ---p 00039000 08:02 253575 
/lib64/libsepol.so.1
3022439000-302243a000 rw-p 00039000 08:02 253575 
/lib64/libsepol.so.1
302260-3022615000 r-xp  08:02 253831 
/lib64/libdevmapper.so.1.02
3022615000-3022815000 ---p 00015000 08:02 253831 
/lib64/libdevmapper.so.1.02
3022815000-3022817000 rw-p 00015000 08:02 253831 
/lib64/libdevmapper.so.1.02
3022a0-3022b68000 r-xp  08:02 253557 
/lib64/libc-2.9.so
3022b68000-3022d68000 ---p 00168000 08:02 253557 
/lib64/libc-2.9.so
3022d68000-3022d6c000 r--p 00168000 08:02 253557 
/lib64/libc-2.9.so
3022d6c000-3022d6d000 rw-p 0016c000 08:02 253557 
/lib64/libc-2.9.so
3022d6d000-3022d72000 rw-p 3022d6d000 00:00 0 
302320-3023202000 r-xp  08:02 253791 
/lib64/libdl-2.9.so
3023202000-3023402000 ---p 2000 08:02 253791 
/lib64/libdl-2.9.so
3023402000-3023403000 r--p 2000 08:02 253791 
/lib64/libdl-2.9.so
3023403000-3023404000 rw-p 3000 08:02 253791 
/lib64/libdl-2.9.so
3023e0-3023e1a000 r-xp  08:02 253793 
/lib64/libselinux.so.1
3023e1a000-3024019000 ---p 0001a000 08:02 253793 
/lib64/libselinux.so.1
3024019000-302401a000 r--p 00019000 08:02 253793 
/lib64/libselinux.so.1
302401a000-302401b000 rw-p 0001a000 08:02 253793 
/lib64/libselinux.so.1
302401b000-302401c000 rw-p 302401b000 00:00 0 
302e40-302e416000 r-xp  08:02 253813 
/lib64/libgcc_s-4.3.2-20081105.so.1
302e416000-302e616000 ---p 00016000 08:02 253813 
/lib64/libgcc_s-4.3.2-20081105.so.1
302e616000-302e617000 rw-p 00016000 08:02 253813 
/lib64/libgcc_s-4.3.2-20081105.so.1
7fdd8c00-7fdd8c021000 rw-p 7fdd8c00 00:00 0 
7fdd8c021000-7fdd9000 ---p 7fdd8c021000 00:00 0 
7fdd91ee1000-7fdd91ee4000 rw-p 7fdd91ee1000 00:00 0 
7fdd91ef7000-7fdd91efa000 rw-p 7fdd91ef7000 00:00 0 
7fff99ee5000-7fff99efa000 rw-p 7ffea000 00:00 0  [stack]
7fff99fff000-7fff9a00 r-xp 7fff99fff000 00:00 0  [vdso]
ff60-ff601000 r-xp  00:00 0  
[vsyscall]
Abandon


Additional info:

Reply at:
https://bugs.launchpad.net/ubuntu/+source/dmraid/+bug/344215/comments/0


On 2008-11-28T20:24:00+00:00 Christophe wrote:

Created 

[Bug 344215] Re: JMicron RAID controller segfaults when activating dmraid-rc15 (jaunty)

2009-12-19 Thread Bug Watch Updater
** Changed in: dmraid (Fedora)
   Status: Confirmed = Fix Released

-- 
JMicron RAID controller segfaults when activating dmraid-rc15 (jaunty)
https://bugs.launchpad.net/bugs/344215
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 344215] Re: JMicron RAID controller segfaults when activating dmraid-rc15 (jaunty)

2009-03-27 Thread Launchpad Bug Tracker
This bug was fixed in the package dmraid - 1.0.0.rc15-4ubuntu1

---
dmraid (1.0.0.rc15-4ubuntu1) jaunty; urgency=low

  * Fakesync from Debian, due to different MD5 for orig tarballs.

dmraid (1.0.0.rc15-4) unstable; urgency=low

  * [546b293] debian/patches/05_jmicron-name-fix.patch: Fix segfault
when attempting to generate name for jmicron controllers. Thanks to
danwood76 (LP: #344215)
  * [4b3dfa0] debian/patches/15_isw_incorrect_status_fix.patch: fix
incorrect status displayed when disk is missing (isw)

dmraid (1.0.0.rc15-3) unstable; urgency=low

  * [748a001] debian/patches/14_isw-serial-fix.patch: Change the serial
number scan to only look at the LAST 16 bytes rather than the first.
Thanks Sam Bingner (LP: #267953)
  * [9f577ac] debian/patches/09_promise-add-offsets.patch: Added 591
disk offset locations for Promise RAID metadata. (ASUS M3A equipped
with the SB600 south bridge)
  * [7aef2ee] debian/control: Added ${misc:Depends} in Depends
  * [7cac457] Updated to standards version 3.8.1 (No changes needed)

dmraid (1.0.0.rc15-2) unstable; urgency=low

  * [ac0f158] debian/dmraid-activate: Use the newly introduced -Z flag for
dmraid, to instruct the kernel to remove partition device nodes from array
member disks. This means that there is no chance of race conditions with
udev and creating UUID/label symbolic links either for member disk nodes,
or dmraid device-mapper nodes.

 -- Luke Yelavich them...@ubuntu.com   Mon, 23 Mar 2009 09:30:55 +1100

** Changed in: dmraid (Ubuntu)
   Status: Fix Committed = Fix Released

-- 
JMicron RAID controller segfaults when activating dmraid-rc15 (jaunty)
https://bugs.launchpad.net/bugs/344215
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 344215] Re: JMicron RAID controller segfaults when activating dmraid-rc15 (jaunty)

2009-03-20 Thread danwood76
No, your patch doesn't fix the issue, I still get the same segfault.
Reverting back to the previous patch and everything works fine.

Upon inspection of the code it is this bit that causes the segfault:
while (i--  isspace(buf[i]))
buf[i] = 0;

Its because of the white space check in the while(), it negates 1 from i
and then does a check on it (so i is out of bounds of buf), re arranging
this so the check it first solves the segfault but also causes it to put
lots of white space in the device and partition names.

The patch I posted previously works perfectly, although the code is a little 
jumbled, I have cleaned it and attached it to this.
This works perfectly as my previous one did also.

** Attachment added: Jmicron Name fix patch
   http://launchpadlibrarian.net/24147483/05_jmicron-name-fix.patch

-- 
JMicron RAID controller segfaults when activating dmraid-rc15 (jaunty)
https://bugs.launchpad.net/bugs/344215
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 344215] Re: JMicron RAID controller segfaults when activating dmraid-rc15 (jaunty)

2009-03-20 Thread Giuseppe Iuculano
Many thanks, I've committed your patch in the git repository.

** Changed in: dmraid (Ubuntu)
   Status: Confirmed = Fix Committed

-- 
JMicron RAID controller segfaults when activating dmraid-rc15 (jaunty)
https://bugs.launchpad.net/bugs/344215
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 344215] Re: JMicron RAID controller segfaults when activating dmraid-rc15 (jaunty)

2009-03-19 Thread danwood76
I manually applied that patch and it worked and activated the RAID sets.

Attached is a unified diff of the changes I made, the original source
differs from that of the other patch.

** Attachment added: Jmicron patch to stop malloc() overflow
   http://launchpadlibrarian.net/24102000/jm.patch

-- 
JMicron RAID controller segfaults when activating dmraid-rc15 (jaunty)
https://bugs.launchpad.net/bugs/344215
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 344215] Re: JMicron RAID controller segfaults when activating dmraid-rc15 (jaunty)

2009-03-19 Thread Giuseppe Iuculano
Hi!

danwood76 ha scritto:
 I manually applied that patch and it worked and activated the RAID sets.

Could you try the attacked patch please?

Cheers,
Giuseppe.


** Attachment added: 05_jmicron-name-fix.patch
   http://launchpadlibrarian.net/24106029/05_jmicron-name-fix.patch

-- 
JMicron RAID controller segfaults when activating dmraid-rc15 (jaunty)
https://bugs.launchpad.net/bugs/344215
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 344215] Re: JMicron RAID controller segfaults when activating dmraid-rc15 (jaunty)

2009-03-18 Thread Giuseppe Iuculano
It sounds me as an old bug fixed in the previous release with
10_jmicron-name-fix.dpatch[1]

[1]http://git.debian.org/?p=users/derevko-
guest/dmraid.git;a=blob;f=debian/patches/10_jmicron-name-
fix.dpatch;h=9cb48dafae99d66d0bddce2854fe688960615eb1;hb=refs/heads/lenny

** Bug watch added: Red Hat Bugzilla #473494
   https://bugzilla.redhat.com/show_bug.cgi?id=473494

** Also affects: dmraid (Fedora) via
   https://bugzilla.redhat.com/show_bug.cgi?id=473494
   Importance: Unknown
   Status: Unknown

** Changed in: dmraid (Ubuntu)
   Status: New = Confirmed

-- 
JMicron RAID controller segfaults when activating dmraid-rc15 (jaunty)
https://bugs.launchpad.net/bugs/344215
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 344215] Re: JMicron RAID controller segfaults when activating dmraid-rc15 (jaunty)

2009-03-18 Thread Bug Watch Updater
** Changed in: dmraid (Fedora)
   Status: Unknown = Confirmed

-- 
JMicron RAID controller segfaults when activating dmraid-rc15 (jaunty)
https://bugs.launchpad.net/bugs/344215
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 344215] Re: JMicron RAID controller segfaults when activating dmraid-rc15 (jaunty)

2009-03-17 Thread danwood76
Forgot to say this raid set works fine in Intrepid with the rc14 version, I 
have that version installed on it and running fine.
RC15 seems to have a lot of bugs compared to the previous version.

-- 
JMicron RAID controller segfaults when activating dmraid-rc15 (jaunty)
https://bugs.launchpad.net/bugs/344215
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs