Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Sun, 26 May 2013 00:46:17 +0900
From: plan9assembler <plan9assembler@...il.com>
To: musl@...ts.openwall.com
Subject: util-linux-2.23 mount segmentation fault error

Hi,

i had compile util-linux-2.23 successfully, but when i test mount binary,
it getting segmentation fault.
http://plan9assembler.wordpress.com/2013/05/25/udev-in-x86_64-linux-musl/

$ cd util-linux-2.23
$ cd .libs
$ ./mount
 mount[5449]: segfault at 2f ip 00007f593a84f903 sp 00008fff894870e8 error
4 in libc.so[7f593a804000+72000]
Segmentation fault
$

util-linux-2.23 version use qsort_r(), so i added it from ccl (C Containers
library <https://code.google.com/p/ccl/>)
and changed parameter order.
https://ccl.googlecode.com/svn/trunk/qsort_r.c

vi  musl/include/stdlib.h
typedef int cmp_t(void *, const void*, const void*);
void qsort_r(void *, size_t, size_t, cmp_t *, void*);

Content of type "text/html" skipped

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.