mailing list of musl libc
 help / color / mirror / code / Atom feed
* util-linux-2.23 mount segmentation fault error
@ 2013-05-25 15:46 plan9assembler
  2013-05-25 16:26 ` Rich Felker
  0 siblings, 1 reply; 25+ messages in thread
From: plan9assembler @ 2013-05-25 15:46 UTC (permalink / raw)
  To: musl

[-- Attachment #1: Type: text/plain, Size: 685 bytes --]

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*);

[-- Attachment #2: Type: text/html, Size: 1146 bytes --]

^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2013-06-02 22:02 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-25 15:46 util-linux-2.23 mount segmentation fault error plan9assembler
2013-05-25 16:26 ` Rich Felker
2013-05-25 21:34   ` plan9assembler
2013-05-26  9:14     ` Szabolcs Nagy
2013-05-26 11:22       ` plan9assembler
2013-05-27 14:05         ` plan9assembler
2013-05-27 14:29           ` Szabolcs Nagy
2013-05-27 21:40             ` plan9assembler
2013-05-29 13:46               ` plan9assembler
2013-05-29 14:11               ` Luca Barbato
2013-05-29 14:32                 ` plan9assembler
2013-05-29 14:41                   ` plan9assembler
2013-05-29 20:04                     ` Szabolcs Nagy
2013-05-29 22:07                       ` plan9assembler
2013-05-29 22:17                         ` plan9assembler
2013-05-30  6:11                           ` plan9assembler
2013-05-30  6:43                             ` Szabolcs Nagy
2013-05-30  7:26                               ` plan9assembler
2013-05-30  8:37                                 ` Szabolcs Nagy
2013-06-01 23:14                                   ` plan9assembler
2013-06-01 23:16                                     ` plan9assembler
2013-06-02  1:50                                     ` John Spencer
2013-06-02 10:55                                       ` plan9assembler
2013-06-02 13:00                                         ` Szabolcs Nagy
2013-06-02 22:02                                           ` plan9assembler

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).