Skip to content

Instantly share code, notes, and snippets.

View hdon's full-sized avatar

Donny Viszneki hdon

View GitHub Profile
(gdb) bt
#0 0x00000000 in ?? ()
#1 0xb7e8e64a in js_DefineFunction (cx=0x8053938, obj=0x8095020,
atom=0x806c26c, native=0xb7df412f <window_cursorPosition_valueOf>,
nargs=0, attrs=0) at /home/donny/gpsee/tracemonkey/js/src/jsfun.cpp:2169
#2 0xb7e5e733 in JS_DefineFunction (cx=0x8053938, obj=0x8095020,
name=0xb7df7435 "valueOf",
call=0xb7df412f <window_cursorPosition_valueOf>, nargs=0, attrs=0)
at /home/donny/gpsee/tracemonkey/js/src/jsapi.cpp:4583
#3 0xb7df48da in window_cursorPosition_getter (cx=0x8053938, obj=0x806f740,
#include "jsapi.h"
#include "jsxdrapi.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <stdio.h>
/* TODO I need to add support for JSXDR_FREE */
/* JSXDRFile member variables */
static const char *loadJSModule(JSContext *cx, moduleHandle_t *module, const char *filename)
{
char *cache_filename = NULL;
char *cache_file = NULL;
int cache_fd = -1;
JSXDRState *xdr;
if (use_compiler_cache && filename && *filename) {
int n, m;
char *s, *path, *base;
$ LD_DEBUG=symbols:libs LD_LIBRARY_PATH=/usr/local/gpsee/jsapi/lib:$LD_LIBRARY_PATH gsr gpsee/src/sample_programs/jsie.js
11215: symbol=js_IntervalNow; lookup in file=/usr/local/gpsee/jsapi/lib/libmozjs.so
11215: /usr/local/gpsee/libexec/mozshell_module.so: error: symbol lookup error: undefined symbol: js_IntervalNow (fatal)
NOTE: mozshell_module.so is dlopen()ed by gsr -- should this make a difference?
$ nm /usr/local/gpsee/jsapi/lib/libmozjs.so | less
0002c260 t js_IntervalNow
bind b "ut_radio 5 2" // enemy heard
bind h "ut_radio 5 1" // enemy spotted
bind i "ut_radio 2 8" // flank'em
bind j "ut_radio 2 6" // requesting backup
bind UPARROW "ut_radio 6 1" // north
bind DOWNARROW "ut_radio 6 2" // south
bind LEFTARROW "ut_radio 6 4" // west
bind RIGHTARROW "ut_radio 6 3" // east
bind PGDN "ut_radio 6 7" // high
bind PGUP "ut_radio 6 6" // low
(gdb) next
41 if (smode) {
(gdb) print c
$24 = 34 '"'
(gdb) print stack
$25 = (unsigned char *) 0x804b1b8 " Hello WorldA\016\002"
(gdb) print smode
$26 = 1 '\001'
(gdb) next
42 if (c == '"') smode = 0;
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <sys/mman.h>
void test() {
puts("Yoyoyo, Iambatman!\n");
puts("Yoyoyo, Iambatman!\n");
puts("Yoyoyo, Iambatman!\n");
}
In [6]: try: raise Exception('docuhe')
...: except Exception:
...: print sys.exc_info()
...:
(<class exceptions.Exception at 0xb7d4629c>, <exceptions.Exception instance at 0xb79a1aac>, <traceback object at 0xb77acbe4>)
In [8]: try: raise Exception('docuhe')
...: except Exception:
...: print sys.exc_info()[2].tb_frame
...:
donny@teamspace:~/litterbochs$ python udp-send.py host=localhost port=1234
Traceback (most recent call last):
File "udp-send.py", line 64, in ?
tx, rx, e = main()
File "udp-send.py", line 60, in main
return packets_tx, packets_rx, traceback.format_tb(e)
File "/usr/lib/python2.4/traceback.py", line 76, in format_tb
return format_list(extract_tb(tb, limit))
File "/usr/lib/python2.4/traceback.py", line 95, in extract_tb
f = tb.tb_frame
donny@teamspace:~$ gst-launch v4lsrc ! ffmpegcolorspace ! dicetv ! xvimagesink
Setting pipeline to PAUSED ...
ERROR: Pipeline doesn't want to pause.
ERROR: from element /GstPipeline:pipeline0/GstV4lSrc:v4lsrc0: Could not negotiate format
Additional debug info:
gstbasesrc.c(2522): gst_base_src_start (): /GstPipeline:pipeline0/GstV4lSrc:v4lsrc0:
Check your filtered caps, if any
Setting pipeline to NULL ...
FREEING pipeline ...