www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - BUG? in _d_arraysetlength

reply Ant <duitoolkit yahoo.ca> writes:
I have a segfault:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 10305)]
0x081b3a92 in _d_arraysetlength ()

can't I possible do something to segfault inside some phobos function?
this seems to be on internal/gc/gc.d

???

linux dmd 0.101

---

can anyone send me the modified makefile to compile phobos 0.101
in linux?
I could try to put some printfs to seem exactly where it crashes.

Walter we need two things:
- a usable phobos makefile for linux
- debug info on linux

for the first one just ask on the main group and somebody will
get you a nice makefile. Pleople offered before...

Ant
Sep 06 2004
parent reply "Walter" <newshound digitalmars.com> writes:
"Ant" <duitoolkit yahoo.ca> wrote in message
news:pan.2004.09.06.21.32.50.286476 yahoo.ca...
 I have a segfault:

 Program received signal SIGSEGV, Segmentation fault.
 [Switching to Thread 16384 (LWP 10305)]
 0x081b3a92 in _d_arraysetlength ()

 can't I possible do something to segfault inside some phobos function?
 this seems to be on internal/gc/gc.d

 ???

 linux dmd 0.101

 ---

 can anyone send me the modified makefile to compile phobos 0.101
 in linux?
 I could try to put some printfs to seem exactly where it crashes.

 Walter we need two things:
 - a usable phobos makefile for linux
 - debug info on linux

 for the first one just ask on the main group and somebody will
 get you a nice makefile. Pleople offered before...

But I rebuild Phobos on linux for every release with the linux.mak supplied. What's wrong with it?
Sep 06 2004
next sibling parent Ant <duitoolkit yahoo.ca> writes:
On Mon, 06 Sep 2004 21:04:30 -0700, Walter wrote:

 
 "Ant" <duitoolkit yahoo.ca> wrote in message
 news:pan.2004.09.06.21.32.50.286476 yahoo.ca...
 I have a segfault:

 Program received signal SIGSEGV, Segmentation fault.
 [Switching to Thread 16384 (LWP 10305)]
 0x081b3a92 in _d_arraysetlength ()

 can't I possible do something to segfault inside some phobos function?
 this seems to be on internal/gc/gc.d

 ???

 linux dmd 0.101

 ---

 can anyone send me the modified makefile to compile phobos 0.101
 in linux?
 I could try to put some printfs to seem exactly where it crashes.

 Walter we need two things:
 - a usable phobos makefile for linux
 - debug info on linux

 for the first one just ask on the main group and somebody will
 get you a nice makefile. Pleople offered before...

But I rebuild Phobos on linux for every release with the linux.mak supplied. What's wrong with it?

I always have to change it! - dmd path is not relative to the dmd instalation - I have to compile the gc in a separate step -... (more ?) I'm tired of doing that. It's very simple but I'm not doing it again. Ant
Sep 07 2004
prev sibling parent reply Ant <duitoolkit yahoo.ca> writes:
On Mon, 06 Sep 2004 21:04:30 -0700, Walter wrote:

 But I rebuild Phobos on linux for every release with the linux.mak supplied.
 What's wrong with it?

how can you do that? I go to dmd/src/phobos and the makefile sets #DMD=/dmd/bin/dmd DMD=../dmd so DMD now is dmd/src/dmd a directory that contains *.c files. if you change to "DMD=../../bin/dmd" the compilation will start but then breaks with: make: *** No rule to make target `internal/gc/dmgc.a', needed by `libphobos.a'. Stop. so I change dir to internal/gc and the make -f linux.mak fails with make: execvp: ../../../dmd: Permission denied change it to "DMD=../../../../bin/dmd" and it compiles, go back to phobos and do make -f linux.mak. this time fails on the zlib, so go to zlib and compile it. go back to phobos and do make -f linux.mak. this time fails on the recls, so remove recls from the build (some people might want to compile recls) do make -f linux.mak. finally. that's what's wrong with the linux makefile. this is lots of fun but only the 30 first times after that it gets a bit repetitive. Ant
Sep 07 2004
next sibling parent "Walter" <newshound digitalmars.com> writes:
Ok, I see your point.
Sep 11 2004
prev sibling parent "Carlos Santander B." <carlos8294 msn.com> writes:
"Ant" <duitoolkit yahoo.ca> escribió en el mensaje
news:pan.2004.09.07.22.38.21.70682 yahoo.ca
| On Mon, 06 Sep 2004 21:04:30 -0700, Walter wrote:
|
|| But I rebuild Phobos on linux for every release with the linux.mak supplied.
|| What's wrong with it?
|
| how can you do that?
|
| I go to dmd/src/phobos
| and the makefile sets
|
| #DMD=/dmd/bin/dmd
| DMD=../dmd
|
| so DMD now is dmd/src/dmd a directory that contains *.c files.
|
| if you change to "DMD=../../bin/dmd"
| the compilation will start but then breaks with:
|
| make: *** No rule to make target `internal/gc/dmgc.a', needed by
| `libphobos.a'.  Stop.
|
| so I change dir to internal/gc
|
| and the make -f linux.mak fails with
|
| make: execvp: ../../../dmd: Permission denied
|
| change it to "DMD=../../../../bin/dmd"
|
| and it compiles,
| go back to phobos and do make -f linux.mak.
|
| this time fails on the zlib, so go to zlib and compile it.
|
| go back to phobos and do make -f linux.mak.
|
| this time fails on the recls, so remove recls from the build
| (some people might want to compile recls)
|
| do make -f linux.mak.
| finally.
|
|
| that's what's wrong with the linux makefile.
|
| this is lots of fun but only the 30 first times
| after that it gets a bit repetitive.
|
|
| Ant

BTW, the process is similar on Windows.

-----------------------
Carlos Santander Bernal
Sep 11 2004