Skip to content

drawImage segmentation fault #59

@goddamnbugs

Description

@goddamnbugs

node -v == v0.2.5 (built in debug mode, but behaves the same as release mode)
dpkg-config --modversion cairo == 1.10.0
gcc -v == 4.4.5
gdb -v == 7.2-ubuntu

./node-canvas/make builds with one warning:
[2/8] cxx: src/Image.cc -> build/default/src/Image_1.o
../src/Image.cc: In member function ‘cairo_status_t Image::loadSurface()’:
../src/Image.cc:275: warning: enumeration value ‘UNKNOWN’ not handled in switch

node ./node-canvas/test/server.js will produce a segmentation fault when I navigate to localhost:3000 ... looks like the drawImage set of tests fail at the first one.

$ gdb node
Reading symbols from /usr/local/bin/node...done.

(gdb) run
Starting program: /usr/local/bin/node
[Thread debugging using libthread_db enabled]

require('./node-canvas/test/server')
Test server listening on port 3000
{}

[navigate to localhost:3000] will result in:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb5d3fb70 (LWP 5692)]
0x0066d57b in Canvas::EIO_ToBuffer (req=0x84f81d8) at ../src/Canvas.cc:144
144 , closure);

(gdb) bt
#0 0x0066457b in Canvas::EIO_ToBuffer (req=0x84cd470)

at ../src/Canvas.cc:144

#1 0x08119896 in eio_execute (thr_arg=0x84cd898)

at ../deps/libeio/eio.c:1679

#2 etp_proc (thr_arg=0x84cd898) at ../deps/libeio/eio.c:1513
#3 0x00406cc9 in start_thread () from /lib/libpthread.so.0
#4 0x004eb6be in clone () from /lib/libc.so.6

I'm going to try another version of node and see what happens...I'm thinking this is a node problem but have taken it as far as I can for the moment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions