On Wed, Oct 02, 2019 at 12:40:33AM -0600, Anthony J. Bentley wrote:
> Hi Solene,
> 
> Solene Rapenne writes:
> > 0x00000ef60c5b99a4 in alloc_synth_image () from 
> > /usr/local/lib/libcards.so.0.
> > 0
> > (gdb) bt
> > #0  0x00000ef60c5b99a4 in alloc_synth_image () from 
> > /usr/local/lib/libcards.s
> > o.0.0
> > #1  0x00000ef60c5b4517 in card_synth () from /usr/local/lib/libcards.so.0.0
> > #2  0x00000ef60c5b737b in stack_set_card_size () from 
> > /usr/local/lib/libcards
> > .so.0.0
> > #3  0x00000ef3e3104cbe in ?? ()
> > #4  0x00000ef60c5b3385 in table_loop () from /usr/local/lib/libcards.so.0.0
> > #5  0x00000ef3e31033bb in ?? ()
> > #6  0x00000ef3e310313b in ?? ()
> > #7  0x0000000000000000 in ?? ()
> 
> Please rebuild with debugging symbols; otherwise the backtrace provides
> little useful information.
> 
> -- 
> Anthony J. Bentley

of course, here is a backtrace for solitaire

Starting program: /usr/local/bin/solitaire

Program received signal SIGSEGV, Segmentation fault.
alloc_synth_image (list=0xf6cae96c1d0 <card_images+192>, width=73, height=97, 
type=2) at imagelib.c:110
110       rv->width = width;
(gdb) bt
#0  alloc_synth_image (list=0xf6cae96c1d0 <card_images+192>, width=73, 
height=97, type=2)
    at imagelib.c:110
#1  0x00000f6cae962517 in card_synth (list=0xf6cae96c1d0 <card_images+192>, 
type=2, width=73, height=97)
    at table.c:909
#2  0x00000f6cae96538b in stack_set_card_size (width=73, height=97) at 
stack.c:235
#3  0x00000f6a33571cbe in init () at solitaire.c:104
#4  0x00000f6cae961385 in maybe_init () at table.c:322
#5  table_loop () at table.c:352
#6  0x00000f6a335703bb in main (argc=<optimized out>, argv=<optimized out>) at 
solitaire.c:678
(gdb) print width
$1 = 73
(gdb) print rv
$2 = (image *) 0x695c7240
(gdb) print rv->width
Cannot access memory at address 0x695c7240

they all crash on the same function.
I tried to compile with ports-clang and ports-gcc (just in case, I'm not sure
it could have produced a different result?) with no better result.

Reply via email to