[GRASS5] v.digit still segfaults

Hi,

I just did a fresh cvs checkout and rebuilt grass from scratch. v.digit still segfaults :frowning:

--Wolf

--

<:3 )---- Wolf Bergenheim ----( 8:>

How did you run v.digit? From the GIS Manager, from the command line, both?

Michael
__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics and Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

From: Wolf Bergenheim <wolf+grass@bergenheim.net>
Date: Wed, 3 May 2006 19:07:02 +0300 (EEST)
To: GRASS developers <grass5@grass.itc.it>
Subject: [GRASS5] v.digit still segfaults

Hi,

I just did a fresh cvs checkout and rebuilt grass from scratch. v.digit
still segfaults :frowning:

--Wolf

--

<:3 )---- Wolf Bergenheim ----( 8:>

Hallo,

confirm, v.digit segfaults:

GRASS 6.1.cvs:~ > v.digit -n pokus2
New empty map created.
Neoprávněný přístup do paměti (SIGSEGV)
GRASS 6.1.cvs:~ >

(gdb) run
Starting program: /usr/local/grass-6.1.cvs/bin/v.digit -n pokus3
[Thread debugging using libthread_db enabled]
[New Thread -1240200992 (LWP 6824)]
warning: Lowest section in /usr/lib/libicudata.so.34 is .hash at
00000094
New empty map created.
[New Thread -1240421456 (LWP 6828)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1240200992 (LWP 6824)]
0xb776a203 in strlen () from /lib/tls/libc.so.6
(gdb)

GRASS 6.1.cvs:~ > v.digit -n pokus4
[...]
D1/5: Map opened
D2/5: cat_init()
D2/5: symb_line_init()
D2/5: symb_node_init()
D5/5: driver_open()
D5/5: -> opened
D2/5: top = 0 bot = 480, left = 0 right = 640
D2/5: n = 0.000000 s = 480.000000, w = 0.000000 e = 639.000000
D2/5: n = 4927970.730460 s = 4915893.960560, w = 593020.769477 e =
609097.969406
D2/5: Scale = 25.159937
D5/5: driver_close()
D5/5: -> closed
D5/5: driver_open()
D5/5: -> opened
D2/5: top = 0 bot = 480, left = 0 right = 640
D2/5: n = 0.000000 s = 480.000000, w = 0.000000 e = 639.000000
D2/5: n = 4927970.730460 s = 4915893.960560, w = 593020.769477 e =
609097.969406
D2/5: Scale = 25.159937
D2/5: display_bg()
D5/5: driver_close()
D5/5: -> closed
D5/5: driver_open()
D5/5: -> opened
D2/5: top = 0 bot = 480, left = 0 right = 640
D2/5: n = 0.000000 s = 480.000000, w = 0.000000 e = 639.000000
D2/5: n = 4927970.730460 s = 4915893.960560, w = 593020.769477 e =
609097.969406
D2/5: Scale = 25.159937
D2/5: display_map()
D2/5: set color to symb 2: 255 255 0
D2/5: set color to symb 13: 0 153 0
D2/5: set color to symb 12: 255 0 0
D5/5: driver_close()
D5/5: -> closed
Segmentation fault
GRASS 6.1.cvs:~ >

I hope, this helps.

Jachym

On Wed, May 03, 2006 at 12:59:23PM -0700, Michael Barton wrote:

How did you run v.digit? From the GIS Manager, from the command line, both?

Michael
__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics and Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

> From: Wolf Bergenheim <wolf+grass@bergenheim.net>
> Date: Wed, 3 May 2006 19:07:02 +0300 (EEST)
> To: GRASS developers <grass5@grass.itc.it>
> Subject: [GRASS5] v.digit still segfaults
>
> Hi,
>
> I just did a fresh cvs checkout and rebuilt grass from scratch. v.digit
> still segfaults :frowning:
>
> --Wolf
>
> --
>
> <:3 )---- Wolf Bergenheim ----( 8:>
>

_______________________________________________
grass5 mailing list
grass5@grass.itc.it
http://grass.itc.it/mailman/listinfo/grass5

--
Jachym Cepicky
e-mail: jachym.cepicky@centrum.cz
URL: http://les-ejk.cz
GPG: http://les-ejk.cz/gnupg_public_key/jachym_cepicky-gpg_public_key.asc
-----------------------------------------
OFFICE:
GDF-Hannover
Mengendamm 16d
30177 Hannover
Germany
e-mail: cepicky@gdf-hannover.de
URL: http://gdf-hannover.de
Tel.: +49 511-39088507

On Wed, 3 May 2006, Michael Barton wrote:

How did you run v.digit? From the GIS Manager, from the command line, both?

Both, I even tried it with the old d.m, but the most I got was either x0 (or x1) display opened or then a tcl prompt for v.digit parameters.

--Wolf

Michael
__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics and Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

From: Wolf Bergenheim <wolf+grass@bergenheim.net>
Date: Wed, 3 May 2006 19:07:02 +0300 (EEST)
To: GRASS developers <grass5@grass.itc.it>
Subject: [GRASS5] v.digit still segfaults

Hi,

I just did a fresh cvs checkout and rebuilt grass from scratch. v.digit
still segfaults :frowning:

--Wolf

--

<:3 )---- Wolf Bergenheim ----( 8:>

_______________________________________________
grass5 mailing list
grass5@grass.itc.it
http://grass.itc.it/mailman/listinfo/grass5

--

<:3 )---- Wolf Bergenheim ----( 8:>

Jachim,

Thanks for the details. That may help someone, but doesn't help me. I just
need to know if v.digit is breaking only when opened in gis.m, whether it
doesn't work when run from the v.digit module gui, and/or whether it doesn't
work when run completely from the command line.

If it's the last, it is a problem in the C module that still needs to be
fixed; if the first, it's a GIS Manager problem; if the second, its a
problem with the module GUI.

Michael
__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics and Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

From: Jachym Cepicky <jachym.cepicky@centrum.cz>
Date: Wed, 3 May 2006 22:10:11 +0200
To: Michael Barton <michael.barton@asu.edu>
Cc: Wolf Bergenheim <wolf+grass@bergenheim.net>, GRASS developers
<grass5@grass.itc.it>
Subject: Re: [GRASS5] v.digit still segfaults

Hallo,

confirm, v.digit segfaults:

GRASS 6.1.cvs:~ > v.digit -n pokus2
New empty map created.
Neoprávnìný pøístup do pamìti (SIGSEGV)
GRASS 6.1.cvs:~ >

(gdb) run
Starting program: /usr/local/grass-6.1.cvs/bin/v.digit -n pokus3
[Thread debugging using libthread_db enabled]
[New Thread -1240200992 (LWP 6824)]
warning: Lowest section in /usr/lib/libicudata.so.34 is .hash at
00000094
New empty map created.
[New Thread -1240421456 (LWP 6828)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1240200992 (LWP 6824)]
0xb776a203 in strlen () from /lib/tls/libc.so.6
(gdb)

GRASS 6.1.cvs:~ > v.digit -n pokus4
[...]
D1/5: Map opened
D2/5: cat_init()
D2/5: symb_line_init()
D2/5: symb_node_init()
D5/5: driver_open()
D5/5: -> opened
D2/5: top = 0 bot = 480, left = 0 right = 640
D2/5: n = 0.000000 s = 480.000000, w = 0.000000 e = 639.000000
D2/5: n = 4927970.730460 s = 4915893.960560, w = 593020.769477 e =
609097.969406
D2/5: Scale = 25.159937
D5/5: driver_close()
D5/5: -> closed
D5/5: driver_open()
D5/5: -> opened
D2/5: top = 0 bot = 480, left = 0 right = 640
D2/5: n = 0.000000 s = 480.000000, w = 0.000000 e = 639.000000
D2/5: n = 4927970.730460 s = 4915893.960560, w = 593020.769477 e =
609097.969406
D2/5: Scale = 25.159937
D2/5: display_bg()
D5/5: driver_close()
D5/5: -> closed
D5/5: driver_open()
D5/5: -> opened
D2/5: top = 0 bot = 480, left = 0 right = 640
D2/5: n = 0.000000 s = 480.000000, w = 0.000000 e = 639.000000
D2/5: n = 4927970.730460 s = 4915893.960560, w = 593020.769477 e =
609097.969406
D2/5: Scale = 25.159937
D2/5: display_map()
D2/5: set color to symb 2: 255 255 0
D2/5: set color to symb 13: 0 153 0
D2/5: set color to symb 12: 255 0 0
D5/5: driver_close()
D5/5: -> closed
Segmentation fault
GRASS 6.1.cvs:~ >

I hope, this helps.

Jachym

On Wed, May 03, 2006 at 12:59:23PM -0700, Michael Barton wrote:

How did you run v.digit? From the GIS Manager, from the command line, both?

Michael
__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics and Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

From: Wolf Bergenheim <wolf+grass@bergenheim.net>
Date: Wed, 3 May 2006 19:07:02 +0300 (EEST)
To: GRASS developers <grass5@grass.itc.it>
Subject: [GRASS5] v.digit still segfaults

Hi,

I just did a fresh cvs checkout and rebuilt grass from scratch. v.digit
still segfaults :frowning:

--Wolf

--

<:3 )---- Wolf Bergenheim ----( 8:>

_______________________________________________
grass5 mailing list
grass5@grass.itc.it
http://grass.itc.it/mailman/listinfo/grass5

--
Jachym Cepicky
e-mail: jachym.cepicky@centrum.cz
URL: http://les-ejk.cz
GPG: http://les-ejk.cz/gnupg_public_key/jachym_cepicky-gpg_public_key.asc
-----------------------------------------
OFFICE:
GDF-Hannover
Mengendamm 16d
30177 Hannover
Germany
e-mail: cepicky@gdf-hannover.de
URL: http://gdf-hannover.de
Tel.: +49 511-39088507

Did you do the following:

open a display manually (d.mon start=x0)
run v.digit

The reason I ask is that there was a problem that I fixed today that
involved automatically opening an x11 display for v.digit when the digitize
button in gis.m is pushed. But this does NOT fix any problem in v.digit
itself.

Michael
__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics and Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

From: Wolf Bergenheim <wolf+grass@bergenheim.net>
Date: Thu, 4 May 2006 00:09:49 +0300 (EEST)
To: Michael Barton <michael.barton@asu.edu>
Cc: Wolf Bergenheim <wolf+grass@bergenheim.net>, GRASS developers
<grass5@grass.itc.it>
Subject: Re: [GRASS5] v.digit still segfaults

On Wed, 3 May 2006, Michael Barton wrote:

How did you run v.digit? From the GIS Manager, from the command line, both?

Both, I even tried it with the old d.m, but the most I got was either x0
(or x1) display opened or then a tcl prompt for v.digit parameters.

--Wolf

Michael
__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics and Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

From: Wolf Bergenheim <wolf+grass@bergenheim.net>
Date: Wed, 3 May 2006 19:07:02 +0300 (EEST)
To: GRASS developers <grass5@grass.itc.it>
Subject: [GRASS5] v.digit still segfaults

Hi,

I just did a fresh cvs checkout and rebuilt grass from scratch. v.digit
still segfaults :frowning:

--Wolf

--

<:3 )---- Wolf Bergenheim ----( 8:>

_______________________________________________
grass5 mailing list
grass5@grass.itc.it
http://grass.itc.it/mailman/listinfo/grass5

--

<:3 )---- Wolf Bergenheim ----( 8:>

Yes, and all it does is open a new monitor.

I also get the following error:
child process exited abnormally
     while executing
"exec -- d.mon start=x1 >& /dev/null"
     ("eval" body line 1)
     invoked from within
"eval exec -- $cmd $args >& /dev/null"
     (procedure "run" line 6)
     invoked from within
"run d.mon start=x1"
     ("eval" body line 1)
     invoked from within
"eval run $cmd $args"
     (procedure "runcmd" line 6)
     invoked from within
"runcmd "d.mon start=x$xmon""
     invoked from within
"if ![catch {open "|d.mon -L" r} input] {
       while {[gets $input line] >= 0} {
               if {[regexp -nocase "$xmon.*not running" $line]} {
           run..."
     (procedure "Gm::xmon" line 10)
     invoked from within
"Gm::xmon run v.digit "
     invoked from within
".#menubar.#menubar#menu3.#menubar#menu3#menu1 invoke active"
     ("uplevel" body line 1)
     invoked from within
"uplevel #0 [list $w invoke active]"
     (procedure "tk::MenuInvoke" line 50)
     invoked from within
"tk::MenuInvoke .#menubar.#menubar#menu3.#menubar#menu3#menu1 1"
     (command bound to event)

--Wolf

On Wed, 3 May 2006, Michael Barton wrote:

Did you do the following:

open a display manually (d.mon start=x0)
run v.digit

The reason I ask is that there was a problem that I fixed today that
involved automatically opening an x11 display for v.digit when the digitize
button in gis.m is pushed. But this does NOT fix any problem in v.digit
itself.

Michael
__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics and Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

From: Wolf Bergenheim <wolf+grass@bergenheim.net>
Date: Thu, 4 May 2006 00:09:49 +0300 (EEST)
To: Michael Barton <michael.barton@asu.edu>
Cc: Wolf Bergenheim <wolf+grass@bergenheim.net>, GRASS developers
<grass5@grass.itc.it>
Subject: Re: [GRASS5] v.digit still segfaults

On Wed, 3 May 2006, Michael Barton wrote:

How did you run v.digit? From the GIS Manager, from the command line, both?

Both, I even tried it with the old d.m, but the most I got was either x0
(or x1) display opened or then a tcl prompt for v.digit parameters.

--Wolf

Michael
__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics and Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

From: Wolf Bergenheim <wolf+grass@bergenheim.net>
Date: Wed, 3 May 2006 19:07:02 +0300 (EEST)
To: GRASS developers <grass5@grass.itc.it>
Subject: [GRASS5] v.digit still segfaults

Hi,

I just did a fresh cvs checkout and rebuilt grass from scratch. v.digit
still segfaults :frowning:

--Wolf

--

<:3 )---- Wolf Bergenheim ----( 8:>

_______________________________________________
grass5 mailing list
grass5@grass.itc.it
http://grass.itc.it/mailman/listinfo/grass5

--

<:3 )---- Wolf Bergenheim ----( 8:>

--

<:3 )---- Wolf Bergenheim ----( 8:>

Wolf,

Would you try simply running it from the command line.

D.mon x0
V.digit myexistingmap

(where myexistingmap is a vector map you already have), then try

D.mon x0
V.digit -n mynewmap

(where mynewmap is the name of a vector map that *doesn't* exist)

Thanks
Michael
__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

From: Wolf Bergenheim <wolf+grass@bergenheim.net>
Date: Thu, 4 May 2006 08:38:21 +0300 (EEST)
To: Michael Barton <michael.barton@asu.edu>
Cc: Wolf Bergenheim <wolf+grass@bergenheim.net>, GRASS developers
<grass5@grass.itc.it>
Subject: Re: [GRASS5] v.digit still segfaults

Yes, and all it does is open a new monitor.

I also get the following error:
child process exited abnormally
child process exited abnormally
     while executing
"exec -- d.mon start=x1 >& /dev/null"
     ("eval" body line 1)
     invoked from within
"eval exec -- $cmd $args >& /dev/null"
     (procedure "run" line 6)
     invoked from within
"run d.mon start=x1"
     ("eval" body line 1)
     invoked from within
"eval run $cmd $args"
     (procedure "runcmd" line 6)
     invoked from within
"runcmd "d.mon start=x$xmon""
     invoked from within
"if ![catch {open "|d.mon -L" r} input] {
while {[gets $input line] >= 0} {
if {[regexp -nocase "$xmon.*not running" $line]} {
run..."
     (procedure "Gm::xmon" line 10)
     invoked from within
"Gm::xmon run v.digit "
     invoked from within
".#menubar.#menubar#menu3.#menubar#menu3#menu1 invoke active"
     ("uplevel" body line 1)
     invoked from within
"uplevel #0 [list $w invoke active]"
     (procedure "tk::MenuInvoke" line 50)
     invoked from within
"tk::MenuInvoke .#menubar.#menubar#menu3.#menubar#menu3#menu1 1"
     (command bound to event)

--Wolf

On Wed, 3 May 2006, Michael Barton wrote:

Did you do the following:

open a display manually (d.mon start=x0)
run v.digit

The reason I ask is that there was a problem that I fixed today that
involved automatically opening an x11 display for v.digit when the digitize
button in gis.m is pushed. But this does NOT fix any problem in v.digit
itself.

Michael
__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics and Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

From: Wolf Bergenheim <wolf+grass@bergenheim.net>
Date: Thu, 4 May 2006 00:09:49 +0300 (EEST)
To: Michael Barton <michael.barton@asu.edu>
Cc: Wolf Bergenheim <wolf+grass@bergenheim.net>, GRASS developers
<grass5@grass.itc.it>
Subject: Re: [GRASS5] v.digit still segfaults

On Wed, 3 May 2006, Michael Barton wrote:

How did you run v.digit? From the GIS Manager, from the command line, both?

Both, I even tried it with the old d.m, but the most I got was either x0
(or x1) display opened or then a tcl prompt for v.digit parameters.

--Wolf

Michael
__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics and Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

From: Wolf Bergenheim <wolf+grass@bergenheim.net>
Date: Wed, 3 May 2006 19:07:02 +0300 (EEST)
To: GRASS developers <grass5@grass.itc.it>
Subject: [GRASS5] v.digit still segfaults

Hi,

I just did a fresh cvs checkout and rebuilt grass from scratch. v.digit
still segfaults :frowning:

--Wolf

--

<:3 )---- Wolf Bergenheim ----( 8:>

_______________________________________________
grass5 mailing list
grass5@grass.itc.it
http://grass.itc.it/mailman/listinfo/grass5

--

<:3 )---- Wolf Bergenheim ----( 8:>

--

<:3 )---- Wolf Bergenheim ----( 8:>

On Wed, 3 May 2006, Michael Barton wrote:

Wolf,

Would you try simply running it from the command line.

D.mon x0
V.digit myexistingmap

segfault:
#0 0xa77c2ca3 in strlen () from /lib/tls/i686/cmov/libc.so.6
#1 0xa78d1789 in Tcl_ExternalToUtfDString () from /usr/lib/libtcl8.4.so.0
#2 0xa7996365 in Tk_MainEx () from /usr/lib/libtk8.4.so.0
#3 0x08052169 in main ()

(where myexistingmap is a vector map you already have), then try

D.mon x0
V.digit -n mynewmap

segfault
#0 0xa777bca3 in strlen () from /lib/tls/i686/cmov/libc.so.6
#1 0xa788a789 in Tcl_ExternalToUtfDString () from /usr/lib/libtcl8.4.so.0
#2 0xa794f365 in Tk_MainEx () from /usr/lib/libtk8.4.so.0
#3 0x08052169 in main ()

--Wolf

--

<:3 )---- Wolf Bergenheim ----( 8:>

Thanks. This is very helpful.

There is still something wrong with the underlying v.digit module that needs
to be looked at by the C-folks.

Michael
__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

From: Wolf Bergenheim <wolf+grass@bergenheim.net>
Date: Thu, 4 May 2006 09:17:32 +0300 (EEST)
To: Michael Barton <michael.barton@asu.edu>
Cc: Wolf Bergenheim <wolf+grass@bergenheim.net>, GRASS developers
<grass5@grass.itc.it>
Subject: Re: [GRASS5] v.digit still segfaults

On Wed, 3 May 2006, Michael Barton wrote:

Wolf,

Would you try simply running it from the command line.

D.mon x0
V.digit myexistingmap

segfault:
#0 0xa77c2ca3 in strlen () from /lib/tls/i686/cmov/libc.so.6
#1 0xa78d1789 in Tcl_ExternalToUtfDString () from /usr/lib/libtcl8.4.so.0
#2 0xa7996365 in Tk_MainEx () from /usr/lib/libtk8.4.so.0
#3 0x08052169 in main ()

(where myexistingmap is a vector map you already have), then try

D.mon x0
V.digit -n mynewmap

segfault
#0 0xa777bca3 in strlen () from /lib/tls/i686/cmov/libc.so.6
#1 0xa788a789 in Tcl_ExternalToUtfDString () from /usr/lib/libtcl8.4.so.0
#2 0xa794f365 in Tk_MainEx () from /usr/lib/libtk8.4.so.0
#3 0x08052169 in main ()

--Wolf

--

<:3 )---- Wolf Bergenheim ----( 8:>

Hallo and sorry - debuging is not my cup of tea, alas.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1240430368 (LWP 6305)]
0xb7732203 in strlen () from /lib/tls/libc.so.6
(gdb) bt
#0 0xb7732203 in strlen () from /lib/tls/libc.so.6
#1 0xb7840789 in Tcl_ExternalToUtfDString () from /usr/lib/libtcl8.4.so.0
#2 0xb7905365 in Tk_MainEx () from /usr/lib/libtk8.4.so.0
#3 0x08052357 in main (argc=32, argv=0xbf84c134) at main.c:197

debian testing

Jachym

On Wed, May 03, 2006 at 10:23:59PM +0200, Markus Neteler wrote:

On Wed, May 03, 2006 at 10:10:11PM +0200, Jachym Cepicky wrote:
> Hallo,
>
> confirm, v.digit segfaults:
>
> GRASS 6.1.cvs:~ > v.digit -n pokus2
> New empty map created.
> Neoprávn?ný p?ístup do pam?ti (SIGSEGV)
> GRASS 6.1.cvs:~ >
>
> (gdb) run
> Starting program: /usr/local/grass-6.1.cvs/bin/v.digit -n pokus3
> [Thread debugging using libthread_db enabled]
> [New Thread -1240200992 (LWP 6824)]
> warning: Lowest section in /usr/lib/libicudata.so.34 is .hash at
> 00000094
> New empty map created.
> [New Thread -1240421456 (LWP 6828)]
>
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread -1240200992 (LWP 6824)]
> 0xb776a203 in strlen () from /lib/tls/libc.so.6
> (gdb)

Hi Jachym

an dieser Stelle muesstest Du
bt
eingeben, sonst weiss man nicht, wo es passiert.

Debian?

ciao
Markus

>
> GRASS 6.1.cvs:~ > v.digit -n pokus4
> [...]
> D1/5: Map opened
> D2/5: cat_init()
> D2/5: symb_line_init()
> D2/5: symb_node_init()
> D5/5: driver_open()
> D5/5: -> opened
> D2/5: top = 0 bot = 480, left = 0 right = 640
> D2/5: n = 0.000000 s = 480.000000, w = 0.000000 e = 639.000000
> D2/5: n = 4927970.730460 s = 4915893.960560, w = 593020.769477 e =
> 609097.969406
> D2/5: Scale = 25.159937
> D5/5: driver_close()
> D5/5: -> closed
> D5/5: driver_open()
> D5/5: -> opened
> D2/5: top = 0 bot = 480, left = 0 right = 640
> D2/5: n = 0.000000 s = 480.000000, w = 0.000000 e = 639.000000
> D2/5: n = 4927970.730460 s = 4915893.960560, w = 593020.769477 e =
> 609097.969406
> D2/5: Scale = 25.159937
> D2/5: display_bg()
> D5/5: driver_close()
> D5/5: -> closed
> D5/5: driver_open()
> D5/5: -> opened
> D2/5: top = 0 bot = 480, left = 0 right = 640
> D2/5: n = 0.000000 s = 480.000000, w = 0.000000 e = 639.000000
> D2/5: n = 4927970.730460 s = 4915893.960560, w = 593020.769477 e =
> 609097.969406
> D2/5: Scale = 25.159937
> D2/5: display_map()
> D2/5: set color to symb 2: 255 255 0
> D2/5: set color to symb 13: 0 153 0
> D2/5: set color to symb 12: 255 0 0
> D5/5: driver_close()
> D5/5: -> closed
> Segmentation fault
> GRASS 6.1.cvs:~ >
>
> I hope, this helps.
>
> Jachym
>
> On Wed, May 03, 2006 at 12:59:23PM -0700, Michael Barton wrote:
> > How did you run v.digit? From the GIS Manager, from the command line, both?
> >
> > Michael
> > __________________________________________
> > Michael Barton, Professor of Anthropology
> > School of Human Evolution & Social Change
> > Center for Social Dynamics and Complexity
> > Arizona State University
> >
> > phone: 480-965-6213
> > fax: 480-965-7671
> > www: http://www.public.asu.edu/~cmbarton
> >
> >
> > > From: Wolf Bergenheim <wolf+grass@bergenheim.net>
> > > Date: Wed, 3 May 2006 19:07:02 +0300 (EEST)
> > > To: GRASS developers <grass5@grass.itc.it>
> > > Subject: [GRASS5] v.digit still segfaults
> > >
> > > Hi,
> > >
> > > I just did a fresh cvs checkout and rebuilt grass from scratch. v.digit
> > > still segfaults :frowning:
> > >
> > > --Wolf
> > >
> > > --
> > >
> > > <:3 )---- Wolf Bergenheim ----( 8:>
> > >
> >
> > _______________________________________________
> > grass5 mailing list
> > grass5@grass.itc.it
> > http://grass.itc.it/mailman/listinfo/grass5
>
> --
> Jachym Cepicky
> e-mail: jachym.cepicky@centrum.cz
> URL: http://les-ejk.cz
> GPG: http://les-ejk.cz/gnupg_public_key/jachym_cepicky-gpg_public_key.asc
> -----------------------------------------
> OFFICE:
> GDF-Hannover
> Mengendamm 16d
> 30177 Hannover
> Germany
> e-mail: cepicky@gdf-hannover.de
> URL: http://gdf-hannover.de
> Tel.: +49 511-39088507

--
Markus Neteler <neteler itc it> http://mpa.itc.it
ITC-irst - Centro per la Ricerca Scientifica e Tecnologica
MPBA - Predictive Models for Biol. & Environ. Data Analysis
Via Sommarive, 18 - 38050 Povo (Trento), Italy

--
Jachym Cepicky
e-mail: jachym.cepicky@centrum.cz
URL: http://les-ejk.cz
GPG: http://les-ejk.cz/gnupg_public_key/jachym_cepicky-gpg_public_key.asc
-----------------------------------------
OFFICE:
GDF-Hannover
Mengendamm 16d
30177 Hannover
Germany
e-mail: cepicky@gdf-hannover.de
URL: http://gdf-hannover.de
Tel.: +49 511-39088507

Hallo and sorry - debuging is not my cup of tea, alas.

Threaded Tcl + C is hard for anybody.

A dumb but effective method is to start adding
  printf(" -- here line 1234\n");
in the C code and
  puts {"here line 1234"}
in the tcl code and see if you can narrow down exactly where it breaks.
When you find that you can print the variables before the call to
investiatge.

gdb hints: [compile with -g and without optimization or stripping]

(gdb) bt f # outputs all variable values when it broke
(gdb) l # (lowercase "L") shows where in the source code you are
(gdb) frame 0 # switches to that function (eg #0 strlen())
(gdb) p <name> # print the value of some variable

see also doc/debugging.txt in the source code.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1240430368 (LWP 6305)]
0xb7732203 in strlen () from /lib/tls/libc.so.6
(gdb) bt
#0 0xb7732203 in strlen () from /lib/tls/libc.so.6
#1 0xb7840789 in Tcl_ExternalToUtfDString () from
#/usr/lib/libtcl8.4.so.0 2 0xb7905365 in Tk_MainEx () from
#/usr/lib/libtk8.4.so.0 3 0x08052357 in main (argc=32,
#argv=0xbf84c134) at main.c:197

debian testing

It's all fine for me on Debian/stable tcl/tk 8.4

Can you try compiling with tcl8.3-dev and tk8.3-dev and see if you get
the same result?

Hamish

ps - please cc relevant info to the bug report,
  https://intevation.de/rt/webrt?serial_num=4380