Guest User

Untitled

a guest
Aug 24th, 2012
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 2.09 KB | None | 0 0
  1.   │154         evUri = evhttp_request_get_evhttp_uri(req);                            │
  2.    │155         query = evhttp_uri_get_query(evUri);                                   │
  3.    │156                                                                                │
  4.   >157         if( evhttp_parse_query_str(query, headers) == 0)                       │
  5.    │158         {                                                                      │
  6.    │159             processQuery(req, headers);                                        │
  7.    │160         }                                                                      │
  8.    │161                                                                                │
  9.    │162                                                                                │
  10.    │163         struct evhttp_uri *decoded = 0;                                        │
  11.    │164                                                                                │
  12.    │165         uri = evhttp_request_get_uri(req);                                     │
  13.    │166         std::cout<<"\nRequested uri"<<uri<<std::endl;                          │
  14.    │167                                                                                │
  15.    │168         decoded = evhttp_uri_parse(uri);                                       │
  16.    │169                                                                                │
  17.    │170         //test to get songs with space working                                 │
  18.    │171                                                                                │
  19. The program is not being run.
  20. (gdb) c                       processRequest                   Line: 157  PC: 0x804b318
  21. (gdb) n
  22.        Processing request
  23.  
  24. (gdb) n
  25. (gdb) n
  26. (gdb) n
  27. (gdb) print query
  28. $2 = 0x8053650 "query=value"
  29. (gdb) s
  30.  
  31. Program received signal SIGSEGV, Segmentation fault.
  32. 0x0017da0b in ?? () from /usr/lib/libevent-2.0.so.5
  33. (gdb) up
  34. #1  0x0804b318 in processRequest (req=0x80539f0, arg=0x0) at Server.cpp:157
  35. (gdb)
Advertisement
Add Comment
Please, Sign In to add comment