From: "Dmitry V. Levin" <ldv@altlinux.org>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] Q: /usr/bin/python2.6 setup.py build --debug: Segmentation fault
Date: Wed, 13 Jul 2011 21:36:19 +0400
Message-ID: <20110713173618.GA3762@altlinux.org> (raw)
In-Reply-To: <20110713072226.GA10210@altlinux.org>
[-- Attachment #1: Type: text/plain, Size: 2074 bytes --]
On Wed, Jul 13, 2011 at 11:22:26AM +0400, Dmitry V. Levin wrote:
> On Wed, Jul 13, 2011 at 10:20:25AM +0700, REAL wrote:
> > На x86_64 с matplotlib при сборке в gear
> > воспроизводится в ~90% случаев, но в hsh-shell
> > так и не удалось.
>
> Тогда имеет смысл снять ограничения на коркообразование, получить корку и
> посмотреть на нее.
Core was generated by `/usr/bin/python2.6 setup.py build --debug'.
Program terminated with signal 11, Segmentation fault.
#0 alloc_mmap (address=0x0) at memory.c:361
361 *(long *)start = (long)start + PAGESIZE;
(gdb) bt
#0 alloc_mmap (address=0x0) at memory.c:361
#1 0xf66e1104 in blas_memory_alloc (procpos=2) at memory.c:915
#2 0xf66e185e in blas_thread_server (arg=0x0) at blas_server.c:242
#3 0xf74eb940 in start_thread (arg=0xf5c99b70) at pthread_create.c:297
#4 0xf75ce8ae in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130
(gdb) l
356
357 start = (BLASULONG)map_address;
358 current = (SCALING - 1) * BUFFER_SIZE;
359
360 while(current > 0) {
361 *(long *)start = (long)start + PAGESIZE;
362 start += PAGESIZE;
363 current -= PAGESIZE;
364 }
365
(gdb) p map_address
$1 = (void *) 0xecdf2000
(gdb) p/x start
$3 = 0xecdf2000
(gdb) p *(long*)map_address
Cannot access memory at address 0xecdf2000
Картина примерно следующая: тред при старте делает
map_address = mmap(NULL, 0x2000000, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0);
mbind(map_address, 0x20000000, MPOL_PREFERRED, NULL, 0, 0);
сразу после этого пытается записать long по адресу map_address, и
получает SIGSEGV с кодом ошибки 6 (user-mode write access).
Наиболее вероятно, что за время, прошедшее между окончанием mmap(2) и
началом записи, другой тред сделал munmap(2) этой части адресного
пространства.
Подозреваю, хотя и не проверял, что спорадические SIGSEGVы начали
происходить после следующего изменения в gotoblas2:
* Sat Apr 09 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux> 1.13-alt5
- Use pthread instead of OpenMP (inspired by mike@)
--
ldv
[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]
next prev parent reply other threads:[~2011-07-13 17:36 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-12 8:48 Dmitry V. Levin
2011-07-12 8:59 ` REAL
2011-07-12 9:51 ` Dmitry V. Levin
2011-07-12 9:59 ` REAL
2011-07-12 10:13 ` Dmitry V. Levin
2011-07-12 10:38 ` REAL
2011-07-12 10:41 ` REAL
2011-07-12 22:37 ` Dmitry V. Levin
2011-07-13 3:20 ` REAL
2011-07-13 7:22 ` Dmitry V. Levin
2011-07-13 7:24 ` REAL
2011-07-13 7:54 ` Dmitry V. Levin
2011-07-13 17:36 ` Dmitry V. Levin [this message]
2011-07-14 2:58 ` REAL
2011-07-14 3:00 ` REAL
2011-07-14 9:49 ` Dmitry V. Levin
2011-07-14 10:00 ` REAL
2011-07-14 10:01 ` REAL
2011-07-14 10:13 ` Dmitry V. Levin
2011-07-17 10:42 ` REAL
2011-07-12 12:15 ` REAL
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110713173618.GA3762@altlinux.org \
--to=ldv@altlinux.org \
--cc=devel@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Team development discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
public-inbox-index devel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git